/* ===========================================================================
   Groundwork Themes — site styles
   Design system carried over from the original holding page:
   dark #0b0d12 base, indigo #7c8cff + green #4ade80 accents, grid + glow.
   =========================================================================== */

:root {
  --bg: #0b0d12;
  --bg-raise: #11141c;
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --text-faint: #5c6478;
  --accent: #7c8cff;
  --accent-2: #4ade80;
  --line: rgba(255, 255, 255, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; position: relative; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

/* ---- Background layers (from holding page) ---- */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -30vh; left: 50%; transform: translateX(-50%);
  width: 90vw; max-width: 1100px; height: 70vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124, 140, 255, 0.10), transparent 65%);
  filter: blur(20px);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 700px; height: 700px;
  margin: -350px 0 0 -350px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at center, rgba(124, 140, 255, 0.13), rgba(94, 224, 160, 0.04) 45%, transparent 70%);
  opacity: 0; transition: opacity 0.8s ease; will-change: transform;
}
.bg-grid-hi {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 140, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 140, 255, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), black, transparent);
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), black, transparent);
}

/* ---- Header / nav ---- */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; user-select: none; }
.wordmark span { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.wordmark span em { font-style: normal; color: var(--text-dim); font-weight: 500; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--text-dim); padding: 6px 0; position: relative; transition: color .2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(124, 140, 255, 0.7); }

