/* MyAFBase — iOS-native design system */

:root {
  --brand-primary: #2898eb;
  --brand-primary-light: #48b0ff;
  --brand-primary-dark: #6ec2ff;
  --brand-secondary: #1ec4d4;
  --brand-secondary-light: #3ed8e8;
  --success: #30c97e;
  --warning: #c97814;
  --danger: #c23b3b;
  --info: #38a8f8;
  --highlight: #ffc800;
  --muted: #8e8e93;

  --hero-bg: #121214;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --container: 1120px;
  --header-offset: 88px;
  --nav-height: 56px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* SF Symbols */

.sf-symbol {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
  color: inherit;
}

.sf-symbol use,
.sf-symbol path,
.sf-symbol circle {
  fill: currentColor;
}

.sf-symbol--sm {
  width: 14px;
  height: 14px;
}

/* Icon badge — matches app IconBadge */

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(40, 152, 235, 0.12);
  color: var(--brand-primary);
}

.icon-badge--sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.icon-badge--sm .sf-symbol {
  width: 16px;
  height: 16px;
}

.icon-badge--accent {
  background: rgba(30, 196, 212, 0.14);
  color: var(--brand-secondary);
}

.icon-badge--light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-primary-dark);
}

/* Typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.eyebrow--light {
  color: var(--brand-secondary-light);
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-title--light {
  color: white;
}

.section-lead {
  margin: 0;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.72);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.badge--new {
  background: rgba(255, 200, 0, 0.2);
  color: var(--highlight);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(40, 152, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(40, 152, 235, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-nav {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 14px;
  border-radius: var(--radius-md);
  background: rgba(18, 18, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .nav-shell {
  background: rgba(18, 18, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-icon {
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link--badge.is-active {
  background: rgba(30, 196, 212, 0.14);
}

.nav-badge {
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(255, 200, 0, 0.18);
  color: var(--highlight);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
}

/* Hero — split layout */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-offset) + 24px) 0 clamp(48px, 6vh, 80px);
  background: var(--hero-bg);
  color: white;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 68% 50%, black 18%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 68% 50%, black 18%, transparent 74%);
}

