:root {
  color-scheme: dark;
  --background: #090b0f;
  --panel: #13161d;
  --panel-soft: #191d25;
  --text: #f5f6f8;
  --muted: #a6abb6;
  --line: #2a2f39;
  --accent: #ef2b31;
  --accent-soft: rgba(239, 43, 49, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(239, 43, 49, 0.18), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

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

header {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.9);
}

.site-header .nav {
  width: min(1180px, calc(100% - 40px));
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span { color: var(--accent); }

nav { display: flex; gap: 18px; }

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a[aria-current="page"], nav a:hover { color: var(--text); }

main { padding: 64px 0 80px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 700px;
  margin: 24px 0 40px;
  color: var(--muted);
  font-size: 1.08rem;
}

.notice,
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--panel-soft), var(--panel));
}

.notice {
  margin-bottom: 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
}

.card { padding: clamp(22px, 4vw, 36px); }

.card + .card { margin-top: 20px; }

h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

h3 { margin: 28px 0 8px; font-size: 1.05rem; }

p { margin: 0 0 14px; }

p:last-child { margin-bottom: 0; }

ul { margin: 10px 0 16px; padding-left: 22px; }

li + li { margin-top: 6px; }

.meta, .muted { color: var(--muted); }

.language-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff7377;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.contact-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.spaced { margin-top: 22px; }

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Legal and support pages share the product-home visual language. */
.legal-page .shell {
  width: min(1180px, calc(100% - 40px));
}

.legal-page main {
  padding: 0;
  overflow: hidden;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(14, 17, 23, 0.94), rgba(23, 17, 22, 0.9)),
    var(--background);
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -90px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 43, 49, 0.3), rgba(239, 43, 49, 0) 68%);
  pointer-events: none;
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 24%;
  width: 58%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.42;
  transform: rotate(-8deg);
  pointer-events: none;
}

.legal-hero .shell {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
}

.legal-hero h1 span { color: var(--accent); }