/* ---- Typography ---- */
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.grad {
  background: linear-gradient(100deg, #a5b0ff 0%, var(--accent) 45%, #5ee0a0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { font-size: clamp(16px, 2vw, 18px); line-height: 1.65; color: var(--text-dim); }

/* ---- Badge (from holding page) ---- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  border-radius: 999px; padding: 7px 16px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2.4s ease-in-out infinite; }
.badge--accent .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  background: var(--text); color: var(--bg); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 140, 255, 0.25); }
.button--ghost { background: var(--bg-raise); color: var(--text); border-color: var(--line); }
.button--ghost:hover { border-color: rgba(124, 140, 255, 0.4); box-shadow: 0 6px 24px rgba(124, 140, 255, 0.12); }
.button--accent { background: var(--accent); color: #0b0d12; }

/* ---- Sections ---- */
.section { position: relative; padding: 72px 0; }
.section-head { max-width: 560px; margin-bottom: 40px; }
.section-head p { margin-top: 10px; color: var(--text-dim); }

/* ---- Hero ---- */
.hero { position: relative; text-align: center; padding: 96px 0 72px; }
.hero .badge { margin-bottom: 30px; }
.hero h1 { max-width: 820px; margin-inline: auto; }
.hero .sub { max-width: 560px; margin: 22px auto 0; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* ---- Platform chips (from holding page) ---- */
.platforms { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raise);
  font-size: 14.5px; font-weight: 500;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.platform:hover { transform: translateY(-2px); border-color: rgba(124, 140, 255, 0.35); box-shadow: 0 6px 24px rgba(124, 140, 255, 0.12); }
.platform svg { flex: none; }

/* ---- Theme showcase card ---- */
.theme-card {
  position: relative; display: grid; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raise);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.theme-card:hover { border-color: rgba(124, 140, 255, 0.35); box-shadow: 0 20px 60px rgba(124, 140, 255, 0.12); transform: translateY(-3px); }
@media (min-width: 860px) { .theme-card { grid-template-columns: 1.15fr 1fr; } }
.theme-card__preview {
  position: relative; min-height: 300px; overflow: hidden;
  background:
    radial-gradient(80% 90% at 60% 40%, rgba(91, 139, 255, 0.35), transparent 60%),
    radial-gradient(50% 60% at 30% 80%, rgba(94, 224, 160, 0.08), transparent 70%),
    #05060a;
  display: flex; align-items: center; justify-content: center;
}
.theme-card__mock {
  width: 78%; border-radius: 14px; border: 1px solid rgba(124, 140, 255, 0.35);
  background: rgba(13, 15, 22, 0.85); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(124, 140, 255, 0.12), 0 0 44px -8px rgba(91, 139, 255, 0.55), 0 30px 60px -30px rgba(0,0,0,0.9);
  padding: 22px; text-align: left;
}
.theme-card__mock-brand { font-weight: 800; letter-spacing: 0.05em; font-size: 15px; margin-bottom: 14px; }
.theme-card__mock-h { font-size: clamp(18px, 2.6vw, 26px); font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -0.01em; }
.theme-card__mock-cta { display: inline-block; margin-top: 14px; background: #fff; color: #0a0a0a; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.theme-card__mock-row { display: flex; gap: 8px; margin-top: 16px; }
.theme-card__mock-chip { flex: 1; height: 34px; border-radius: 9px; border: 1px solid rgba(124, 140, 255, 0.4); background: rgba(91, 139, 255, 0.08); }
.theme-card__mock-chip--hot { background: rgba(91, 139, 255, 0.35); }
.theme-card__body { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.theme-card__body h3 { font-size: 24px; }
.theme-card__body p { color: var(--text-dim); font-size: 15px; }
.theme-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-card__tag { font-size: 12px; font-weight: 500; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.theme-card__actions { display: flex; gap: 12px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* ---- Value props ---- */
.values { display: grid; gap: 18px; }
@media (min-width: 750px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.02);
  padding: 26px; transition: border-color .25s ease, transform .25s ease;
}
.value:hover { border-color: rgba(124, 140, 255, 0.3); transform: translateY(-2px); }
.value__icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 140, 255, 0.12); color: var(--accent);
}
.value__icon svg { width: 20px; height: 20px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: 14.5px; color: var(--text-dim); }

/* ---- Forms ---- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(124, 140, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18);
}
textarea { resize: vertical; min-height: 150px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Notices ---- */
.notice { border-radius: 14px; padding: 16px 20px; font-size: 14.5px; border: 1px solid; }
.notice--error { border-color: rgba(255, 107, 107, 0.4); background: rgba(255, 107, 107, 0.07); color: #ffb3b3; }

.success-card {
  border: 1px solid rgba(94, 224, 160, 0.35); border-radius: 20px;
  background: rgba(74, 222, 128, 0.05); padding: 48px 28px; text-align: center;
  display: grid; justify-items: center; gap: 14px;
  box-shadow: 0 0 40px -10px rgba(74, 222, 128, 0.15);
}
.success-card__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.5);
  color: var(--accent-2); box-shadow: 0 0 24px -4px rgba(74, 222, 128, 0.5);
}
.success-card__icon svg { width: 24px; height: 24px; }
.success-card p { color: var(--text-dim); max-width: 42ch; }

/* ---- Docs ---- */
.docs-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .docs-layout { grid-template-columns: 220px 1fr; } }
.docs-toc { position: sticky; top: 24px; display: none; }
@media (min-width: 900px) { .docs-toc { display: block; } }
.docs-toc p { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.docs-toc a { display: block; font-size: 14px; color: var(--text-dim); padding: 6px 0; border-left: 2px solid var(--line); padding-left: 14px; transition: color .2s, border-color .2s; }
.docs-toc a:hover { color: var(--text); border-color: var(--accent); }
.docs-body { max-width: 720px; }
.docs-body h2 { margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.docs-body h3 { margin: 26px 0 8px; }
.docs-body p, .docs-body li { color: var(--text-dim); font-size: 15.5px; }
.docs-body ul, .docs-body ol { padding-left: 22px; margin: 10px 0 18px; }
.docs-body li { margin-bottom: 6px; }
.docs-body code {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  font-size: 13.5px; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; color: #c3cbff;
}
.docs-body .tip {
  border: 1px solid rgba(124, 140, 255, 0.3); background: rgba(124, 140, 255, 0.06);
  border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin: 18px 0;
}

/* ---- Footer ---- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 26px 0; margin-top: 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-faint); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
