:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #101013;
  --surface-2: #171118;
  --surface-3: #211016;
  --text: #fff5f7;
  --muted: #cbb4bd;
  --muted-2: #8f737c;
  --red: #ff174d;
  --red-2: #ff4f73;
  --red-dark: #7a0823;
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(140deg, #070609 0%, var(--bg) 48%, #090305 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #9c052c);
  box-shadow: 0 0 28px rgba(255, 23, 77, 0.5);
}

.button.header-download {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.94rem;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: 52px;
  align-items: start;
  padding: 34px 0 62px;
}

.hero-copy {
  max-width: 720px;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: 5.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 650px;
  font-size: 1.18rem;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  margin: 34px 0 26px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(135deg, var(--red), #a80631);
  box-shadow: 0 18px 46px rgba(255, 23, 77, 0.34);
  color: white;
}

.trust-row {
  gap: 8px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 23, 77, 0.24);
  border-radius: 999px;
  background: rgba(255, 23, 77, 0.08);
  color: #ffd8e0;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  width: min(370px, 100%);
  height: 760px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 58px;
  background: linear-gradient(145deg, #24252b 0%, #050506 48%, #17181d 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    var(--shadow),
    0 28px 120px rgba(255, 23, 77, 0.16);
}

.phone-frame::before,
.phone-frame::after {
  position: absolute;
  content: "";
  background: #24252b;
}

.phone-frame::before {
  top: 168px;
  right: -5px;
  width: 5px;
  height: 82px;
  border-radius: 0 6px 6px 0;
}

.phone-frame::after {
  top: 132px;
  left: -4px;
  width: 4px;
  height: 118px;
  border-radius: 6px 0 0 6px;
}

.phone-screen {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  background:
    linear-gradient(180deg, rgba(255, 23, 77, 0.12), transparent 28%),
    #0b0b0e;
}

.dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 88px;
  height: 26px;
  border-radius: 999px;
  background: #030304;
  transform: translateX(-50%);
}

.phone-status,
.phone-indicators,
.signal-bars,
.chat-header,
.composer {
  display: flex;
  align-items: center;
}

.phone-status {
  position: relative;
  z-index: 2;
  width: 100%;
  justify-content: space-between;
  padding: 19px 24px 13px;
  color: #f5e9ed;
  font-size: 0.78rem;
  font-weight: 800;
}

.phone-indicators {
  gap: 9px;
}

.signal-bars {
  height: 13px;
  gap: 2px;
  align-items: flex-end;
}

.signal-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #f5e9ed;
}

.signal-bars i:nth-child(1) {
  height: 5px;
}

.signal-bars i:nth-child(2) {
  height: 8px;
}

.signal-bars i:nth-child(3) {
  height: 12px;
}

.battery {
  position: relative;
  width: 25px;
  height: 12px;
  border: 1.6px solid #f5e9ed;
  border-radius: 4px;
}

.battery::after {
  position: absolute;
  top: 3px;
  right: -4px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: #f5e9ed;
  content: "";
}

.battery::before {
  position: absolute;
  inset: 2px 6px 2px 2px;
  border-radius: 2px;
  background: #f5e9ed;
  content: "";
}

.chat-header {
  gap: 12px;
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(135deg, var(--red), #7a0823);
  color: white;
  font-weight: 900;
}

.chat-header strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.chat-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-date {
  width: fit-content;
  margin: 18px auto 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding: 0 16px 14px;
}

.chat-message {
  width: fit-content;
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.chat-message.ai {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 7px;
  background: #17171c;
}

.chat-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: var(--red-dark);
}

.typing-row {
  display: flex;
  align-self: flex-start;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 18px;
  border-bottom-left-radius: 7px;
  background: #17171c;
}

.typing-row span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.composer {
  gap: 10px;
  width: calc(100% - 28px);
  margin: 0 14px 16px;
  padding: 11px 11px 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.065);
}

.composer span {
  flex: 1;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.composer button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  cursor: default;
}

.composer button::before {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  content: "";
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    border-radius: 28px;
  }

  h1 {
    font-size: 4.9rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 28px;
    padding-top: 22px;
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-header {
    padding: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .button.header-download {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .phone-frame {
    height: 682px;
    border-radius: 46px;
    padding: 8px;
  }

  .phone-screen {
    border-radius: 38px;
  }

  .chat-message {
    font-size: 0.9rem;
  }
}
