/* ============================================================
   SparkScript AI — SEO landing pages stylesheet
   ============================================================ */

:root {
  --bg: #08090f;
  --bg-soft: #0d0f18;
  --panel: #121522;
  --panel-2: #171b2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef6;
  --muted: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #38bdf8;
  --grad: linear-gradient(100deg, #7c5cff 0%, #38bdf8 100%);
  --grad-soft: linear-gradient(100deg, rgba(124, 92, 255, 0.16), rgba(56, 189, 248, 0.16));
  --green: #34d399;
  --red: #f87171;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Sora', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* nav */
.seo-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(8, 9, 15, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; background: var(--grad); font-size: 15px;
}
.seo-nav-links { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.seo-nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 10px 18px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .55); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.seo-hero { text-align: center; padding: 64px 22px 40px; }
.seo-hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, .3); color: #cfd3ff; margin-bottom: 18px;
  letter-spacing: .03em; text-transform: uppercase;
}
.seo-hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; max-width: 860px; margin: 0 auto;
}
.seo-hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.seo-hero p.sub { max-width: 660px; margin: 16px auto 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 17.5px); }

/* generator card */
.seo-gen-wrap { max-width: 860px; margin: 26px auto 0; padding: 0 18px; }
.seo-gen {
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; text-align: left;
}
.seo-gen h2 { font-family: var(--display); font-size: 19px; margin-bottom: 4px; }
.seo-gen .gen-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.seo-field { margin-bottom: 14px; }
.seo-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.seo-input, .seo-select {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong);
  border-radius: 10px; color: var(--text); padding: 11px 13px; font-size: 15px; font-family: inherit; outline: none;
}
.seo-input:focus, .seo-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.seo-input { min-height: 84px; resize: vertical; }
.seo-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; cursor: pointer; }
.seo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.seo-status { color: var(--muted); font-size: 13px; }
.seo-out { display: none; margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 16px; }
.seo-out pre {
  font-family: inherit; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.75;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.seo-out-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.gen-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, .13); color: var(--green); font-weight: 600; }
.spin { display: inline-block; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* content sections */
.seo-section { padding: 56px clamp(18px, 4vw, 48px) 20px; max-width: 980px; margin: 0 auto; }
.seo-section h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; letter-spacing: -.01em; }
.seo-section .lead { color: var(--muted); margin-bottom: 22px; font-size: 15.5px; }
.seo-section h3 { font-family: var(--display); font-size: 18px; margin: 26px 0 8px; }
.seo-section p { color: #c6cbdb; font-size: 15.5px; margin-bottom: 12px; }
.seo-section ul { list-style: none; margin: 10px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.seo-section ul li { padding-left: 26px; position: relative; color: #c6cbdb; font-size: 15px; }
.seo-section ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.seo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.seo-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.seo-card b { display: block; margin-bottom: 6px; font-family: var(--display); }
.seo-card span { color: var(--muted); font-size: 13.5px; }
.example {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; margin: 14px 0; font-size: 14px; color: #d5d9e6;
}
.example .ex-head { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }

/* faq */
.seo-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.seo-faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 2px 20px; }
.seo-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.seo-faq details p { color: var(--muted); font-size: 14.5px; padding-bottom: 14px; }

/* final cta */
.seo-cta { text-align: center; padding: 60px 20px; }
.seo-cta h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.seo-cta p { color: var(--muted); margin-bottom: 22px; }

/* footer */
.seo-footer { border-top: 1px solid var(--border); padding: 24px clamp(18px, 4vw, 48px); text-align: center; color: rgba(154, 163, 184, .7); font-size: 13px; }
.seo-footer .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.seo-footer .links a { color: var(--muted); }
.seo-footer .links a:hover { color: var(--text); }
.seo-footer > a { color: var(--muted); text-decoration: underline; }
.seo-footer > a:hover { color: var(--text); }
