:root {
  --bg: #080a0f;
  --bg-2: #0e121b;
  --panel: rgba(255,255,255,.065);
  --panel-strong: rgba(255,255,255,.11);
  --text: #f6f7fb;
  --muted: #a7b0c0;
  --line: rgba(255,255,255,.13);
  --accent: #d7ff74;
  --accent-2: #8fd8ff;
  --accent-3: #b29cff;
  --shadow: 0 28px 90px rgba(0,0,0,.38);
  --radius: 28px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(143,216,255,.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(215,255,116,.13), transparent 30%),
    linear-gradient(180deg, #090b11 0%, #080a0f 44%, #0b0d13 100%);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }
p { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(46px, 7.2vw, 96px); }
h2 { font-size: clamp(34px, 5vw, 62px); margin-bottom: 20px; }
h3 { font-size: 25px; margin-bottom: 12px; }

.site-shell { width: min(100%, 1440px); margin: 0 auto; padding: 18px; }
.nav {
  max-width: var(--max);
  margin: 0 auto;
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(8,10,15,.72);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #07100b; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #07100b; background: var(--accent); padding: 10px 14px; border-radius: 999px; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 42px;
  padding: 92px 0 62px;
}
.eyebrow { color: var(--accent); font-size: 13px; line-height: 1.1; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 18px; }
.hero-subtitle { font-size: 22px; max-width: 750px; margin-top: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 20px; border-radius: 999px; text-decoration: none; font-weight: 850; border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #07100b; border-color: var(--accent); }
.button.secondary { background: rgba(255,255,255,.08); color: var(--text); }
.button.full { width: 100%; }
.microcopy { font-size: 14px; margin-top: 14px; color: #c2c9d5; }

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border-radius: 34px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.panel-topline { display: flex; gap: 8px; margin: 0 0 22px; }
.panel-topline span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.28); }
.panel-card { border: 1px solid var(--line); background: rgba(8,10,15,.64); padding: 20px; border-radius: 22px; margin-top: 14px; }
.panel-card.active { background: linear-gradient(145deg, rgba(215,255,116,.18), rgba(143,216,255,.08)); }
.panel-card.muted { opacity: .75; }
.panel-card strong { display: block; font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.panel-card p, .panel-card li { font-size: 15px; color: #cbd2df; }
.panel-card ol { margin: 10px 0 0; padding-left: 20px; }
.panel-label { display: inline-flex; color: var(--accent); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }

.logos-card {
  max-width: var(--max);
  margin: -22px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.logos-card span { color: var(--muted); font-size: 14px; }
.logos-card a { color: var(--text); text-decoration: none; font-weight: 750; font-size: 14px; }

.section { max-width: var(--max); margin: 0 auto; padding: 92px 0; border-top: 1px solid rgba(255,255,255,.08); }
.section-header { max-width: 850px; margin-bottom: 34px; }
.section-header.narrow { max-width: 760px; text-align: center; margin-left: auto; margin-right: auto; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .method-card, .output-card, .pricing-card, details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 60px rgba(0,0,0,.14);
}
.card p, .method-card p, .output-card p { font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 46px; }
.reversed { grid-template-columns: .82fr 1.18fr; }
.checklist { display: grid; gap: 10px; margin-top: 26px; }
.checklist p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text); font-weight: 700; }
.checklist span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(215,255,116,.14); color: var(--accent); }
.workflow { display: grid; gap: 14px; }
.workflow-step { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.06); }
.workflow-step strong { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #07100b; }
.workflow-step span { font-weight: 800; font-size: 19px; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.method-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.method-card span { color: var(--accent-2); font-weight: 900; letter-spacing: -.04em; font-size: 48px; opacity: .9; }
.method-card.wide { grid-column: span 2; }
.output-stack { display: grid; gap: 16px; }
.output-card { background: linear-gradient(145deg, rgba(143,216,255,.12), rgba(255,255,255,.05)); }
.output-card span { color: var(--accent); font-weight: 900; display: block; margin-bottom: 8px; }
.work-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 420px; }
.work-image { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.055); box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.work-image img { display: block; width: 100%; height: 128px; object-fit: cover; }
.bullet-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bullet-list li { color: #dce2ec; font-weight: 700; padding-left: 26px; position: relative; }
.bullet-list li:before { content: "•"; position: absolute; left: 0; color: var(--accent); }

.credibility { text-align: center; }
.founder-proof { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 28px; align-items: center; text-align: left; max-width: 900px; margin: 34px auto 28px; }
.founder-proof img { display: block; width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 54px rgba(0,0,0,.28); }
.founder-proof h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
.founder-proof p:last-child { margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 28px; }
.stats-grid div { border: 1px solid var(--line); background: var(--panel-strong); border-radius: 24px; padding: 26px; }
.stats-grid strong { display: block; font-size: 52px; letter-spacing: -.05em; margin-bottom: 8px; }
.stats-grid span { color: var(--muted); font-size: 15px; }
.cred-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cred-links a { color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,.055); }
.pricing-card { display: grid; grid-template-columns: .86fr 1.14fr; gap: 32px; align-items: start; }
.pricing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.price-box { border: 1px solid var(--line); background: rgba(8,10,15,.62); border-radius: 24px; padding: 24px; }
.price { font-size: 62px; font-weight: 950; letter-spacing: -.06em; }
.price span { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.faq { max-width: 920px; }
details { margin-bottom: 14px; }
summary { cursor: pointer; font-weight: 850; font-size: 20px; }
details p { margin-top: 14px; }
.footer { max-width: var(--max); margin: 0 auto; padding: 36px 0 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer p { max-width: 560px; font-size: 15px; margin-top: 8px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--text); }

/* Live generator */
.try-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: start; }
.try-form {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,.14);
  position: sticky;
  top: 96px;
}
.try-form label { display: grid; gap: 8px; }
.try-form label span { font-weight: 800; font-size: 15px; color: var(--text); }
.try-form label em { color: var(--accent); font-style: normal; }
.try-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  background: rgba(8,10,15,.55);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.try-form textarea:focus { outline: none; border-color: var(--accent-2); }
.try-form textarea::placeholder { color: #7c8496; }
.try-form button:disabled { opacity: .6; cursor: progress; transform: none; }
.try-output {
  border: 1px solid var(--line);
  background: rgba(8,10,15,.5);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 320px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.try-placeholder { display: grid; place-items: center; min-height: 280px; text-align: center; padding: 20px; }
.try-placeholder p { max-width: 360px; }
.nl-loading { animation: nl-pulse 1.2s ease-in-out infinite; }
@keyframes nl-pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.result-block { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 18px; padding: 16px 18px; }
.result-block p { font-size: 15px; color: #dce2ec; margin: 0; white-space: normal; }
.result-block ul { margin: 6px 0 0; padding-left: 20px; }
.result-block li { font-size: 15px; color: #dce2ec; margin-bottom: 6px; }

/* Auth box */
[hidden] { display: none !important; }
.auth-box { border: 1px solid var(--line); background: rgba(8,10,15,.5); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.auth-row { display: grid; gap: 10px; }
.auth-box input { border: 1px solid var(--line); background: rgba(8,10,15,.55); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 15px; }
.auth-box input:focus { outline: none; border-color: var(--accent-2); }
.auth-box input::placeholder { color: #7c8496; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-actions .button { min-height: 44px; padding: 10px 16px; flex: 1; }
.auth-msg { margin: 0; }
.auth-signedin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.auth-signedin strong { color: var(--text); }
.token-pill { color: #07100b; background: var(--accent); border-radius: 999px; padding: 4px 12px; font-weight: 850; font-size: 13px; }
.linklike { background: none; border: none; color: var(--accent-2); cursor: pointer; font: inherit; font-weight: 700; padding: 0; }

/* Nav login link */
.nav-login { color: var(--text) !important; border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.06); text-decoration: none; }

/* Auth modal */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4,6,10,.72); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(440px, 100%); border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.modal-card h3 { font-size: 26px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.auth-row input, .modal-card input { border: 1px solid var(--line); background: rgba(8,10,15,.55); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 15px; width: 100%; }
.auth-row input:focus, .modal-card input:focus { outline: none; border-color: var(--accent-2); }

/* App shell (cabinet + admin) */
.app-main { max-width: var(--max); margin: 0 auto; padding: 40px 0 60px; }
.app-head { margin-bottom: 28px; }
.app-h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.app-user { color: var(--muted); font-size: 14px; font-weight: 650; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.app-col { display: grid; gap: 20px; }
.app-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 22px; }
.billing-card h2, .consultation-card h2 { font-size: 26px; margin-bottom: 8px; }
.billing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.billing-options div { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.billing-options strong { font-size: 24px; }
.billing-options span { color: var(--muted); font-size: 14px; min-height: 36px; }
.consultation-card { border-color: rgba(116, 255, 179, .32); }
.consultation-card .button { margin: 16px 0 10px; }
.try-form.is-locked textarea { opacity: .62; }
.app-history .panel-label { margin-bottom: 12px; }
.hist-item { display: grid; gap: 3px; width: 100%; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: var(--text); }
.hist-item:hover { border-color: var(--accent-2); }
.hist-item strong { font-size: 15px; }
.hist-item span { color: var(--muted); font-size: 12px; }

/* Admin table */
.table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { color: #dce2ec; }
.admin-badge { color: #07100b; background: var(--accent-2); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 850; }
.grant-btn { color: var(--accent); }

@media (max-width: 920px) {
  .try-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .billing-options { grid-template-columns: 1fr; }
  .try-form { position: static; }
  .site-shell { padding: 12px; }
  .nav { border-radius: 26px; align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.nav-cta):not(.nav-login) { display: none; }
  .hero, .split, .reversed, .pricing-card, .pricing-options { grid-template-columns: 1fr; }
  .founder-proof { grid-template-columns: 1fr; text-align: center; }
  .founder-proof img { max-width: 360px; margin: 0 auto; }
  .hero { min-height: auto; padding: 74px 0 50px; }
  .hero-panel { transform: none; }
  .three-grid, .stats-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card.wide { grid-column: auto; }
  .section { padding: 68px 0; }
  .footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
