/* removed gradient layer */
:root {
  --bg: #0a0b14;
  --panel: #0d111f;
  --text: #e9ecf6;
  --muted: #a7b0c7;
  /* Unique hyper‑gradient brand */
  --brand: #ff6cab;      /* pink */
  --brand-2: #7366ff;    /* indigo */
  --accent: #10d3b6;     /* mint */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #1b2340;
  --shadow: rgba(3, 7, 18, 0.5);
}

/* Light theme variables */
:root.light {
  --bg: #fbfaff;
  --panel: #ffffff;
  --text: #121627;
  --muted: #505a74;
  --brand: #ff6cab;
  --brand-2: #7366ff;
  --accent: #10d3b6;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --border: #e7e7f3;
  --shadow: rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
/* Reserve space for fixed header */
body { padding-top: 64px; }
/* Light theme background */
:root.light body { background: var(--bg); }

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

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle .ph { font-size: 22px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(7, 10, 18, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
:root.light .site-header { background: rgba(255, 255, 255, 0.7); }
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: .6; pointer-events: none; }
.site-header.scrolled { background: rgba(7, 10, 18, 0.75); box-shadow: 0 10px 30px -20px var(--shadow); }
:root.light .site-header.scrolled { background: rgba(255, 255, 255, 0.9); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.2px; }
.logo img { width: 36px; height: 36px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn { border: 1px solid var(--border); color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 12px; background: #0b1022; display: inline-flex; gap: 8px; align-items: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; position: relative; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -12px var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.02); }
.btn .icon, .ph.icon { width: 18px; height: 18px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; opacity: .55; border-radius: 2px; }
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: white; }
.btn-secondary { background: #0e1430; color: var(--text); }
.btn-lg { padding: 12px 18px; font-weight: 600; }

/* App Store style nav chip (no gradient) */
.store-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--border); box-shadow: none; }
.store-chip .ph { font-size: 18px; color: var(--brand); }
.store-chip:hover { transform: translateY(-1px); }
:root.light .store-chip { color: #121627; background: #ffffff; border-color: var(--border); }

/* Light theme button variants */
:root.light .btn { background: #ffffff; color: #1b2559; border-color: var(--border); }
:root.light .btn:hover { box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.16), 0 6px 18px -8px rgba(79, 103, 255, 0.28); }

/* Primary button: neutral solid instead of gradient */
.btn-primary { background: #1a2240; color: #ffffff; border-color: transparent; }
:root.light .btn-primary { background: #1f2a4a; color: #ffffff; border-color: transparent; box-shadow: none; }

/* Hide the nav CTA on very small screens to reduce clutter */
@media (max-width: 640px) {
  .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu { position: fixed; top: 64px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--border); display: none; flex-direction: column; padding: 8px; z-index: 99; box-shadow: 0 20px 40px -30px var(--shadow); }
.mobile-menu.open { display: flex; }
.mobile-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text); text-decoration: none; border-radius: 10px; }
.mobile-link:hover { background: color-mix(in oklab, var(--panel), transparent 85%); }
:root.light .mobile-menu { background: #ffffff; }

/* Softer, interesting secondary in light theme */
:root.light .btn-secondary {
  background: linear-gradient(180deg, #f9fbff 0%, #eef2ff 100%);
  color: #1b2559;
  border-color: #dfe4ff;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.16);
}

.hero {
  max-width: 1200px; margin: 0 auto; padding: 48px 16px 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.hero::before, .hero::after { content: none; display: none; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.4px; }
.subtitle { color: var(--muted); margin: 0 0 18px; font-size: 18px; }
.measure { max-width: 70ch; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* App stores group */
.app-stores { display: flex; gap: 12px; align-items: center; }
.store-button img { height: 58px; width: auto; display: block; }
.store-button { display: inline-block; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.20)); transition: transform .15s ease, filter .15s ease; }
.store-button:hover { transform: translateY(-1px); filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25)); }
/* Apple HIG: no extra effects in light mode */
:root.light .store-button { filter: none; transition: transform .12s ease; }
:root.light .store-button:hover { transform: translateY(-1px); }
.hero-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); background: var(--panel); border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; }
.badge img { width: 16px; height: 16px; opacity: 0.9; }
.badge .ph { color: var(--muted); }
.badge-rating .stars { display: inline-flex; gap: 2px; margin-right: 8px; align-items: center; }
.badge-rating .stars i { color: #f5b301; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08)); font-size: 15px; }

/* Light theme badges with gentle depth */
:root.light .badge {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 8px 24px -12px var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.6);
}
:root.light .badge .ph { color: #5a6b9a; }
.badge-rating .stars i { color: #f5b301; }
.hero-media { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -30px var(--shadow); }
.hero-media { position: relative; }
.hero-media::before { content: none; display: none; }
.hero-media img { width: 100%; height: auto; display: block; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-caption { margin: 8px 0 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }

.section { max-width: 1200px; margin: 0 auto; padding: 48px 16px; }
.section h2 { font-size: clamp(22px, 3.5vw, 32px); margin: 0 0 12px; }
.gradient-text { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-intro { margin: 0 0 24px; color: var(--muted); }

.features .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.feature .feature-icon { font-size: 28px; color: var(--brand); }
.feature:hover .feature-icon { transform: translateY(-1px); }
.feature h3 { margin: 4px 0; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

.use-cases .usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.usecase-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border: 1px solid var(--border); background: var(--panel); border-radius: 16px; overflow: hidden; }
.usecase-media { position: relative; background: color-mix(in oklab, var(--panel), transparent 8%); min-height: 220px; display: grid; place-items: center; }
.usecase-media img { width: 100%; height: 100%; object-fit: cover; }
.usecase-media::after { content: ""; position: absolute; inset: 0; border: 1px dashed var(--border); border-radius: 12px; margin: 8px; pointer-events: none; opacity: 0.4; }
.usecase-media .placeholder { color: var(--muted); font-size: 12px; opacity: .8; }
.usecase-content { padding: 18px; display: grid; gap: 12px; }
.usecase-content h3 { margin: 0; font-size: 20px; }
.usecase-bullets { margin: 0; padding-left: 18px; color: var(--muted); }
.prompt { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1px dashed var(--border); background: color-mix(in oklab, var(--panel) 90%, transparent); border-radius: 12px; padding: 8px; }
.prompt code { color: var(--text); opacity: .9; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13px; white-space: pre-wrap; }
.prompt .copy { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.prompt .copy:hover { background: color-mix(in oklab, var(--panel), transparent 85%); }

.how-it-works .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 16px 0 0; }
.how-it-works .steps .step-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; position: relative; display: grid; gap: 8px; }
.how-it-works .steps .step-card h4 { margin: 0 0 4px; }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.step-chip { font-size: 12px; color: var(--muted); background: color-mix(in oklab, var(--panel), white 6%); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; }
.step-icon-bubble { width: 28px; height: 28px; display: grid; place-items: center; background: #111935; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); }
:root.light .step-icon-bubble { background: #eef1fb; color: #5a6b9a; }
:root.light .how-it-works .steps li::before { background: #eef1fb; }
.cta-center { display: flex; justify-content: center; margin-top: 20px; }

.social-proof .badges { display: none; }
/* Icon badges */
.icon-badges { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.icon-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }
.icon-chip .ph { color: var(--brand); }
.icon-chip span { font-weight: 600; font-size: 14px; }

.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.site-footer { border-top: 1px solid var(--border); margin-top: 20px; background: var(--bg); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.footer-inner .logo { justify-self: start; }
.footer-links { display: flex; gap: 12px; justify-self: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.legal { color: var(--muted); text-align: right; }

/* Theme switch */
.theme-toggle { justify-self: end; display: flex; align-items: center; gap: 10px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { display: none; }
.slider { width: 48px; height: 28px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; position: relative; transition: background .2s ease; }
.slider::after { content: ""; width: 22px; height: 22px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius: 50%; position: absolute; top: 50%; left: 3px; transform: translateY(-50%); transition: left .2s ease; }
.switch input:checked + .slider::after { left: 23px; }
.switch-label { color: var(--muted); font-size: 12px; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .usecase-card { grid-template-columns: 1fr; }
  .features .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .legal { text-align: center; }
  .theme-toggle { justify-self: center; }
}

/* Creator band */
.creator-band { padding-top: 12px; }
.creator-content { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.creator-item { background: color-mix(in oklab, var(--panel), transparent 10%); border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }

@media (max-width: 920px) {
  .creator-grid { grid-template-columns: 1fr; }
}

/* Mobile enhancements */
@media (max-width: 768px) {
  /* Examples grid: single column */
  .use-cases .usecase-grid { grid-template-columns: 1fr; }
  /* Prompt blocks: stack code and button */
  .prompt { grid-template-columns: 1fr; }
  .prompt code { font-size: 12px; }
  .usecase-content { padding: 14px; }
  .usecase-media { min-height: 180px; }
  /* Slightly smaller App Store badge */
  .store-button img { height: 48px; }
}

@media (max-width: 640px) {
  /* Header sizing and spacing */
  .nav { height: 56px; padding: 0 12px; }
  .logo img { width: 30px; height: 30px; }
  .nav-actions { gap: 6px; flex-wrap: wrap; }
  .btn { padding: 6px 10px; font-size: 14px; }
  .btn-lg { padding: 10px 14px; }
  /* Hero CTA spacing */
  .hero-ctas { gap: 10px; }
  /* Features grid to single column */
  .features .feature-grid { grid-template-columns: 1fr; }
  /* App Store badge even smaller for very small screens */
  .store-button img { height: 44px; }
  /* Adjust body top padding to match smaller header */
  body { padding-top: 56px; }
}


