/* ============================================================
   PDF SIGMA — Landing Page Stylesheet
   Design: Modern SaaS · Apple-clean · Stripe-spaced
   Primary: #2563EB (blue from logo) · White · Light Gray
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #EFF6FF;
  --blue-mid:    #DBEAFE;
  --ink:         #0F172A;
  --ink-2:       #1E293B;
  --ink-3:       #334155;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFC;
  --surface-3:   #F1F5F9;
  --shadow-sm:   0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:   0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:   0 12px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
  --shadow-blue: 0 8px 32px rgba(37,99,235,.22);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1160px;
  --nav-h:       64px;
}

/* ── RESET ── */
*, *::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(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.section { padding-block: clamp(72px, 10vw, 120px); }
.section--alt { background: var(--surface-2); }

/* ── TYPOGRAPHY ── */
h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
p { color: var(--muted); line-height: 1.7; }
.accent { color: var(--blue); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 { margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,99,235,.32);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn--sm  { font-size: 13px; padding: 8px 18px; }
.btn--lg  { font-size: 16px; padding: 14px 28px; }
.btn--xl  { font-size: 18px; padding: 18px 40px; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__logo strong { color: var(--blue); font-weight: 700; }
.nav__logo img { border-radius: 8px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--blue); }
.nav__inner .btn { margin-left: 8px; flex-shrink: 0; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px clamp(20px,5vw,48px) 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-3);
  transition: color 0.15s;
}
.nav__mobile a:hover { color: var(--blue); }
.nav__mobile .btn { margin-top: 12px; align-self: flex-start; }
.nav--open .nav__mobile { display: flex; }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px) clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #DBEAFE 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero__copy { max-width: 560px; }
.hero__copy h1 { margin-bottom: 20px; }
.hero__sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 460px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.stat { display: flex; flex-direction: column; }
.stat__n { font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.stat__l { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat__div { width: 1px; height: 36px; background: var(--border); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__note {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  position: relative;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0; }
}
.hero__mockup img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ── TRUST ── */
.trust {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.trust__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.trust__card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.trust__card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.trust__icon { font-size: 16px; }

/* ── WHY ── */
.why__feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(64px, 8vw, 100px);
}
.why__feature-row--rev { direction: rtl; }
.why__feature-row--rev > * { direction: ltr; }
.why__image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.why__copy h3 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 16px; }
.why__copy p { font-size: 16px; margin-bottom: 24px; }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-3);
}
.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── ARCHITECTURE ── */
.arch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.arch__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.arch__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}
.arch__icon { font-size: 28px; margin-bottom: 14px; }
.arch__card h3 { font-size: 17px; margin-bottom: 10px; }
.arch__card p { font-size: 14px; margin-bottom: 16px; }
.arch__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.arch__tags span {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 8px;
}
.arch__note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── FEATURES ── */
.feat-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(64px, 8vw, 100px);
}
.feat-highlight--rev { direction: rtl; }
.feat-highlight--rev > * { direction: ltr; }
.feat-highlight__img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-highlight__copy h3 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 14px; margin-top: 8px; }
.feat-highlight__copy p { font-size: 16px; margin-bottom: 24px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}
.feat-card__icon { font-size: 24px; margin-bottom: 10px; display: block; }
.feat-card h4 { margin-bottom: 6px; }
.feat-card p { font-size: 13px; }

/* ── PLATFORM ── */
.platform__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.platform__copy .eyebrow { margin-bottom: 16px; }
.platform__copy h2 { margin-bottom: 16px; }
.platform__copy p { font-size: 17px; margin-bottom: 36px; }
.platform__stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}
.pstat { display: flex; flex-direction: column; }
.pstat__n { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.pstat__l { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.platform__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PERFORMANCE ── */
.perf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perf__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.perf__card--accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-color: transparent;
  color: #fff;
}
.perf__card--accent h3, .perf__card--accent p { color: rgba(255,255,255,0.92); }
.perf__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.perf__icon { font-size: 28px; margin-bottom: 14px; }
.perf__card h3 { font-size: 17px; margin-bottom: 10px; }
.perf__card p { font-size: 14px; }

/* ── GALLERY ── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.22s, box-shadow 0.22s;
  /* aspect-ratio: 16/9; */
}
.gallery__item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: lb-in 0.2s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox__inner {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.lightbox__inner img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.15s;
  z-index: 1001;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 20px; right: 20px; font-size: 26px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── CODE TREE ── */
.code__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.code__tree {
  background: var(--ink);
  color: #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
}
.tree-toggle {
  color: #93C5FD;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.tree-toggle:hover { color: #BFDBFE; }
.tree-children {
  padding-left: 18px;
  border-left: 1px solid rgba(147,197,253,.2);
  margin-left: 6px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.tree-leaf {
  color: #94A3B8;
  padding: 2px 0 2px 2px;
  font-size: 12px;
}
.tree-node { margin: 2px 0; }

.code__badges { display: flex; flex-direction: column; gap: 16px; }
.code__badge {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.code__badge:hover { transform: translateX(4px); border-color: var(--blue-mid); }
.code__badge > span { font-size: 24px; flex-shrink: 0; }
.code__badge strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink-2); }
.code__badge p { font-size: 13px; }

/* ── INCLUDED ── */
.included__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.included__card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.included__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}
.included__icon { font-size: 36px; margin-bottom: 14px; display: block; }
.included__card h3 { font-size: 17px; margin-bottom: 8px; }
.included__card p { font-size: 14px; }

/* ── DEV LOVE ── */
.devlove__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.devlove__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.devlove__item:hover { transform: translateY(-3px); border-color: var(--blue-mid); }
.devlove__item > span:first-child { font-size: 20px; }

/* ── DOCS ── */
.docs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.docs__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.docs__card:hover { transform: translateX(4px); border-color: var(--blue-mid); }
.docs__icon { font-size: 28px; flex-shrink: 0; }
.docs__card h3 { font-size: 15px; margin-bottom: 4px; }
.docs__card p { font-size: 13px; }
.docs__badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #16A34A;
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
  border-radius: 100px;
  padding: 3px 10px;
}

