/* ═══════════════════════════════════════════
   FrostWeb AI Theme
   On-Premises AI for Regulated Industries
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #060a12;
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-elevated: #1a2236;
  --frost: #38bdf8;
  --frost-deep: #0c8fce;
  --frost-glow: #7dd3fc;
  --frost-pale: #bae6fd;
  --cyan: #22d3ee;
  --text-primary: #e8edf5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #334155;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 0.03em;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.9rem 0;
  background: rgba(6, 10, 18, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--frost); }

.nav-cta {
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--frost) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: var(--frost) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1.1rem 0.4rem 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: var(--frost);
  font-weight: 500;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--frost);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--frost-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 em {
  font-style: italic;
  -webkit-text-fill-color: var(--frost);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--frost-deep), var(--frost));
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ── Terminal card ── */
.hero-visual { position: relative; }

.terminal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot--red { background: #ef4444; }
.terminal-dot--yellow { background: #eab308; }
.terminal-dot--green { background: #22c55e; }

.terminal-title {
  margin-left: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.terminal-body .comment { color: var(--text-muted); }
.terminal-body .key { color: var(--frost); }
.terminal-body .value { color: var(--success); }
.terminal-body .warn { color: var(--warning); }
.terminal-body .num { color: var(--cyan); }

/* ── Stats bar ── */
.stats-bar {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat { text-align: center; padding: 1rem; }

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--frost);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Section headers ── */
.problem { background: var(--bg-primary); }
.method { background: var(--bg-deep); }
.results { background: var(--bg-primary); }
.deployment { background: var(--bg-deep); }
.credentials { background: var(--bg-primary); }
.contact { background: var(--bg-deep); }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* ── Problem cards ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--frost), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover::before { opacity: 1; }
.problem-card:hover { border-color: rgba(56, 189, 248, 0.2); }

.problem-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.problem-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Method ── */
.method-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.method-step:hover { border-color: rgba(56, 189, 248, 0.2); }

.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--frost);
  font-size: 1.1rem;
}

.method-step h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.method-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.method-visual { position: sticky; top: 6rem; }

.method-insight-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.method-insight-box blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--frost-pale);
  line-height: 1.6;
  border-left: 3px solid var(--frost);
  padding-left: 1.25rem;
}

.method-insight-box .attribution {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Results ── */
.results-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.results-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: var(--text-secondary);
}

.results-table td:first-child { color: var(--text-primary); font-weight: 500; }
.results-table .highlight { color: var(--frost); font-weight: 600; }

.results-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.callout-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.callout-card .big {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--frost);
  line-height: 1;
}

.callout-card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Comparison chart ── */
.comparison-chart {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.comparison-chart h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.comparison-chart .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 100px 1fr 48px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-label { font-size: 0.8rem; color: var(--text-secondary); text-align: right; }

.chart-bar-track {
  height: 28px;
  background: rgba(56, 189, 248, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar--before {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.6));
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.chart-bar--after {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0.7));
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.chart-val { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 500; }
.chart-val--before { color: var(--warning); }
.chart-val--after { color: var(--frost); }

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.chart-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.chart-legend-dot--before { background: rgba(251, 191, 36, 0.6); }
.chart-legend-dot--after { background: rgba(56, 189, 248, 0.7); }

/* ── Deployment tiers ── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.tier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s;
}

.tier-card:hover {
  border-color: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.tier-card--featured {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.04), var(--bg-surface));
}

.tier-card--featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--frost-deep), var(--frost));
  color: var(--bg-deep);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
}

.tier-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 0.5rem;
}

.tier-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.tier-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  min-height: 4.5rem;
}

.tier-diagram {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tier-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.tier-features { list-style: none; margin-bottom: 2rem; }

.tier-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.tier-features li:last-child { border-bottom: none; }
.tier-features .check { color: var(--frost); font-size: 0.85rem; margin-top: 0.15rem; flex-shrink: 0; }

.tier-price {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tier-price span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
}

/* ── Credentials ── */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cred-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.cred-card:hover { border-color: rgba(56, 189, 248, 0.15); }

.cred-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }

.cred-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  font-size: 1.15rem;
}

.cred-card-header h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.cred-list { list-style: none; }

.cred-list li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  align-items: start;
  gap: 0.6rem;
}

.cred-list li::before {
  content: '›';
  color: var(--frost);
  font-weight: 700;
  flex-shrink: 0;
}

.cred-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.cred-list a:hover { color: var(--frost); }

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }

.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.contact-detail { display: flex; align-items: center; gap: 1rem; color: var(--text-secondary); font-size: 0.9rem; }

.contact-detail-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-detail:has(.pgp-details) { margin-top: 1rem; align-items: flex-start; }

.pgp-details { margin-top: 0.1rem; line-height: 1; }

.pgp-details summary {
  cursor: pointer;
  color: var(--frost);
  font-size: 0.78rem;
  font-weight: 500;
}

.pgp-key {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: pre;
  word-break: break-all;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
}

/* Reset Grav form plugin built-in styles */
.contact-form .form-wrapper,
.contact-form form { background: transparent; border: none; padding: 0; margin: 0; box-shadow: none; }

/* Grav form field wrappers */
.contact-form .form-field { margin-bottom: 1.5rem; }

.contact-form .form-label label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.contact-form .form-label .required { color: var(--frost); }

.contact-form .form-data input,
.contact-form .form-data select,
.contact-form .form-data textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}

.contact-form .form-data input:focus,
.contact-form .form-data select:focus,
.contact-form .form-data textarea:focus { border-color: var(--frost); }

.contact-form .form-data select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form .form-data select option { background: var(--bg-elevated); color: var(--text-primary); }
.contact-form .form-data textarea { min-height: 120px; resize: vertical; }

/* Grav form buttons */
.contact-form .buttons-wrapper,
.contact-form .form-data.buttons { margin-top: 0.5rem; }

.contact-form button[type="submit"],
.contact-form .btn-submit,
.contact-form .button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--frost-deep), var(--frost));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-form button[type="submit"]:hover,
.contact-form .btn-submit:hover,
.contact-form .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

/* Grav form plugin selectize override */
.contact-form .selectize-control,
.contact-form .selectize-input {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

/* Legacy static form styles (fallback) */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.85rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--frost); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Footer ── */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 550px; }
  .method-layout { grid-template-columns: 1fr; }
  .method-visual { position: static; }
  .results-layout { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 480px; }
  .cred-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 0.5rem 0; }
  .nav-links .nav-cta { padding: 0.5rem 1.75rem; }
  .nav-hamburger { display: flex; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 2.2rem; }
}
