/* ==========================================================================
   Vx Code — Apple Design Language (Clean, Minimal, Modern)
   No gimmicks, no neon glows, authentic typography & restraint
   ========================================================================== */

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

:root {
  /* Apple Dark Palette */
  --bg: #000000;
  --surface: #121214;
  --surface-subtle: #18181b;
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Typography */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #636366;

  /* Accent */
  --accent-blue: #2997ff;
  --accent-blue-hover: #147ce5;

  /* Typography Stack */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Sizing */
  --max-w: 980px;
  --header-h: 52px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Typography ── */
h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* ── Navigation (Apple Minimalist Bar) ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.header.scrolled {
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text-primary);
}

/* ── Buttons (Clean Apple Pills) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
}

.link-arrow {
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Hero Section ── */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── App Preview (Clean Apple Showcase) ── */
.preview-section {
  padding: 10px 0 100px;
}

.showcase-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.segmented-control {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.segmented-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.segmented-btn:hover {
  color: var(--text-primary);
}

.segmented-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.preview-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.preview-frame img {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.preview-frame img.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Metrics Strip ── */
.metrics-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-value {
  display: block;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Features Section (Clean Apple Grid) ── */
.features-section {
  padding: 100px 0;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-intro .eyebrow {
  margin-bottom: 12px;
}

.section-intro h2 {
  margin-bottom: 16px;
}

.section-intro p {
  font-size: 17px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.55;
}

/* ── Clean CTA Section ── */
.cta-section {
  padding: 100px 0 120px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.cta-inner {
  max-width: 540px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 17px;
  margin-bottom: 32px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--text-tertiary);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ── Mobile Navigation ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 20px 24px;
  background: #000000;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 15px;
  color: var(--text-secondary);
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 70px 0 40px;
  }

  .preview-section {
    padding: 10px 0 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