/* ── FAQ ── */
.faq__list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--blue-mid); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.15s;
  gap: 16px;
}
.faq__item summary:hover { color: var(--blue); }
.faq__item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
}

/* ── SUPPORT ── */
.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}
.support__card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.support__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.support__icon { font-size: 32px; margin-bottom: 12px; display: block; }
.support__card h3 { font-size: 16px; margin-bottom: 8px; }
.support__card a {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}
.support__card a:hover { text-decoration: underline; }
.support__card p { font-size: 14px; }
.support__card ul { display: flex; flex-direction: column; gap: 6px; }
.support__card li { font-size: 14px; color: var(--muted); }

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #EFF6FF 100%);
  border-top: 1px solid var(--blue-mid);
  border-bottom: 1px solid var(--blue-mid);
}
.cta__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.cta__inner h2 { margin-bottom: 16px; }
.cta__inner p { font-size: 18px; margin-bottom: 36px; }
.cta__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding-top: 60px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .nav__logo { color: #fff; margin-bottom: 12px; }
.footer__brand p { font-size: 14px; max-width: 280px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 6px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color 0.15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-block: 20px; }
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════════
   PHONE MOCKUP — Matched to A1.png exactly
   Medium-radius Android, pill camera, zero bezel
   ══════════════════════════════════════════════ */

.phone {
  flex-shrink: 0;
  position: relative;
}

.phone__frame {
  position: relative;
  border-radius: 29px;
  background: #111111;
  /* Ultra thin bezel — image almost fills edge to edge */
  padding: 5px 4px;
  box-shadow:
    inset 0 0 0 1px #282828,
    0 0 0 1px #080808,
    0 40px 80px rgba(0,0,0,.5),
    0 12px 30px rgba(0,0,0,.3),
    0 2px 8px rgba(0,0,0,.2);
}

/* Right side power button */
.phone__frame::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 20%;
  width: 3px;
  height: 50px;
  background: #1e1e1e;
  border-radius: 0 3px 3px 0;
}

/* Left side volume buttons */
.phone__frame::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 16%;
  width: 3px;
  height: 34px;
  background: #1e1e1e;
  border-radius: 3px 0 0 3px;
  /* Second volume button */
  box-shadow: 0 46px 0 0 #1e1e1e;
}

.phone__screen {
  position: relative;
  /* border-radius: 46px; */
  overflow: hidden;
  /* background: #f0f0f0; */
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Big centered pill notch — overlaid on screenshot */
.phone__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  /* Pill shape matching A1.png */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #080808;
  z-index: 10;
  /* box-shadow:
    0 0 0 2px rgba(0,0,0,.4),
    0 1px 4px rgba(0,0,0,.6); */
}

/* Bottom home indicator bar */
.phone__screen::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 4px;
  background: rgba(0,0,0,0.18);
  border-radius: 100px;
  z-index: 10;
  pointer-events: none;
}

/* ════════════════════════════════
   HERO — two phones stacked
   ════════════════════════════════ */
