/* ============================================================
   stlweb.dev — Style System
   Fated LLC dba stlweb.dev
   Modern CSS: custom properties, container queries, scroll-driven
   animations, :has(), subgrid, @layer cascade
   ============================================================ */

@layer base, layout, components, utilities, animations;

/* ── Variables ─────────────────────────────────────────────── */
@layer base {
:root {
  /* Palette */
  --bg:           #06080F;
  --bg-2:         #0A0F1E;
  --surface:      #0D1524;
  --surface-2:    #131E30;
  --surface-3:    #192538;

  --accent:       #0EA5E9;     /* sky blue – web forward */
  --accent-glow:  rgba(14,165,233,0.18);
  --accent-dim:   rgba(14,165,233,0.10);

  --green:        #10D9A0;     /* emerald – growth */
  --green-glow:   rgba(16,217,160,0.15);
  --green-dim:    rgba(16,217,160,0.10);

  --orange:       #FF7043;     /* STL warm – bold CTAs */
  --orange-glow:  rgba(255,112,67,0.18);
  --orange-dim:   rgba(255,112,67,0.10);

  --gold:         #F59E0B;     /* highlights */
  --gold-dim:     rgba(245,158,11,0.12);

  --text:         #E2EAF4;
  --text-dim:     #6B7E92;
  --text-muted:   #3D5166;
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.04);
  --glass:        rgba(14,165,233,0.04);

  --white:        #FFFFFF;
  --success:      #22C55E;
  --danger:       #EF4444;

  /* Typography */
  --font:   'Syne', 'Inter', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows / Elevation */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --glow-accent: 0 0 40px rgba(14,165,233,0.25);
  --glow-green:  0 0 40px rgba(16,217,160,0.20);
  --glow-orange: 0 0 40px rgba(255,112,67,0.20);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
} /* end @layer base */

/* ── Layout ─────────────────────────────────────────────────── */
@layer layout {
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
}
.section {
  padding: var(--sp-10) 0;
  position: relative;
  overflow: hidden;
}
.section--sm { padding: var(--sp-8) 0; }
.section--lg { padding: clamp(5rem, 10vw, 10rem) 0; }
.grid {
  display: grid;
  gap: var(--sp-5);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
} /* end @layer layout */

/* ── Components ─────────────────────────────────────────────── */
@layer components {

/* ── Particle Canvas ── */
#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 14px var(--accent), 0 0 28px rgba(14,165,233,0.4);
  transition: background var(--dur-fast), width 0.15s, height 0.15s;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(14,165,233,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s;
  will-change: transform;
}
.cursor-dot.cursor-hover  { width: 12px; height: 12px; background: var(--orange); box-shadow: 0 0 16px var(--orange); }
.cursor-ring.cursor-hover { width: 52px; height: 52px; border-color: rgba(255,112,67,0.45); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } *, *::before, *::after { cursor: auto !important; } }
@media (pointer: fine) { *, *::before, *::after { cursor: none !important; } }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-slow) var(--ease), backdrop-filter var(--dur-slow), box-shadow var(--dur-slow);
}
.nav.scrolled {
  background: rgba(6,8,15,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-domain {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.logo-tld {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  font-size: 0.875rem;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--accent);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast) !important;
  box-shadow: 0 0 20px rgba(14,165,233,0.3);
}
.nav-cta:hover {
  background: #38BDF8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 30px rgba(14,165,233,0.5) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast), background var(--dur-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(14,165,233,0.25);
  background: var(--accent-dim);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}
.section-tag.green {
  color: var(--green);
  border-color: rgba(16,217,160,0.25);
  background: var(--green-dim);
}
.section-tag.orange {
  color: var(--orange);
  border-color: rgba(255,112,67,0.25);
  background: var(--orange-dim);
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.section-header h2 span { color: var(--accent); }
.section-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease), background var(--dur-fast), opacity var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #38BDF8);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(14,165,233,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(14,165,233,0.55); }
.btn-orange {
  background: linear-gradient(135deg, var(--orange), #FF8A65);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,112,67,0.35);
}
.btn-orange:hover { box-shadow: 0 8px 30px rgba(255,112,67,0.55); }
.btn-green {
  background: linear-gradient(135deg, var(--green), #34D399);
  color: #06080F;
  box-shadow: 0 4px 20px rgba(16,217,160,0.35);
}
.btn-green:hover { box-shadow: 0 8px 30px rgba(16,217,160,0.55); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: rgba(14,165,233,0.4); color: var(--accent); }
.btn-ghost {
  color: var(--text-dim);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost:hover { transform: none; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn .arrow {
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── Glassmorphism Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14,165,233,0.1);
}
.card-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-slow);
  filter: blur(60px);
}
.card:hover .card-glow { opacity: 1; }
.card-glow-accent { background: var(--accent-glow); right: -50px; top: -50px; }
.card-glow-green  { background: var(--green-glow);  right: -50px; top: -50px; }
.card-glow-orange { background: var(--orange-glow); right: -50px; top: -50px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--sp-8)) var(--sp-5) var(--sp-10);
  position: relative;
  overflow: hidden;
}
/* IMAGE PLACEHOLDER: hero-bg — see IMAGES.md for spec */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.25;
  filter: blur(0px) saturate(0.8);
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14,165,233,0.12) 0%, transparent 70%),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.06);
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,217,160,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(16,217,160,0); }
}
.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: var(--sp-5);
}
.hero-title .line-accent { color: var(--accent); }
.hero-title .line-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--green) 60%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto var(--sp-7);
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-8);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  justify-content: center;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}
.hero-scroll {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s ease infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Services Grid ── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base);
  container-type: inline-size;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, rgba(14,165,233,0.25));
  box-shadow: var(--shadow-lg);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--card-glow, var(--accent-glow)), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-slow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  background: var(--icon-bg, var(--accent-dim));
  border: 1px solid var(--icon-border, rgba(14,165,233,0.2));
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--icon-color, var(--accent)); }
.service-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: var(--sp-2);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}
.service-price {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}
.service-link {
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-3);
  transition: gap var(--dur-fast);
}
.service-link:hover { gap: 8px; }