.hero-glow {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  transform: translateY(-42%);
  background: radial-gradient(ellipse at center, rgba(40, 152, 235, 0.32) 0%, transparent 68%);
  filter: blur(28px);
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: calc(100dvh - var(--header-offset) - clamp(48px, 6vh, 80px) - 24px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 12px rgba(40, 152, 235, 0.8);
}

.hero-display {
  margin: 0 0 24px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-display-line {
  display: block;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  color: rgba(255, 255, 255, 0.96);
}

.hero-display-accent {
  display: block;
  margin-top: 0.06em;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  background: linear-gradient(100deg, #ffffff 0%, var(--brand-primary-dark) 52%, var(--brand-secondary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 600px;
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary {
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 4px 20px rgba(40, 152, 235, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-hero-primary:hover {
  transform: scale(1.03);
  box-shadow:
    0 8px 32px rgba(40, 152, 235, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 72%;
  height: 56px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(40, 152, 235, 0.4) 0%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-device {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  width: min(100%, 300px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 48px rgba(40, 152, 235, 0.22))
    drop-shadow(0 28px 56px rgba(0, 0, 0, 0.5));
}

.hero-visual:hover .hero-device {
  transform: translateY(-8px);
}

.hero-enter {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-enter--delay {
  animation-delay: 0.16s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Device screenshots */

.device-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.device-shot--explore {
  max-width: 300px;
}

.device-shot--prominent {
  max-width: 360px;
}

.device-shot--war {
  max-width: 340px;
}

/* Timeline strip */

.timeline-strip {
  padding: 56px 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.timeline-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 40px;
}

.timeline-title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline-lead {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-step {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.timeline-icon {
  position: relative;
  z-index: 1;
}

.timeline-step--active .timeline-icon {
  box-shadow: 0 0 0 4px rgba(30, 196, 212, 0.2);
}

.timeline-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.timeline-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.timeline-connector {
  flex: 0 0 48px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--border), rgba(40, 152, 235, 0.25), var(--border));
  border-radius: 1px;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header--center {
  text-align: center;
}

/* Cards */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card--feature {
  padding: 24px;
}

.card--feature h3 {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.card--feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card--designed {
  padding: 28px;
  text-align: center;
}

.card--designed h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card--designed p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card--designed .icon-badge {
  margin-inline: auto;
}

/* Explore */

.explore-body {
  display: grid;
  grid-template-columns: minmax(240px, 36%) 1fr;
  gap: 56px;
  align-items: center;
}

.explore-visual {
  display: flex;
  justify-content: center;
}

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

/* Split layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-visual {
  display: flex;
  justify-content: center;
}

.benefit-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-list--bullets {
  list-style: disc;
  padding-left: 1.25rem;
  gap: 16px;
}

.benefit-list--bullets li {
  display: list-item;
  padding-left: 0.25rem;
}

.benefit-list--bullets li::marker {
  color: var(--brand-primary);
}

.benefit-list--bullets.benefit-list--light {
  padding-left: 1.25rem;
}

.benefit-list--bullets.benefit-list--light li {
  display: list-item;
}

.benefit-list--bullets.benefit-list--light li::marker {
  color: var(--brand-primary-dark);
}

.benefit-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 600;
}

.benefit-list span {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.benefit-list--light strong {
  color: white;
}

.benefit-list--light span {
  color: rgba(255, 255, 255, 0.62);
}

/* Tools */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card--tool {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-shot {
  width: 100%;
  max-width: 220px;
  margin: 24px auto 0;
}

.tool-body {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.tool-body p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* WAR Tracker */

.section--war {
  background: var(--hero-bg);
  color: white;
}

.war-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.war-visual {
  display: flex;
  justify-content: center;
}

.war-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.war-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.war-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-primary-dark);
}

.war-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Designed */

.device-cascade {
  position: relative;
  width: min(100%, 400px);
  height: 540px;
  margin: 0 auto 56px;
}

.device-shot--cascade {
  position: absolute;
  width: 58%;
  height: auto;
}

.device-shot--cascade-back-left {
  left: -4px;
  top: 56px;
  transform: rotate(-14deg);
  transform-origin: bottom center;
  z-index: 1;
}

.device-shot--cascade-back-right {
  right: -4px;
  top: 56px;
  transform: rotate(14deg);
  transform-origin: bottom center;
  z-index: 1;
}

.device-shot--cascade-front {
  left: 50%;
  top: 0;
  width: 56%;
  margin: 0;
  transform: translateX(-50%);
  transform-origin: center top;
  z-index: 2;
}

.designed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CTA */

.section--cta {
  padding: 80px 0 96px;
  background: var(--surface-alt);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin-inline: auto;
  padding: 48px 44px;
  background: var(--hero-bg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(40, 152, 235, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 90% 100%, rgba(30, 196, 212, 0.14), transparent);
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cta-icon {
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: white;
}

.cta-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
}

.cta-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cta-highlights li {
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cta-action .btn-store {
  width: 100%;
  max-width: 280px;
}

.cta-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

/* Scroll reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--from-left {
  transform: translateX(-32px);
}

.reveal--from-right {
  transform: translateX(32px);
}

.reveal--from-left.is-visible,
.reveal--from-right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: translateY(24px) scale(0.97);
}

.reveal--scale.is-visible {
  transform: translateY(0) scale(1);
}

.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* Footer */

.site-footer {
  padding: 32px 0 48px;
  background: var(--hero-bg);
  color: rgba(255, 255, 255, 0.55);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 8px 0 14px;
  border-radius: var(--radius-md);
  background: rgba(18, 18, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.footer-shell .logo {
  color: white;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: auto;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.footer-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.footer-copy {
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  padding-right: 6px;
}

.footer-disclaimer {
  max-width: 560px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

/* Support page */

.page-support {
  background: var(--surface);
}

.support-hero {
  position: relative;
  padding: calc(var(--header-offset) + 48px) 0 80px;
  background: var(--hero-bg);
  color: white;
  overflow: hidden;
}

.support-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.support-hero .hero-grid {
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 72%);
}

.support-hero .hero-glow {
  left: 50%;
  right: auto;
  top: 55%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.support-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
}

.support-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.support-steps {
  margin: 28px 0 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.support-steps li::marker {
  color: var(--brand-primary);
  font-weight: 600;
}

.support-contact-card {
  padding: 28px;
  max-width: 400px;
}

.support-contact-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.support-contact-card p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.support-callout {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(194, 59, 59, 0.08);
  border: 1px solid rgba(194, 59, 59, 0.18);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.support-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--danger);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card--faq {
  padding: 24px;
}

.card--faq h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card--faq p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card--link {
  color: inherit;
  text-decoration: none;
}

.card--link:hover {
  text-decoration: none;
}

.support-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  max-width: 720px;
  margin-inline: auto;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.support-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.support-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}

.support-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Legal pages */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header .logo {
  color: var(--text);
}

.legal-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-page {
  padding: 48px 0 80px;
  background: var(--surface-alt);
}

.legal-layout {
  max-width: 760px;
  margin-inline: auto;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.legal-nav a {
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.legal-nav a:hover {
  color: var(--brand-primary);
  border-color: rgba(40, 152, 235, 0.25);
  text-decoration: none;
}

.legal-nav a.is-current {
  color: var(--brand-primary);
  background: rgba(40, 152, 235, 0.08);
  border-color: rgba(40, 152, 235, 0.25);
}

.legal-doc {
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-meta {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-doc h2 {
  margin: 36px 0 14px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal-doc p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  font-size: 15px;
  line-height: 1.65;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc li:last-child {
  margin-bottom: 0;
}

.legal-doc strong {
  font-weight: 600;
}

.legal-warning {
  margin: 16px 0;
  padding: 16px 18px;
  background: rgba(201, 120, 20, 0.08);
  border: 1px solid rgba(201, 120, 20, 0.2);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.legal-doc a {
  color: var(--brand-primary);
}

@media (max-width: 720px) {
  .legal-doc {
    padding: 28px 22px;
  }

  .legal-page {
    padding: 32px 0 64px;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-offset) - 4px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-radius: var(--radius-md);
    background: rgba(18, 18, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
    padding-block: 12px;
  }

  .split,
  .war-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 56px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    max-width: none;
    order: 1;
  }

  .hero-lead {
    max-width: 36rem;
  }

  .hero-visual {
    order: 2;
  }

  .hero-device {
    width: min(72%, 260px);
  }

  .hero-glow {
    right: 50%;
    top: 72%;
    transform: translate(50%, -50%);
  }

  .explore-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .explore-visual {
    order: -1;
  }

  .tool-grid,
  .designed-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .support-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .support-hero-actions .btn {
    width: 100%;
  }

  .support-stats {
    gap: 32px;
    padding: 28px 24px;
  }

  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .timeline-connector {
    flex: none;
    width: 2px;
    height: 32px;
    margin: 0;
    background: linear-gradient(180deg, var(--border), rgba(40, 152, 235, 0.25), var(--border));
  }

  .timeline-step {
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-offset: 80px;
  }

  .site-header {
    padding: 10px 0;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-display-line {
    font-size: clamp(2.1rem, 11vw, 2.75rem);
  }

  .hero-display-accent {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-lead {
    font-size: 1.0625rem;
  }

  .hero-device {
    width: min(68%, 220px);
  }

  .feature-grid--explore {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .war-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .device-cascade {
    height: 480px;
    width: min(100%, 320px);
  }

  .device-shot--cascade {
    width: 54%;
    top: 48px;
  }

  .device-shot--cascade-back-left {
    transform: rotate(-10deg);
  }

  .device-shot--cascade-back-right {
    transform: rotate(10deg);
  }

  .device-shot--cascade-front {
    width: 52%;
  }

  .cta-panel {
    padding: 32px 24px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .cta-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-lead {
    max-width: none;
  }

  .cta-highlights {
    justify-content: center;
  }

  .footer-shell {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 14px;
    gap: 12px;
  }

  .footer-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .footer-copy {
    order: 2;
    padding-right: 0;
  }
}

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

  .reveal,
  .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn,
  .card {
    transition: none;
  }
}