.hero__mockup {
  position: relative;
  width: 100%;
  height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__mockup .phone--front {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
}
.hero__mockup .phone--front .phone__frame { width: 252px; }
.hero__mockup .phone--front .phone__screen { width: 244px; height: 529px; }

.hero__mockup .phone--back {
  position: absolute;
  bottom: 50px;
  left: 0;
  z-index: 1;
  opacity: 0.80;
  transform: rotate(-4deg);
  filter: brightness(0.85);
}
.hero__mockup .phone--back .phone__frame { width: 228px; }
.hero__mockup .phone--back .phone__screen { width: 220px; height: 477px; }

/* ════════════════════════════════
   PHONES DUO — feature rows
   ════════════════════════════════ */
.phones-duo {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phones-duo .phone--front {
  position: absolute;
  bottom: 0;
  right: 20px;
  z-index: 2;
}
.phones-duo .phone--front .phone__frame { width: 232px; }
.phones-duo .phone--front .phone__screen { width: 224px; height: 486px; }

.phones-duo .phone--back {
  position: absolute;
  bottom: 44px;
  left: 20px;
  z-index: 1;
  opacity: 0.78;
  transform: rotate(-3deg);
  filter: brightness(0.85);
}
.phones-duo .phone--back .phone__frame { width: 210px; }
.phones-duo .phone--back .phone__screen { width: 202px; height: 438px; }

/* ════════════════════════════════
   PHONES SINGLE — one big phone
   ════════════════════════════════ */
.phones-single {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 16px;
}
.phone--lg .phone__frame { width: 252px; }
.phone--lg .phone__screen { width: 244px; height: 529px; }

.feat-highlight__img img,
.why__image img {
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  height: 100%;
}

/* ── ANIMATIONS ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.in-view { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.15s; }
.animate-delay-2 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .arch__grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .devlove__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero__mockup { height: 460px; }
  .hero__mockup .phone--front .phone__frame { width: 190px; }
  .hero__mockup .phone--front .phone__screen { width: 182px; height: 394px; }
  .hero__mockup .phone--back .phone__frame { width: 172px; }
  .hero__mockup .phone--back .phone__screen { width: 164px; height: 356px; }

  .phones-duo { height: 400px; }
  .phones-duo .phone--front .phone__frame { width: 175px; }
  .phones-duo .phone--front .phone__screen { width: 167px; height: 362px; }
  .phones-duo .phone--back .phone__frame { width: 158px; }
  .phones-duo .phone--back .phone__screen { width: 150px; height: 325px; }

  .phone--lg .phone__frame { width: 200px; }
  .phone--lg .phone__screen { width: 192px; height: 416px; }

  .nav__links { display: none; }
  .nav__inner .btn:not(.nav__burger) { display: none; }
  .nav__burger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { max-width: 100%; }
  .hero__sub { max-width: 100%; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__note { justify-content: center; }
  .hero__mockup { order: -1; max-width: 520px; margin-inline: auto; }

  .why__feature-row,
  .why__feature-row--rev,
  .feat-highlight,
  .feat-highlight--rev { grid-template-columns: 1fr; direction: ltr; }
  .why__feature-row--rev > *,
  .feat-highlight--rev > * { direction: ltr; }

  .platform__inner { grid-template-columns: 1fr; }
  .platform__image { order: -1; }
  .platform__stats { flex-wrap: wrap; }

  .arch__grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .perf__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .code__inner { grid-template-columns: 1fr; }
  .included__grid { grid-template-columns: 1fr 1fr; }
  .devlove__grid { grid-template-columns: repeat(2, 1fr); }
  .docs__grid { grid-template-columns: 1fr; }
  .support__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }

  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
}

@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .devlove__grid { grid-template-columns: 1fr 1fr; }
  .included__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 16px; }
  .stat__n { font-size: 22px; }
}

/* ── BUILT WITH ── */
.builtwith__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.builtwith__copy h2 { margin-bottom: 16px; }
.builtwith__copy p { font-size: 16px; max-width: 340px; }
.builtwith__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.bw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}
.bw-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.bw-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.bw-card p { font-size: 14px; }

/* ── WALKTHROUGH ── */
.walkthrough__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}
.walkthrough__phone {
  filter: drop-shadow(0 40px 80px rgba(37,99,235,.15));
}
.walkthrough__screen {
  position: relative;
  /* background: #000; */
}
.walkthrough__video {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  display: block;
  border-radius: inherit;
}
.walkthrough__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 15;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.walkthrough__overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.walkthrough__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,99,235,.4);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.walkthrough__play:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37,99,235,.5);
}
.walkthrough__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}
.walkthrough__sub {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-align: center;
  max-width: 160px;
  line-height: 1.5;
}

.wc-btn svg {
  display: block; 
  pointer-events: none; /* Prevents the SVG itself from blocking button clicks */
}

/* Responsive — Built With */
@media (max-width: 768px) {
  .builtwith__inner { grid-template-columns: 1fr; }
  .builtwith__copy p { max-width: 100%; }
  .builtwith__cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .builtwith__cards { grid-template-columns: 1fr; }
}