.legal-hero .intro {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.legal-content {
  max-width: 980px;
  padding-top: 72px;
  padding-bottom: 112px;
}

.legal-page .notice,
.legal-page .card {
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
}

.legal-page .notice {
  margin-bottom: 20px;
  background: linear-gradient(120deg, rgba(239, 43, 49, 0.13), rgba(19, 22, 29, 0.96));
}

.legal-page .card {
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(145deg, #171a21, #11141a);
}

.legal-page .card-featured {
  border-color: rgba(239, 43, 49, 0.5);
  background: linear-gradient(145deg, rgba(69, 20, 24, 0.75), #11141a 56%);
}

.legal-page .card h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.legal-page .card h3 {
  margin-top: 34px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 1.08rem;
}

.legal-page .contact-item {
  min-height: 116px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.legal-page footer strong { color: var(--text); }

@media (max-width: 640px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  main { padding-top: 44px; }
  .contact { grid-template-columns: 1fr; }
  .legal-page .shell { width: min(100% - 28px, 1180px); }
  .legal-page main { padding-top: 0; }
  .legal-hero { padding: 72px 0 62px; }
  .legal-hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .legal-content { padding-top: 48px; padding-bottom: 80px; }
}

/* Product home */
.home .shell { width: min(1180px, calc(100% - 40px)); }
.home main { padding: 0; overflow: hidden; }
.site-header { position: relative; z-index: 10; }
.brand-image { display: flex; align-items: center; }
.brand-image img {
  display: block;
  width: 176px;
  height: auto;
  mix-blend-mode: screen;
}
.home .nav { min-height: 84px; }
.home .nav a { transition: color 160ms ease; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding-top: 72px;
  padding-bottom: 84px;
}

.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; font-size: clamp(3.4rem, 7vw, 6.6rem); }
.hero h1 span { color: var(--accent); }
.hero .intro { max-width: 660px; margin-bottom: 30px; font-size: 1.12rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home .button { margin: 0; padding: 14px 20px; }
.button-secondary { border: 1px solid var(--line); background: transparent; }
.button:hover { filter: brightness(1.12); }
.button:focus-visible, .home nav a:focus-visible { outline: 3px solid white; outline-offset: 4px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 0.82rem; font-weight: 750; }
.hero-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--accent); }

.phone-stage { position: relative; min-height: 590px; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 450px; height: 450px; border-radius: 50%; background: radial-gradient(circle, rgba(239,43,49,.32), rgba(239,43,49,0) 68%); }
.speed-line { position: absolute; right: -20%; width: 115%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: rotate(-10deg); opacity: .5; }
.speed-line-one { top: 28%; }
.speed-line-two { bottom: 22%; right: -8%; opacity: .22; }

.phone { position: relative; z-index: 2; width: 310px; padding: 10px; border: 1px solid #3b414d; border-radius: 46px; background: #030406; box-shadow: 0 32px 90px rgba(0,0,0,.55), inset 0 0 0 2px #151820; transform: rotate(3deg); }
.phone-island { position: absolute; z-index: 4; top: 19px; left: 50%; width: 92px; height: 24px; border-radius: 18px; background: #020204; transform: translateX(-50%); }
.phone-screen { min-height: 610px; overflow: hidden; padding: 22px 15px 14px; border-radius: 37px; background: #090b0f; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.app-topbar img { width: 116px; height: auto; mix-blend-mode: screen; }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #f5f6f8; color: #111; font-size: .75rem; font-weight: 900; }
.app-title { margin: 18px 0 14px; font-size: 1.65rem; font-weight: 900; letter-spacing: -.04em; }
.lead-story { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; border-radius: 20px; background: linear-gradient(150deg, rgba(239,43,49,.72), rgba(20,23,30,.96) 58%), repeating-linear-gradient(125deg, transparent 0 16px, rgba(255,255,255,.06) 17px 18px); }
.lead-story strong { max-width: 230px; font-size: 1.18rem; line-height: 1.16; }
.lead-story small, .news-row small { color: #afb3bc; }
.story-tag { color: white; font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.app-section-title { display: flex; justify-content: space-between; margin: 20px 2px 10px; font-size: .9rem; font-weight: 900; }
.app-section-title b { color: var(--accent); }
.news-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-height: 76px; margin-top: 8px; padding: 9px; border: 1px solid #252a33; border-radius: 13px; background: #161920; }
.news-row strong { display: block; font-size: .78rem; line-height: 1.18; }
.news-row small { display: block; margin-top: 5px; font-size: .59rem; }
.rank { display: grid; height: 52px; place-items: center; border-radius: 9px; background: #f3b91f; color: white; font-weight: 900; }
.rank-red { background: var(--accent); }
.phone-nav { display: flex; justify-content: space-between; margin-top: 14px; color: #777e89; font-size: .57rem; }
.phone-nav b { color: var(--accent); }

.signal-strip { border-block: 1px solid var(--line); background: #0d1015; }
.signal-grid { min-height: 70px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 16px; color: #747b87; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.signal-grid span + span { border-left: 1px solid var(--line); padding-left: 20px; }

.section { padding-top: 112px; padding-bottom: 112px; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 50px; margin-bottom: 44px; }
.section-heading h2, .bilingual h2, .final-cta h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { position: relative; min-height: 260px; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, #171a21, #11141a); }
.feature-wide { grid-column: span 2; min-height: 300px; }
.feature-accent { background: linear-gradient(145deg, #9f151b, #2a1115); }
.feature-number { color: #6f7581; font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.feature h3 { max-width: 520px; margin: 60px 0 10px; font-size: clamp(1.5rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.feature p { max-width: 560px; color: var(--muted); }
.feature-accent p, .feature-accent .feature-number { color: #f0bdbe; }
.mini-feed { position: absolute; right: 30px; bottom: 30px; width: min(42%, 360px); display: grid; gap: 8px; }
.mini-feed span, .mini-feed i { height: 34px; border: 1px solid #343945; border-radius: 8px; background: #20242d; }
.mini-feed i { width: 42%; border-color: rgba(239,43,49,.5); background: rgba(239,43,49,.22); }

.bilingual { border-block: 1px solid var(--line); background: linear-gradient(120deg, #0e1117, #171116); }
.bilingual-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 80px; }
.language-cards { display: grid; gap: 12px; }
.language-cards article { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.language-cards b { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: var(--accent); }
.language-cards strong, .language-cards span { display: block; }
.language-cards span { color: var(--muted); font-size: .85rem; }

.final-cta { text-align: center; }
.final-cta h2 { max-width: none; }
.final-cta > p:not(.eyebrow) { max-width: 620px; margin: 20px auto 30px; color: var(--muted); }
.final-cta .hero-actions { justify-content: center; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid > div:last-child { text-align: right; }
.social-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.social-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 64px; }
  .hero h1, .hero .intro { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .phone-stage { min-height: 630px; }
  .section-heading, .bilingual-grid { grid-template-columns: 1fr; gap: 30px; }
  .signal-grid { grid-template-columns: repeat(3, 1fr); padding-block: 18px; }
  .signal-grid span + span { border: 0; padding-left: 0; }
}

@media (max-width: 640px) {
  .home .shell { width: min(100% - 28px, 1180px); }
  .site-header .nav { align-items: center; flex-direction: row; width: min(100% - 28px, 1180px); padding: 12px 0; }
  .home .nav nav { display: none; }
  .legal-page .nav { gap: 12px; }
  .legal-page .nav nav { gap: 14px; }
  .legal-page .nav-optional { display: none; }
  .brand-image img { width: 148px; }
  .hero { min-height: auto; padding-top: 52px; padding-bottom: 62px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
  .phone-stage { min-height: 555px; }
  .phone { width: 276px; transform: rotate(1.5deg) scale(.9); }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .mini-feed { position: static; width: 100%; margin-top: 28px; }
  .feature h3 { margin-top: 38px; }
  .footer-grid { flex-direction: column; }
  .footer-grid > div:last-child { text-align: left; }
  .social-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
