/* ========== Tokens ========== */
:root {
  --bg: #07071a;
  --bg-2: #0e0c2a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f1f1fa;
  --muted: #a5a5c2;
  --brand: #8b5cf6;
  --brand-2: #ec4899;
  --brand-3: #06b6d4;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -20px rgba(139, 92, 246, 0.45);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

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

/* ========== Aurora background ========== */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; background: #8b5cf6; top: -120px; left: -120px; }
.blob-2 { width: 600px; height: 600px; background: #ec4899; top: 30%; right: -180px; animation-delay: -6s; }
.blob-3 { width: 460px; height: 460px; background: #06b6d4; bottom: -160px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ========== Navbar ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 26, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad);
  position: relative;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 5px; border-radius: 4px;
  background: var(--bg);
}
.logo-text .dot { color: var(--brand-2); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  background: var(--grad);
  background-size: 200% 200%;
  color: white; border: 0;
  transition: transform .25s ease, background-position .6s ease, box-shadow .25s ease;
  box-shadow: 0 10px 30px -8px rgba(236, 72, 153, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 100%; }
.btn-primary.lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background .25s, transform .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost.lg { padding: 16px 32px; font-size: 1.05rem; }

/* ========== Hero ========== */
.hero { padding: 80px 0 100px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--brand-3); margin-bottom: 20px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); margin: 24px 0 36px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: flex; gap: 36px; flex-wrap: wrap;
}
.hero-trust li { font-size: 0.95rem; color: var(--muted); }
.hero-trust strong { color: var(--text); font-size: 1.4rem; display: block; font-family: 'Space Grotesk', sans-serif; }

/* Hero card */
.hero-card { position: relative; }
.card-window {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: rotate(-1deg);
  transition: transform .6s ease;
}
.card-window:hover { transform: rotate(0deg) translateY(-6px); }
.card-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.card-bar .red { background: #ff5f56; }
.card-bar .yellow { background: #ffbd2e; }
.card-bar .green { background: #27c93f; }
.card-url { margin-left: auto; font-size: 0.8rem; color: var(--muted); font-family: monospace; }
.card-body { padding: 24px; }
.prompt-line {
  background: rgba(0,0,0,0.3); border-radius: 12px; padding: 14px 16px;
  border: 1px solid var(--border); margin-bottom: 18px;
}
.prompt-tag { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--brand-3); font-weight: 700; }
.prompt-line p { margin: 4px 0 0; font-size: 0.9rem; color: #d8d8ea; }
.card-gen {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gen-tile { display: flex; flex-direction: column; gap: 6px; }
.gen-img {
  aspect-ratio: 1/1; border-radius: 10px; border: 1px solid var(--border);
  background-size: cover; background-position: center;
}
.g1 { background: linear-gradient(135deg, #ff6ec7 0%, #6a59ff 50%, #00d4ff 100%); }
.g2 { background: linear-gradient(135deg, #f97316 0%, #ec4899 100%); }
.g3 { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.g4 { background: linear-gradient(135deg, #facc15 0%, #f97316 100%); }
.gen-tile span { font-size: 0.7rem; color: var(--muted); text-align: center; }
.card-barcode {
  display: flex; gap: 3px; margin-top: 16px; height: 28px;
  background: rgba(255,255,255,0.04); padding: 8px; border-radius: 6px;
}
.card-barcode span { flex: 1; background: linear-gradient(180deg, #ec4899, #8b5cf6); border-radius: 1px; opacity: 0.7; }
.card-barcode span:nth-child(odd) { opacity: 1; }
.float-tag {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.8rem; backdrop-filter: blur(10px);
  animation: bob 4s ease-in-out infinite;
}
.tag-1 { top: 12%; left: -8%; }
.tag-2 { bottom: 18%; right: -6%; animation-delay: -1.5s; }
.tag-3 { top: 50%; left: -14%; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ========== Logos ========== */
.logos { padding: 40px 0 60px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px; }
.logos-row {
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; align-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: rgba(255,255,255,0.45);
}
.logos-row span { transition: color .3s; }
.logos-row span:hover { color: var(--text); }

/* ========== Section head ========== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head.left { text-align: left; margin: 0 0 40px; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }

/* ========== Capabilities ========== */
.capabilities { padding: 100px 0; }
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
  position: relative; overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(600px circle at 30% 0%, rgba(139, 92, 246, 0.15), transparent 40%);
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.4); }
.cap-card:hover::before { opacity: 1; }
.cap-card.highlight {
  background: linear-gradient(160deg, rgba(139,92,246,0.15), rgba(236,72,153,0.08));
  border-color: rgba(236, 72, 153, 0.4);
}
.cap-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif;
  background: var(--grad); color: white;
  margin-bottom: 20px;
}
.cap-card p { color: var(--muted); margin: 12px 0 16px; }
.cap-card a { color: var(--brand-3); font-weight: 600; font-size: 0.95rem; }

/* ========== Playground ========== */
.playground { padding: 100px 0; }
.pg-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.pg-tabs { display: flex; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.pg-tab {
  flex: 1; padding: 18px; background: transparent; border: 0;
  color: var(--muted); font-weight: 600; font-size: 0.95rem;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.pg-tab:hover { color: var(--text); }
.pg-tab.active { color: var(--text); border-bottom-color: var(--brand-2); background: rgba(236,72,153,0.08); }
.pg-panels { padding: 32px; }
.pg-panel { display: none; }
.pg-panel.active { display: block; }
.pg-panel textarea {
  width: 100%; resize: vertical; min-height: 84px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.pg-panel textarea:focus { outline: none; border-color: var(--brand); }
.pg-controls {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end;
  margin: 20px 0 28px;
}
.pg-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.pg-controls select, .pg-controls input[type="range"] {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 10px 12px; font-family: inherit;
}
.pg-output {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); display: grid; grid-template-columns: 1fr 220px;
}
.pg-img {
  min-height: 280px; background-size: cover; background-position: center;
  transition: filter .6s ease;
}
.pg-img-1 {
  background-image:
    linear-gradient(135deg, rgba(8,8,26,0.2), rgba(8,8,26,0.4)),
    linear-gradient(135deg, #ff6ec7 0%, #6a59ff 50%, #00d4ff 100%);
}
.pg-meta { background: rgba(0,0,0,0.4); padding: 28px; display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.pg-meta p { font-family: monospace; }

/* ========== Showcase ========== */
.showcase { padding: 100px 0; }
.show-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 16px; }
.show-item { margin: 0; border-radius: var(--radius); border: 1px solid var(--border); background-size: cover; background-position: center; transition: transform .4s ease; }
.show-item:hover { transform: scale(1.03); }
.s-1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.s-2 { grid-column: span 2; background: linear-gradient(135deg, #06b6d4, #10b981); }
.s-3 { background: linear-gradient(135deg, #f97316, #facc15); }
.s-4 { grid-column: span 2; background: linear-gradient(135deg, #6366f1, #ec4899); }
.s-5 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.s-6 { grid-column: span 2; background: linear-gradient(135deg, #ec4899, #f97316); }

/* ========== Pricing ========== */
.pricing { padding: 100px 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; display: flex; flex-direction: column; gap: 18px;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(139,92,246,0.18), rgba(236,72,153,0.10));
  border-color: rgba(236,72,153,0.5); transform: translateY(-10px);
  box-shadow: 0 30px 80px -20px rgba(236,72,153,0.4);
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); padding: 6px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.price span { font-size: 3rem; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.price-card .btn-primary, .price-card .btn-ghost { width: 100%; justify-content: center; }

/* ========== FAQ ========== */
.faq { padding: 100px 0; }
.faq-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px; transition: border-color .25s;
}
.faq-list details[open] { border-color: rgba(139,92,246,0.5); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brand-2); font-weight: 300; transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--muted); margin-top: 12px; }

/* ========== CTA ========== */
.cta { padding: 60px 0 120px; }
.cta-card {
  background: var(--grad); border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center; box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-card p { margin: 16px 0 32px; opacity: 0.92; }
.cta-card .btn-primary { background: white; color: #07071a; }
.cta-card .btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4); }

/* ========== Footer ========== */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); font-size: 0.92rem; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer .logo { margin-bottom: 16px; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 50px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .pg-controls { grid-template-columns: 1fr 1fr; }
  .pg-controls .btn-primary { grid-column: 1 / -1; }
  .pg-output { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .show-grid { grid-template-columns: repeat(2, 1fr); }
  .s-1, .s-2, .s-4, .s-6 { grid-column: span 2; }
  .s-1 { grid-row: span 1; }
}
@media (max-width: 560px) {
  .caps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
  .pg-controls { grid-template-columns: 1fr; }
}