/* ── Work / Portfolio ── */
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base), border-color var(--dur-base);
}
.work-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,165,233,0.2);
}
/* IMAGE PLACEHOLDER: work card preview images — see IMAGES.md */
.work-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-img { transform: scale(1.03); }
.work-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.work-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.01) 20px,
    rgba(255,255,255,0.01) 40px
  );
}
.work-img-placeholder .ph-label {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.work-meta {
  padding: var(--sp-5) var(--sp-6);
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid;
}
.tag-accent { color: var(--accent); border-color: rgba(14,165,233,0.3); background: var(--accent-dim); }
.tag-green  { color: var(--green); border-color: rgba(16,217,160,0.3); background: var(--green-dim); }
.tag-orange { color: var(--orange); border-color: rgba(255,112,67,0.3); background: var(--orange-dim); }
.tag-gold   { color: var(--gold); border-color: rgba(245,158,11,0.3); background: var(--gold-dim); }
.work-meta h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: var(--sp-2);
}
.work-meta p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.work-metrics {
  display: flex;
  gap: var(--sp-5);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-val {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.metric-val.green { color: var(--green); }
.metric-val.accent { color: var(--accent); }
.metric-key {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Pricing Table ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-5);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border-color: rgba(14,165,233,0.35);
  background: linear-gradient(160deg, var(--surface), #0D1A2E);
  box-shadow: 0 0 40px rgba(14,165,233,0.12);
}
.price-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(14,165,233,0.08), transparent);
}
.price-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: var(--bg);
}
.price-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  position: relative;
}
.price-amount {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-2);
  position: relative;
}
.price-amount sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 0.4em;
  color: var(--text-dim);
}
.price-amount .price-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
}
.price-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  position: relative;
}
.price-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-dim);
}
.price-feature-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(16,217,160,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.price-feature-check svg { width: 10px; height: 10px; stroke: var(--green); }

/* ── Tech Stack ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--sp-3);
}
.stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.stack-item:hover {
  border-color: rgba(14,165,233,0.25);
  color: var(--text);
  background: var(--surface-2);
}
.stack-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0.7) saturate(0.5);
  transition: filter var(--dur-base);
}
.stack-item:hover .stack-logo { filter: brightness(1) saturate(1); }

/* ── Templates Showcase ── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-5);
}
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base);
}
.template-card:hover {
  transform: translateY(-6px);
  border-color: var(--tc-accent, rgba(14,165,233,0.25));
  box-shadow: var(--shadow-lg), 0 0 30px var(--tc-glow, rgba(14,165,233,0.1));
}
/* IMAGE PLACEHOLDER: template preview images — see IMAGES.md */
.template-preview {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--tc-bg, linear-gradient(135deg, #0D1A2E, #1A2540));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.template-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255,255,255,0.02) 1px,
    rgba(255,255,255,0.02) 2px
  );
}
.template-info {
  padding: var(--sp-4) var(--sp-5);
}
.template-info h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.template-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Why Us / Differentiators ── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-5);
}
.diff-card {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base);
}
.diff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.2);
}
.diff-num {
  font-family: var(--font);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-5);
  letter-spacing: -0.04em;
}
.diff-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  background: var(--accent-dim);
  border: 1px solid rgba(14,165,233,0.2);
}
.diff-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.diff-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--sp-2);
}
.diff-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Process Steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--sp-3);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--border), transparent);
  z-index: 0;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(14,165,233,0.2);
}
.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font);
}
.step-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-6);
  position: relative;
}
.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: var(--sp-4);
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
/* IMAGE PLACEHOLDER: testimonial avatar images — see IMAGES.md */
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.t-avatar-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  background: var(--accent-dim);
}
.t-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}
.t-role {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.t-stars {
  margin-top: 4px;
  display: flex;
  gap: 2px;
}
.t-stars svg { width: 12px; height: 12px; fill: var(--gold); stroke: none; }

/* ── Local / STL Section ── */
.stl-section {
  background: linear-gradient(135deg, #07100A, #050808);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stl-map-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
/* IMAGE PLACEHOLDER: stl-map.svg — see IMAGES.md */
.stl-map {
  width: 100%;
  aspect-ratio: 2/1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  gap: var(--sp-3);
  flex-direction: column;
}
.stl-neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.stl-hood {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-full);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.stl-hood:hover {
  color: var(--green);
  border-color: rgba(16,217,160,0.3);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #061525, #0A1E36);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(ellipse, rgba(14,165,233,0.12), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
}
.cta-banner p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto var(--sp-6);
  font-size: 1.05rem;
  position: relative;
}

/* ── Contact Form ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}
.form-control {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-b);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  width: 100%;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: rgba(14,165,233,0.5);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
  background: var(--surface-3);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
}
.form-control.error { border-color: var(--danger); }
.form-control.error + .form-error { display: block; }

/* ── Legal Pages ── */
.legal-hero {
  padding: calc(var(--nav-h) + var(--sp-8)) 0 var(--sp-8);
  border-bottom: 1px solid var(--border);
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5);
}
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-content p, .legal-content li {
  font-size: 0.925rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}
.legal-content ul { margin-left: var(--sp-5); }
.legal-content ul li { list-style: disc; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-9) 0 var(--sp-6);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-brand .logo-domain { font-size: 1.3rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-4);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}
.footer-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-legal a { color: var(--text-dim); transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--accent); }
.footer-badges {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.footer-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-badge.green { color: var(--green); border-color: rgba(16,217,160,0.25); background: var(--green-dim); }
.footer-badge.accent { color: var(--accent); border-color: rgba(14,165,233,0.25); background: var(--accent-dim); }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Scroll-Driven Animations (modern browsers) ── */
@supports (animation-timeline: scroll()) {
  .parallax-slow {
    animation: parallax-up linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes parallax-up {
    from { transform: translateY(40px); }
    to   { transform: translateY(-40px); }
  }
  .fade-in-scroll {
    animation: fade-up-scroll linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes fade-up-scroll {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(6,8,15,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    z-index: 99;
  }
  .nav-links.open a {
    font-size: 1.5rem;
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
  }
  .nav-links.open .nav-cta {
    padding: var(--sp-3) var(--sp-7) !important;
    font-size: 1.1rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps::before { display: none; }
}
@media (max-width: 640px) {
  .section { padding: var(--sp-8) 0; }
  .hero { padding-top: calc(var(--nav-h) + var(--sp-5)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--sp-5); }
}

/* ── Utility ─────────────────────────────────────────────────── */
@layer utilities {
  .text-accent  { color: var(--accent); }
  .text-green   { color: var(--green); }
  .text-orange  { color: var(--orange); }
  .text-dim     { color: var(--text-dim); }
  .text-muted   { color: var(--text-muted); }
  .text-white   { color: var(--white); }
  .text-center  { text-align: center; }
  .mono         { font-family: var(--mono); }
  .sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .divider      { height: 1px; background: var(--border); margin: var(--sp-7) 0; }
  .badge        { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-full); }
  .badge-green  { color: var(--green); border: 1px solid rgba(16,217,160,0.3); background: var(--green-dim); }
  .badge-accent { color: var(--accent); border: 1px solid rgba(14,165,233,0.3); background: var(--accent-dim); }
  .badge-orange { color: var(--orange); border: 1px solid rgba(255,112,67,0.3); background: var(--orange-dim); }
  .mb-3  { margin-bottom: var(--sp-3); }
  .mb-4  { margin-bottom: var(--sp-4); }
  .mb-5  { margin-bottom: var(--sp-5); }
  .mb-6  { margin-bottom: var(--sp-6); }
  .mb-7  { margin-bottom: var(--sp-7); }
  .mt-4  { margin-top: var(--sp-4); }
  .mt-5  { margin-top: var(--sp-5); }
  .gap-3 { gap: var(--sp-3); }
  .gap-4 { gap: var(--sp-4); }
  .hidden { display: none; }
  .relative { position: relative; }
  .overflow-hidden { overflow: hidden; }
}
