/* Nexus Flow — Drill 020
   Vertical: Tech SaaS / startup
   Palette: dark mode #0f1117 + electric violet #6c3de0 + neon green accent #39d353
*/

:root {
  color-scheme: dark;
  --dark: #0f1117;
  --dark-2: #161b27;
  --dark-3: #1c2236;
  --dark-4: #222840;
  --violet: #6c3de0;
  --violet-dark: #4e2ab3;
  --violet-light: #8a5ce8;
  --violet-pale: rgba(108, 61, 224, 0.12);
  --green: #39d353;
  --green-dark: #25b33e;
  --green-pale: rgba(57, 211, 83, 0.1);
  --white: #ffffff;
  --text: #e8eaf0;
  --muted: #8892a8;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.14);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.4);
  --glow-violet: 0 0 40px rgba(108, 61, 224, 0.25);
  --radius: 8px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}
a { color: var(--violet-light); text-decoration: none; }
a:hover { text-decoration: underline; color: #a078f0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: 1rem; z-index: 10;
  transform: translateY(-200%);
  background: var(--violet); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }
.noscript-warning {
  background: #332200; color: #ffd080;
  padding: 0.75rem 1.5rem; text-align: center; margin: 0;
  border-bottom: 1px solid #665500;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 4rem); height: 64px;
  background: rgba(15, 17, 23, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.02em;
  flex-shrink: 0; box-shadow: var(--glow-violet);
}
.brand strong { display: block; font-size: 0.95rem; color: var(--white); font-weight: 700; }
.brand small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.4rem 0.8rem; border-radius: 6px;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--dark-3); text-decoration: none; }
.nav-cta {
  background: var(--violet) !important; color: var(--white) !important;
  padding: 0.45rem 1.1rem !important; border-radius: 6px !important; font-weight: 600 !important;
  box-shadow: var(--glow-violet);
}
.nav-cta:hover { background: var(--violet-light) !important; }

/* ── BUTTONS ── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1.5px solid transparent; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button.primary { background: var(--green); color: var(--dark); border-color: var(--green); box-shadow: 0 0 20px rgba(57, 211, 83, 0.25); }
.button.primary:hover { background: var(--green-dark); box-shadow: 0 0 30px rgba(57, 211, 83, 0.35); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line-bright); }
.button.secondary:hover { border-color: var(--violet-light); color: var(--white); background: var(--violet-pale); }
.button.outline { background: transparent; color: var(--white); border-color: var(--violet-light); }
.button.outline:hover { background: var(--violet-pale); border-color: var(--violet); }
.button.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.button.ghost:hover { color: var(--text); background: var(--dark-3); }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 3rem; align-items: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 40%, rgba(108, 61, 224, 0.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-pale); border: 1px solid rgba(57, 211, 83, 0.25);
  color: var(--green); font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem;
  border-radius: 20px; margin-bottom: 1.25rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: block;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--violet-light); margin: 0 0 1rem;
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; color: var(--white);
}
.hero-copy { font-size: 1.05rem; color: var(--muted); margin: 0 0 2rem; max-width: 520px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero-disclaimer { font-size: 0.78rem; color: var(--muted); margin: 0; }
.hero-visual { position: relative; z-index: 1; }

/* Terminal mock */
.terminal-mock {
  background: var(--dark-2); border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-violet);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  font-size: 0.82rem;
}
.terminal-bar {
  background: var(--dark-3); padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.terminal-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.t-line { display: flex; align-items: baseline; gap: 0.75rem; }
.t-key { color: var(--violet-light); font-weight: 600; min-width: 80px; flex-shrink: 0; }
.t-val { color: var(--muted); }
.t-ok { color: var(--green); font-size: 0.7rem; }
.t-warn { }
.t-warn-dot { color: #f59e0b; font-size: 0.7rem; }
.t-warn .t-val { color: #fbbf24; }
.t-accent .t-val, .t-acc { color: var(--green); }

/* ── METRICS STRIP ── */
.metrics-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--dark-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metrics-strip > div { padding: 1.25rem 1.75rem; border-right: 1px solid var(--line); }
.metrics-strip > div:last-child { border-right: none; }
.metrics-strip strong { display: block; font-size: 1.15rem; color: var(--white); font-weight: 700; margin-bottom: 0.2rem; }
.metrics-strip span { font-size: 0.8rem; color: var(--muted); }
.metrics-strip em { font-size: 0.7rem; font-style: italic; }

/* ── SECTIONS ── */
.section-heading { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin: 0.4rem 0 0.75rem; line-height: 1.2; color: var(--white);
}
.section-heading p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.section-heading .eyebrow { color: var(--violet-light); }

/* ── PRODUCT ── */
.product {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
  background: var(--dark);
}
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--dark-2); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--violet-pale); }
.service-card.featured { border-color: rgba(108, 61, 224, 0.4); box-shadow: var(--glow-violet); }
.card-num {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--violet-light);
  background: var(--violet-pale); border: 1px solid rgba(108,61,224,0.25);
  padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.875rem;
}
.featured-num { background: var(--violet); color: var(--white); border-color: var(--violet); }
.service-card h3 { margin: 0 0 0.6rem; color: var(--white); font-size: 1.05rem; font-weight: 700; }
.service-card p { color: var(--muted); margin: 0 0 0.875rem; font-size: 0.875rem; }
.service-card ul { margin: 0; padding-left: 1.1rem; }
.service-card li { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }

