/* ============================================
   SDK MATCH — Landing Page Styles
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --primary: #000000;
  --primary-light: #1a1a1a;
  --accent: #34C759;
  --accent-dark: #2aaa4a;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #0a0a0a;
  --bg-dark-alt: #111111;
  --text: #1a1a1a;
  --text-light: #6b7280;
  --text-on-dark: #f0f0f0;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-dark: #222222;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.optional { color: var(--text-muted); font-weight: 400; font-size: .85em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.btn--sm { padding: 8px 20px; font-size: .85rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52,199,89,.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { color: var(--accent); font-size: 1.4em; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar__links a:hover { color: #fff; }
.navbar__links .btn { color: #fff; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 140px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(52,199,89,.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(52,199,89,.12);
  color: var(--accent);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(52,199,89,.2);
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__platforms-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  display: block;
}
.hero__platforms-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.platform-tag {
  padding: 4px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}

/* Phone Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid #333;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
}

.phone-mockup__screen {
  background: #0d0d0d;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
}

.phone-mockup__status-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: .7rem;
  color: #fff;
  font-weight: 600;
}

.phone-mockup__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-mockup__footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px;
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}
.mockup-dot--active { background: var(--accent); }

/* Scan Animation */
.scan-animation {
  width: 100%;
  text-align: center;
}

.scan-frame {
  position: relative;
  width: 180px;
  height: 120px;
  margin: 0 auto 16px;
}

.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}
.scan-corner--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.scan-corner--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.scan-corner--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.scan-corner--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

.scan-line {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(52,199,89,.5);
  animation: scanMove 2.5s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 5%; }
  50% { top: 90%; }
}

.scan-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}
.section--light { background: var(--bg); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--accent {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 80px 0;
}
.section--accent-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
  color: var(--text-on-dark);
  padding: 100px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}
.section--dark .section__subtitle,
.section--accent .section__subtitle,
.section--accent-bg .section__subtitle {
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.step__number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 20px;
  color: var(--accent);
}
.step__icon svg { width: 100%; height: 100%; }

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step__text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--border);
  width: 60px;
  flex-shrink: 0;
}
.step-connector svg { width: 100%; }

/* ---------- Document Cards ---------- */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doc-card {
  background: var(--bg-dark-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52,199,89,.3);
  box-shadow: 0 12px 40px rgba(52,199,89,.08);
}

.doc-card__visual {
  margin-bottom: 20px;
}
.doc-card__icon {
  width: 100px;
  height: auto;
  margin: 0 auto;
  color: var(--accent);
}
.doc-card__icon svg { width: 100%; height: auto; }

.doc-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}
.doc-card__badge--accent {
  background: rgba(52,199,89,.1);
  color: var(--accent);
  border-color: rgba(52,199,89,.2);
}

.doc-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.doc-card__text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.stat:hover {
  border-color: rgba(52,199,89,.3);
  background: rgba(52,199,89,.04);
}

.stat__value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.stat__detail {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  background: var(--bg);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 100%; height: 100%; }

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Feature cards on dark backgrounds */
.section--dark .feature-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.section--dark .feature-card:hover {
  background: rgba(52,199,89,.08);
  border-color: var(--accent);
}
.section--dark .feature-card__title {
  color: #fff;
}
.section--dark .feature-card__text {
  color: rgba(255,255,255,.6);
}

/* ---------- Code Section ---------- */
.code-section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.code-block {
  background: #0d0d0d;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border-dark);
}
.code-block__dots {
  display: flex;
  gap: 6px;
}
.code-block__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.code-block__dots span:first-child { background: #ff5f57; }
.code-block__dots span:nth-child(2) { background: #febc2e; }
.code-block__dots span:last-child { background: #28c840; }

.code-block__lang {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.code-block__body {
  padding: 24px;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.8;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  color: #e0e0e0;
}
.code-block__body code { font-family: inherit; }

.code-keyword { color: #c678dd; }
.code-type { color: #61afef; }
.code-method { color: #e5c07b; }
.code-comment { color: #5c6370; font-style: italic; }
.code-string { color: #98c379; }

.code-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.code-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.code-feature__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--accent);
  padding: 6px;
  background: rgba(52,199,89,.1);
  border-radius: 8px;
}
.code-feature__icon svg { width: 100%; height: 100%; }

.code-feature h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.code-feature p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Platforms ---------- */
.platforms-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.platform-card {
  text-align: center;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 160px;
  flex: 1;
  max-width: 200px;
  transition: all var(--transition);
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.platform-card svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--text);
}
.platform-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.platform-card p {
  font-size: .8rem;
  color: var(--text-light);
}

/* ---------- Demo ---------- */
.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo-video {
  display: flex;
  justify-content: center;
}

.demo-video__placeholder {
  position: relative;
}

.demo-phone {
  width: 260px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid #333;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}

.demo-phone__screen {
  background: #0d0d0d;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  position: relative;
}

.demo-step-carousel {
  flex: 1;
  position: relative;
}

.demo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity .5s ease;
  padding: 20px;
}
.demo-slide--active { opacity: 1; }

.demo-slide__icon {
  width: 80px;
  height: 80px;
}
.demo-slide__icon svg { width: 100%; height: 100%; }

.demo-slide__label {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}

.demo-progress {
  height: 3px;
  background: #222;
}
.demo-progress__bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .1s linear;
}

.demo-info__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-info-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  opacity: .5;
}
.demo-info-step--active {
  opacity: 1;
  background: rgba(52,199,89,.05);
  border-color: rgba(52,199,89,.2);
}

.demo-info-step__num {
  font-size: .8rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.demo-info-step h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.demo-info-step p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- CTA / Contact ---------- */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-content__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: #fff;
}

.cta-content__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-content__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-content__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-on-dark);
  font-weight: 500;
}
.cta-content__list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
}

.contact-form__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font);
  font-size: .9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(52,199,89,.04);
}
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.form-success svg {
  width: 48px;
  height: 48px;
}
.form-success p {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}
.form-success--visible {
  display: flex;
}

