:root {
  color-scheme: dark;
  --bg: #030815;
  --bg-2: #07162d;
  --panel: rgba(10, 26, 51, 0.74);
  --panel-strong: rgba(12, 31, 61, 0.92);
  --card: rgba(13, 30, 56, 0.72);
  --text: #f7fbff;
  --muted: #aab8d6;
  --subtle: #6f7fa4;
  --primary: #6366f1;
  --primary-strong: #4f46e5;
  --blue: #5b8cff;
  --green: #61d46f;
  --orange: #ff8b36;
  --violet: #8b5cf6;
  --border: rgba(154, 178, 221, 0.18);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.20), transparent 34rem),
    radial-gradient(circle at 72% 8%, rgba(91, 140, 255, 0.20), transparent 25rem),
    linear-gradient(180deg, var(--bg-2), var(--bg) 38rem, #02050e);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 70%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
  background: rgba(3, 8, 21, 0.72);
  backdrop-filter: blur(20px);
}

.site-header.simple {
  grid-template-columns: 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #37d5f6);
  color: #061125;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.text-link {
  color: #b8c8ff;
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--text);
}

.section-wrap,
.feature-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) 0 48px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-kicker {
  margin-bottom: 20px;
  color: #9eb5ff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  font-weight: 760;
  letter-spacing: 0;
}

.hero-body {
  max-width: 540px;
  color: #dbe6ff;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 34px 0 18px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 24px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  background: #050505;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 720;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.app-store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
}

.app-store-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.72);
  outline-offset: 4px;
}

.app-store-button svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.app-store-button.compact {
  min-height: 44px;
  padding: 0 16px;
  border-color: transparent;
  background: #18316f;
  font-size: 14px;
}

.app-store-button.compact svg {
  width: 22px;
  height: 22px;
}

.privacy-note {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.55;
}

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

.poster-frame {
  position: relative;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(154, 178, 221, 0.24);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.poster-frame img {
  display: block;
  width: 100%;
  border-radius: 23px;
  background: #07111f;
}

.primary-poster {
  width: min(84vw, 430px);
  transform: rotate(7deg);
}

.mini-panel {
  position: absolute;
  left: 8%;
  bottom: 12%;
  max-width: 248px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(7, 17, 35, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mini-panel p {
  margin: 0;
  color: #dbe6ff;
  font-size: 14px;
  line-height: 1.45;
}

.mini-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(97, 212, 111, 0.12);
  flex: none;
}

.feature-band {
  padding: 60px 0 78px;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.section-heading h2,
.privacy-panel h2,
.bottom-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.detail-card p,
.privacy-panel p,
.bottom-cta p,
.site-footer p,
.policy-page p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.detail-card,
.privacy-panel,
.bottom-cta,
.asset-placeholders div {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 39, 72, 0.78), rgba(7, 17, 35, 0.72));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.20);
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 800;
}

.feature-icon.blue { color: #7aa1ff; background: rgba(91, 140, 255, 0.17); }
.feature-icon.green { color: #79ea85; background: rgba(97, 212, 111, 0.16); }
.feature-icon.violet { color: #b097ff; background: rgba(139, 92, 246, 0.18); }
.feature-icon.orange { color: #ffaf70; background: rgba(255, 139, 54, 0.16); }

.feature-card h3,
.detail-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.1;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.screenshots {
  padding: 42px 0 76px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
}

figure {
  margin: 0;
  text-align: center;
}

figcaption {
  margin-top: 16px;
  color: #dbe6ff;
  font-weight: 650;
}

.asset-placeholders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.asset-placeholders div {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

.integration-privacy {
  padding: 34px 0 76px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-card {
  padding: 26px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
}

.privacy-panel a,
.policy-page a {
  color: #adc1ff;
}

.policy-actions {
  display: grid;
  gap: 12px;
  min-width: 238px;
}

.policy-link {
  display: inline-flex;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.22);
  color: #dce6ff;
  text-decoration: none;
  font-weight: 700;
}

.policy-link.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.bottom-cta {
  margin-top: 28px;
  margin-bottom: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.62), rgba(14, 33, 70, 0.92)),
    var(--panel-strong);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding: 40px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--border);
  background: rgba(2, 5, 14, 0.84);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #b8c8ff;
  text-decoration: none;
}

.footer-brand {
  margin-bottom: 12px;
}

.copyright {
  text-align: right;
}

.policy-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.policy-page h1 {
  font-size: clamp(44px, 7vw, 76px);
}

.policy-page h2 {
  margin-top: 36px;
}

.updated,
.source-note {
  color: var(--subtle);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .privacy-panel,
  .bottom-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-device {
    min-height: 520px;
  }

  .feature-grid,
  .detail-grid,
  .asset-placeholders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .site-header .compact span {
    display: none;
  }

  .brand span:last-child {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .app-store-button {
    width: 100%;
  }

  .app-store-button.compact {
    width: auto;
  }

  .primary-poster {
    transform: none;
  }

  .mini-panel {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -28px;
  }

  .feature-grid,
  .shot-grid,
  .detail-grid,
  .asset-placeholders,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    text-align: left;
  }
}
