/* --- Variables --- */
:root {
  --bg: #070709;
  --bg-alt: #0d0d10;
  --bg-card: #121216;
  --surface: #18181d;
  --text: #f0eeeb;
  --text-muted: #9a9692;
  --accent: #e8a64a;
  --accent-soft: #f0b55c;
  --accent-dim: rgba(232, 166, 74, 0.18);
  --accent-glow: rgba(232, 166, 74, 0.25);
  --teal: #5eb8b0;
  --teal-soft: #7ac9c2;
  --teal-dim: rgba(94, 184, 176, 0.14);
  --purple: #b87ee8;
  --purple-dim: rgba(184, 126, 232, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px var(--accent-glow);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle grain overlay for depth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(7, 7, 9, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.header.scrolled {
  background: rgba(7, 7, 9, 0.88);
  border-bottom-color: var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 28px 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -30%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 50%, var(--teal-dim), transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, var(--purple-dim), transparent 45%),
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(232, 166, 74, 0.04), transparent 60%);
  pointer-events: none;
}

/* Subtle grid lines in hero */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s var(--ease-in-out) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  pointer-events: none;
}

.grid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease-out);
}

.hero:hover .grid-orb {
  opacity: 0.65;
}

.grid-orb-1 {
  width: 220px;
  height: 220px;
  background: var(--accent);
  top: 5%;
  right: 10%;
  animation: float 10s var(--ease-in-out) infinite;
}

.grid-orb-2 {
  width: 160px;
  height: 160px;
  background: var(--teal);
  bottom: 15%;
  left: 5%;
  animation: float 8s var(--ease-in-out) infinite 0.5s;
}

.grid-orb-3 {
  width: 120px;
  height: 120px;
  background: var(--purple);
  bottom: 5%;
  right: 25%;
  animation: float 6s var(--ease-in-out) infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.02); }
  66% { transform: translate(-8px, 10px) scale(0.98); }
}

/* --- Sections --- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-alt);
}

.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.8;
}

.section-alt {
  background: var(--bg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.15;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 52px;
  line-height: 1.7;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232,166,74,0.15), transparent 40%, transparent 60%, rgba(232,166,74,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(232, 166, 74, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 166, 74, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1;
  opacity: 0.95;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.25s var(--ease-out);
}

.card-link:hover {
  color: var(--accent-soft);
}

.card-personal .card-icon {
  color: var(--teal);
}

.card-personal::before {
  background: linear-gradient(135deg, rgba(94,184,176,0.15), transparent 40%);
}

.card-grid-personal .card:hover {
  border-color: rgba(94, 184, 176, 0.3);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(94, 184, 176, 0.08);
}

/* --- Product grid (product cards) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232,166,74,0.12), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.product-card:hover {
  border-color: rgba(232, 166, 74, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 166, 74, 0.08);
}

.product-card:hover::before {
  opacity: 1;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.product-icon {
  font-size: 2rem;
  line-height: 1;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.product-card > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.product-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Products list --- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: var(--bg-card);
  transition: background 0.25s var(--ease-out);
}

.product-item:hover {
  background: var(--surface);
}

.product-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .product-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 24px;
  }
}

/* --- Secure AI --- */
.secure-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.secure-item {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.secure-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.secure-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.secure-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.portfolio-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.portfolio-img {
  height: 200px;
  background: linear-gradient(135deg, var(--accent, #e8a64a) 0%, transparent 50%);
  background-color: var(--surface);
  opacity: 0.92;
  transition: opacity 0.3s var(--ease-out);
}

.portfolio-card:hover .portfolio-img {
  opacity: 1;
}

/* --- Portfolio Live Previews --- */
.portfolio-preview {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.preview-browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.browser-dots span:first-child { background: #ff5f57; opacity: 0.7; }
.browser-dots span:nth-child(2) { background: #febc2e; opacity: 0.7; }
.browser-dots span:last-child { background: #28c840; opacity: 0.7; }

.browser-url {
  font-size: 0.6875rem;
  font-family: 'DM Sans', monospace;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
}

.preview-screen {
  height: 180px;
  background: linear-gradient(145deg, var(--accent-from, #e8a64a), var(--accent-to, #d4922e));
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.preview-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

.preview-mockup {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-header {
  height: 8px;
  width: 60%;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* Chart mockup (TraderTrade) */
.mock-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.mock-chart svg {
  width: 100%;
  height: 60px;
}

.mock-cards {
  display: flex;
  gap: 6px;
}

.mock-mini-card {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Scan grid (StratCC) */
.mock-scan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}

.mock-scan-item {
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.scan-green { background: rgba(40, 200, 64, 0.25); }
.scan-yellow { background: rgba(254, 188, 46, 0.25); }
.scan-red { background: rgba(255, 95, 87, 0.25); }

.mock-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.mock-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  animation: barPulse 3s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { width: 65%; }
  50% { width: 80%; }
}

/* Terminal mockup (Pentest) */
.mock-terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'DM Sans', monospace;
  font-size: 0.625rem;
}

.term-line {
  color: rgba(255,255,255,0.7);
  display: flex;
  gap: 6px;
  align-items: center;
}

.term-prompt { color: rgba(255,255,255,0.4); }
.term-cmd { color: rgba(255,255,255,0.6); }
.term-ok { color: #28c840; }
.term-warn { color: #febc2e; }

/* Life grid (AiMyLife) */
.mock-life-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.mock-life-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}

.life-icon { font-size: 0.875rem; }

.life-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.life-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--w, 50%);
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
}

/* App list (Directory) */
.mock-app-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.mock-app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-text {
  height: 6px;
  flex: 1;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}

/* Remedy pills */
.mock-remedy {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.remedy-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.remedy-green { background: rgba(40,200,64,0.25); color: rgba(255,255,255,0.8); }
.remedy-yellow { background: rgba(254,188,46,0.25); color: rgba(255,255,255,0.8); }
.remedy-red { background: rgba(255,95,87,0.3); color: rgba(255,255,255,0.8); }

/* Hover lift for live cards */
.portfolio-card-live:hover .preview-screen {
  filter: brightness(1.08);
}

.portfolio-card-live:hover .browser-dots span:first-child { opacity: 1; }
.portfolio-card-live:hover .browser-dots span:nth-child(2) { opacity: 1; }
.portfolio-card-live:hover .browser-dots span:last-child { opacity: 1; }

.portfolio-body {
  padding: 26px;
}

.portfolio-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.portfolio-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

.portfolio-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* --- Stats section --- */
.section-stats {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--accent) 0%, #d4922e 100%);
  position: relative;
}

.section-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  color: var(--bg);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .section-stats {
    padding: 64px 0;
  }
}

/* --- CTA --- */
.section-cta {
  text-align: center;
  padding: 140px 0;
  position: relative;
}

.section-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 480px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-cta h2 {
  margin-bottom: 14px;
}

.section-cta p {
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 1.125rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.cta-form input:focus-visible {
  outline: none;
}

.cta-form button {
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  opacity: 0.9;
}

/* --- Mobile nav --- */
@media (max-width: 768px) {
  .nav,
  .header .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header.nav-open .nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }

  .header.nav-open .nav a {
    padding: 12px 0;
  }

  .hero-visual {
    width: 240px;
    height: 240px;
    right: -30px;
    opacity: 0.8;
  }

  .section {
    padding: 72px 0;
  }

  .container {
    padding: 0 20px;
  }
}