/* ---------- Footer ---------- */
.footer {
  background: #050505;
  color: var(--text-muted);
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__brand .navbar__logo {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: inline-flex;
}
.footer__brand p {
  font-size: .9rem;
  line-height: 1.6;
  max-width: 280px;
}

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

.footer__col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer__col a {
  display: block;
  font-size: .88rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
  font-size: .8rem;
}

/* ---------- Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.steps .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.steps .animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.steps .animate-on-scroll:nth-child(4) { transition-delay: .3s; }
.steps .animate-on-scroll:nth-child(5) { transition-delay: .4s; }

.documents-grid .animate-on-scroll:nth-child(2) { transition-delay: .15s; }
.documents-grid .animate-on-scroll:nth-child(3) { transition-delay: .3s; }

.stats-grid .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.stats-grid .animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.stats-grid .animate-on-scroll:nth-child(4) { transition-delay: .3s; }

.features-grid .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__platforms { text-align: center; }
  .hero__platforms-icons { justify-content: center; }

  .code-section { grid-template-columns: 1fr; }
  .demo-container { grid-template-columns: 1fr; gap: 40px; }
  .cta-section { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ DOWNLOAD ============ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: all .3s ease;
}
.download-card:hover {
  background: rgba(52,199,89,.1);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.download-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}
.download-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.download-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-family: monospace;
  margin-bottom: 8px;
}
.download-card__size {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============ ABOUT ============ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============ GUIDES ============ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ============ CHANGELOG ============ */
.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}
.changelog-entry {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 32px;
}
.changelog-entry__version {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 8px;
}
.changelog-entry__date {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 12px;
}
.changelog-entry__content h4 {
  color: var(--text);
  margin-bottom: 8px;
}
.changelog-entry__content ul {
  list-style: none;
  padding: 0;
}
.changelog-entry__content li {
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.changelog-entry__content li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ STATUS ============ */
.status-grid {
  max-width: 600px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.05);
  padding: 16px 20px;
  border-radius: 12px;
}
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-indicator--ok {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(52,199,89,.5);
}
.status-name {
  flex: 1;
  color: #fff;
  font-weight: 500;
}
.status-label {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
}
.status-note {
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ LEGAL (Privacy & Terms) ============ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.legal-content h3:first-child {
  margin-top: 0;
}
.legal-content p {
  line-height: 1.7;
  margin-bottom: 8px;
}
/* Light sections */
.section--light .legal-content h3 { color: var(--text); }
.section--light .legal-content p { color: var(--text-light); }
/* Dark sections */
.section--dark .legal-content h3 { color: #fff; }
.section--dark .legal-content p { color: rgba(255,255,255,.7); }

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .navbar__links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
  }
  .navbar__links.open { display: flex; }
  .navbar__toggle { display: flex; z-index: 1001; }
  .navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .navbar__toggle.active span:nth-child(2) { opacity: 0; }
  .navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .steps { flex-direction: column; align-items: center; }
  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
    width: 40px;
  }
  .step { max-width: 100%; }

  .documents-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .platforms-grid { gap: 12px; }
  .platform-card { min-width: 140px; padding: 24px 16px; }

  .footer__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 60px; }
  .phone-mockup { width: 240px; }
  .demo-phone { width: 220px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px; }
  .stat__value { font-size: 2rem; }
  .contact-form { padding: 24px 20px; }
  .footer__links { grid-template-columns: 1fr; gap: 24px; }
}