/* ── PRICING ── */
.pricing {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
  background: var(--dark-2);
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; max-width: 1100px; margin: 0 auto 2rem;
  align-items: start;
}
.pricing-card {
  background: var(--dark-3); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--line);
  position: relative;
}
.pricing-card.featured-plan { border-color: var(--violet); box-shadow: var(--glow-violet); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--violet); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 20px;
  white-space: nowrap;
}
.plan-name { font-size: 0.9rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.plan-price { margin-bottom: 0.875rem; }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.price-unit { font-size: 0.82rem; color: var(--muted); margin-left: 0.25rem; }
.plan-desc { font-size: 0.875rem; color: var(--muted); margin: 0 0 1.25rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan-features li {
  font-size: 0.85rem; color: var(--muted); padding: 0.35rem 0;
  border-bottom: 1px solid var(--line); display: flex; align-items: flex-start;
}
.plan-features li::before { content: '✓'; color: var(--green); margin-right: 0.5rem; flex-shrink: 0; font-weight: 700; }
.plan-cta { width: 100%; padding: 0.75rem; }
.pricing-disclaimer {
  max-width: 900px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); text-align: center;
}

/* ── TRUST ── */
.trust {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
  background: var(--dark);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; max-width: 1200px; margin: 0 auto;
}
.trust article {
  background: var(--dark-2); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--line);
}
.trust article h3 { margin: 0 0 0.5rem; color: var(--green); font-size: 0.95rem; font-weight: 700; }
.trust article p { margin: 0; color: var(--muted); font-size: 0.875rem; }

/* ── ABOUT ── */
.about {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
  background: var(--dark-2);
}
.about-content { max-width: 580px; }
.about h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: 0.4rem 0 1rem; color: var(--white); font-weight: 800; }
.about p { color: var(--muted); margin: 0 0 0.875rem; font-size: 0.95rem; }
.about-stack {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-width: 280px;
}
.stack-item {
  background: var(--dark-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.stack-label { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.stack-item strong { color: var(--text); font-size: 0.85rem; font-weight: 600; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 50%, var(--charcoal-mid, #242440) 100%);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
  text-align: center;
  border-top: 1px solid var(--violet-pale);
}
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin: 0 0 0.875rem; font-weight: 800; color: var(--white); }
.cta-content > p { color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1.5rem; }
.cta-note { font-size: 0.78rem; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ── FOOTER ── */
.site-footer { background: #08090d; color: rgba(255,255,255,0.7); border-top: 1px solid var(--line); }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 2rem; padding: 2.5rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand strong { color: var(--white); font-size: 1rem; }
.footer-brand span { font-size: 0.78rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.footer-nav a { color: var(--muted); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { padding: 1.25rem clamp(1rem, 4vw, 4rem); font-size: 0.77rem; color: rgba(255,255,255,0.35); }
.footer-bottom p { margin: 0 0 0.25rem; }

/* ── CONTACT PAGE ── */
.contact-main { padding: 0 clamp(1rem, 4vw, 4rem) 4rem; max-width: 1200px; margin: 0 auto; }
.contact-header { padding: 3rem 0 2rem; max-width: 640px; }
.contact-header .eyebrow { color: var(--violet-light); }
.contact-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.4rem 0 0.75rem; color: var(--white); font-weight: 800; }
.contact-lede { font-size: 1rem; color: var(--muted); margin: 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.intake-notice {
  background: rgba(108,61,224,0.08); border: 1px solid rgba(108,61,224,0.25);
  border-left: 3px solid var(--violet-light);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.875rem;
}
.intake-notice strong { color: var(--text); display: block; margin-bottom: 0.5rem; }
.intake-notice ul { margin: 0; padding-left: 1.25rem; }
.intake-notice li { color: var(--muted); margin-bottom: 0.3rem; }

/* Form */
.intake-form { display: flex; flex-direction: column; gap: 0; }
.form-section {
  background: var(--dark-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.25rem;
}
.form-section legend { font-weight: 700; font-size: 0.95rem; color: var(--text); padding: 0 0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.field:first-of-type { margin-top: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field-note { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.required { color: #f87171; margin-left: 2px; }
.field input, .field select, .field textarea {
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--dark-3); color: var(--text);
  transition: border-color 0.15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--violet-light); outline: none;
  box-shadow: 0 0 0 3px rgba(108, 61, 224, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--dark-3); }
.field textarea { resize: vertical; min-height: 120px; }
.field-help { font-size: 0.78rem; color: var(--muted); margin: 0.25rem 0 0; }
.consent-block { margin: 1rem 0; }
.consent-label { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; font-size: 0.875rem; color: var(--muted); }
.consent-label input[type="checkbox"] { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--violet); }
.form-notice {
  background: rgba(108,61,224,0.06); border: 1px solid rgba(108,61,224,0.2);
  border-radius: var(--radius); padding: 0.875rem 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem;
}
.form-notice strong { color: var(--text); }
.form-actions .button { width: 100%; padding: 0.9rem; font-size: 1rem; }
.form-result { margin-top: 1rem; font-size: 0.9rem; }
.form-result.success { color: var(--green); background: rgba(57,211,83,0.08); border: 1px solid rgba(57,211,83,0.25); padding: 1rem; border-radius: var(--radius); }
.form-result.error { color: #f87171; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); padding: 1rem; border-radius: var(--radius); }

/* Sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 84px; }
.sidebar-card { background: var(--dark-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.sidebar-card h2 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--text); font-weight: 700; }
.sidebar-card p { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--muted); }
.sidebar-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.sidebar-card li { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }
.next-steps { padding-left: 1.25rem; margin: 0; }
.next-steps li { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
.next-steps strong { color: var(--text); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.4rem; }
.contact-list strong { color: var(--text); }
.contact-list a { color: var(--violet-light); }

/* ── PRIVACY ── */
.prose-main { padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem); }
.prose-article { max-width: 760px; margin: 0 auto; }
.prose-article .eyebrow { color: var(--violet-light); }
.prose-article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white); margin: 0.4rem 0 0.25rem; font-weight: 800; }
.prose-meta { font-size: 0.82rem; color: var(--muted); margin: 0 0 2rem; }
.prose-article h2 { font-size: 1.1rem; color: var(--text); margin: 2rem 0 0.5rem; font-weight: 700; }
.prose-article p { color: var(--muted); margin: 0 0 0.75rem; line-height: 1.7; }
.prose-article a { color: var(--violet-light); }
.prose-drill-note {
  margin-top: 2rem; padding: 0.875rem 1rem;
  background: rgba(108,61,224,0.06); border: 1px solid rgba(108,61,224,0.2);
  border-radius: var(--radius); font-size: 0.8rem; color: var(--muted); font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-stack { min-width: unset; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav a:not(.nav-cta) { display: none; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
}
