/* ===============================
   NovaVista — Optical Reconstruction Design System
   Clean. Precise. Continuous.
   =============================== */

:root {
  --bg: #07080a;
  --bg-card: #0f1116;
  --bg-raised: #14161c;
  --border: #1e2028;
  --border-hover: #2a2d38;
  --text: #e8e8ec;
  --text-secondary: #9a9aa6;
  --text-tertiary: #5e5e6a;
  --accent: #5b8def;
  --accent-hover: #6d9df5;
  --accent-glow: rgba(91, 141, 239, 0.12);
  --accent-subtle: rgba(91, 141, 239, 0.06);
  --accent-2: #3dd9c4;
  --accent-2-glow: rgba(61, 217, 196, 0.08);
  --gradient-hero: radial-gradient(ellipse at 70% 40%, rgba(91,141,239,0.06) 0%, transparent 60%), linear-gradient(180deg, #07080a 0%, #0a0c12 50%, #07080a 100%);
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-secondary); }
strong { color: var(--text); font-weight: 600; }

.section-tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-tag::before {
  content: ''; display: inline-block; width: 24px; height: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ===============================
   Subtle Grid Background
   =============================== */
.grid-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.4;
}

.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,141,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,141,239,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ===============================
   Navigation
   =============================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,8,10,0.88); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: var(--nav-height);
  display: flex; align-items: center;
}
nav .container { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; z-index: 2; }
.nav-logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo .logo-mark {
  display: inline-block; width: 8px; height: 24px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 2px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent); color: white; padding: 0.5rem 1.25rem;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: background 0.3s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===============================
   Sections
   =============================== */
section { padding: 7rem 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, rgba(20,22,28,0.5) 0%, rgba(15,17,22,0.3) 100%); }

/* ===============================
   Hero
   =============================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero); position: relative; overflow: hidden;
  padding-top: 5rem;
}

/* Animated light grid in hero background */
.hero-visual {
  position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-visual svg { width: 100%; height: 100%; }
.hero-visual .cell {
  fill: none; stroke: rgba(91,141,239,0.12); stroke-width: 0.5;
  transition: fill 0.6s, stroke 0.6s, opacity 0.6s;
}
.hero-visual .cell.glow {
  fill: var(--accent-subtle); stroke: rgba(91,141,239,0.4); stroke-width: 1;
}
.hero-visual .cell.dim { opacity: 0.2; }

.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none; z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 550px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sub-hero */
.hero-sub {
  min-height: 50vh; display: flex; align-items: center;
  background: var(--gradient-hero); position: relative; overflow: hidden;
  padding-top: calc(var(--nav-height) + 4rem); padding-bottom: 4rem;
}
.hero-sub .deco-visual {
  position: absolute; top: 20%; right: -5%; width: 400px; height: 400px;
  z-index: 0; pointer-events: none; opacity: 0.4;
}

/* ===============================
   Buttons
   =============================== */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.3s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(91,141,239,0.3); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-secondary); background: rgba(255,255,255,0.04); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-subtle); }

/* ===============================
   Layer Cards
   =============================== */
.layer-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.layer-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2.5rem 2rem; transition: transform 0.4s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.layer-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.6; transition: opacity 0.4s;
}
.layer-card:hover { transform: translateY(-4px); border-color: rgba(91,141,239,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.layer-card:hover::before { opacity: 1; }
.layer-number {
  font-size: 3rem; font-weight: 800; color: rgba(91,141,239,0.1);
  line-height: 1; margin-bottom: -0.5rem;
}
.layer-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.layer-card h3 { margin-bottom: 1rem; }
.layer-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Layer icon — clean rounded square */
.layer-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 1.2rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(91,141,239,0.2);
  border-radius: 10px;
  position: relative;
}
.layer-icon svg { width: 24px; height: 24px; }

/* ===============================
   Feature Grid
   =============================== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
  margin-top: 3rem;
}
.feature-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem 1.5rem; text-align: center; position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-item:hover { border-color: rgba(91,141,239,0.25); transform: translateY(-2px); }
.feature-num {
  width: 40px; height: 40px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--accent-subtle);
  border: 1px solid rgba(91,141,239,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.85rem; color: var(--text-tertiary); line-height: 1.6; }

/* ===============================
   Architecture Diagram
   =============================== */
.arch-diagram {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin: 3rem 0; position: relative;
}
.arch-layer {
  display: flex; align-items: center; gap: 1.5rem; width: 100%; max-width: 700px;
  padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; position: relative; transition: border-color 0.3s, transform 0.3s;
}
.arch-layer:hover { border-color: rgba(91,141,239,0.3); transform: translateX(8px); }
.arch-layer-num {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); border: 1px solid rgba(91,141,239,0.2);
  border-radius: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--accent);
  transition: background 0.3s, color 0.3s;
}
.arch-layer-body h3 { margin-bottom: 0.3rem; }
.arch-layer-body p { font-size: 0.9rem; }
.arch-connector {
  width: 2px; height: 24px; background: linear-gradient(180deg, rgba(91,141,239,0.2) 0%, transparent 100%);
}

/* ===============================
   App grid
   =============================== */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.app-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2.5rem; transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.app-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
  border-radius: 12px 0 0 12px;
}
.app-card:hover { border-color: rgba(91,141,239,0.25); background: var(--bg-raised); }
.app-card:hover::before { opacity: 1; }
.app-card h3 { margin-bottom: 0.75rem; }
.app-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.app-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.app-link:hover { text-decoration: underline; }

/* ===============================
   Trust grid
   =============================== */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.trust-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem; text-align: center; position: relative;
}
.trust-item::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--accent); opacity: 0.6;
}
.trust-item h3 { margin-bottom: 0.75rem; }
.trust-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===============================
   Content blocks
   =============================== */
.content-block { max-width: 760px; }
.content-block p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.content-block p:last-child { margin-bottom: 0; }

.layers-intro { max-width: 650px; margin-bottom: 4rem; color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; }

/* Pull quote */
.pull-quote {
  font-size: 1.5rem; font-weight: 500; line-height: 1.5;
  color: var(--text); padding-left: 2rem; margin: 3rem 0;
  font-style: italic; position: relative;
}
.pull-quote::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 2px;
}

/* Section divider — line chain */
.divider {
  display: flex; align-items: center; gap: 4px; margin: 2rem 0;
}
.divider .line-unit {
  width: 32px; height: 2px; background: var(--accent);
  border-radius: 1px;
  transition: opacity 0.3s;
}
.divider .line-unit:nth-child(1) { opacity: 0.8; }
.divider .line-unit:nth-child(2) { opacity: 0.6; }
.divider .line-unit:nth-child(3) { opacity: 0.4; }
.divider .line-unit:nth-child(4) { opacity: 0.2; }

/* Series badge */
.series-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.series-badge::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%;
}
.badge-grating { background: var(--accent-subtle); color: var(--accent); border: 1px solid rgba(91,141,239,0.2); }
.badge-grating::before { background: var(--accent); }
.badge-black { background: rgba(120,120,130,0.08); color: #c0c0c8; border: 1px solid rgba(255,255,255,0.08); }
.badge-black::before { background: #888; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.compare-table th, .compare-table td {
  padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border);
}
.compare-table th { color: var(--text-tertiary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table td { color: var(--text-secondary); font-size: 0.95rem; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table tbody tr:hover { background: rgba(91,141,239,0.03); }

/* Feature list */
.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.5rem; position: relative;
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0.85rem;
  width: 6px; height: 6px; background: var(--accent); opacity: 0.8;
  border-radius: 50%;
}
.feature-list strong { color: var(--text); }

/* ===============================
   CTA Section
   =============================== */
.cta-section { background: var(--gradient-hero); text-align: center; position: relative; overflow: hidden; }
.cta-section .deco-visual {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; z-index: 0; pointer-events: none; opacity: 0.15;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section .subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 500px; margin: 1.5rem auto 2.5rem; }

/* ===============================
   Contact Form
   =============================== */
.contact-form { max-width: 600px; margin-top: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.checkbox-item { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-item input { width: auto; }
.checkbox-item label { margin-bottom: 0; cursor: pointer; }
.form-note { font-size: 0.8rem; color: var(--text-tertiary); margin-top: 1rem; }

.contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.contact-info-item {
  padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; position: relative;
}
.contact-info-item::before {
  content: ''; position: absolute; top: 0; left: 1.5rem; width: 32px; height: 2px;
  background: var(--accent); opacity: 0.6;
}
.contact-info-item h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info-item p { color: var(--text); font-size: 0.95rem; line-height: 1.6; }

/* ===============================
   Footer
   =============================== */
footer { border-top: 1px solid var(--border); padding: 3rem 0; background: var(--bg); position: relative; z-index: 1; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: var(--text-tertiary); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.copy { color: var(--text-tertiary); font-size: 0.85rem; }
.patent-notice { width: 100%; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.patent-notice svg { flex-shrink: 0; opacity: 0.6; }
.patent-notice span { color: var(--text-tertiary); font-size: 0.8rem; text-align: center; letter-spacing: 0.02em; }
.patent-notice span strong { color: var(--text-secondary); }

/* ===============================
   Animations
   =============================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ===============================
   Pain Points Section
   =============================== */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pain-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem 1.5rem; position: relative; transition: border-color 0.3s, transform 0.3s;
}
.pain-card:hover { border-color: rgba(239, 91, 91, 0.25); transform: translateY(-2px); }
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, #ef5b5b 0%, transparent 100%);
  border-radius: 12px 12px 0 0; opacity: 0.5;
}
.pain-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  background: rgba(239, 91, 91, 0.08); border: 1px solid rgba(239, 91, 91, 0.15);
  border-radius: 10px;
}
.pain-icon svg { width: 22px; height: 22px; }
.pain-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: #e0e0e4; }
.pain-card p { font-size: 0.85rem; color: var(--text-tertiary); line-height: 1.6; }
.pain-card .pain-strike { font-size: 0.75rem; color: #ef5b5b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.75rem; display: block; }

/* ===============================
   Hook Numbers Section
   =============================== */
.hook-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.hook-card {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.hook-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 0 0 3px 3px; opacity: 0.6;
}
.hook-card:hover { border-color: rgba(91,141,239,0.3); transform: translateY(-4px); }
.hook-card:hover::before { opacity: 1; }
.hook-number {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--accent);
  line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.03em;
}
.hook-number .unit { font-size: 0.5em; font-weight: 600; }
.hook-label {
  font-size: 0.85rem; color: var(--text); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem;
}
.hook-desc { font-size: 0.8rem; color: var(--text-tertiary); }

/* ===============================
   Competitor Anchor Banner
   =============================== */
.competitor-banner {
  background: linear-gradient(135deg, rgba(91,141,239,0.06) 0%, rgba(61,217,196,0.03) 100%);
  border: 1px solid rgba(91,141,239,0.15); border-radius: 16px;
  padding: 3.5rem 3rem; text-align: center; margin-top: 3rem; position: relative; overflow: hidden;
}
.competitor-banner::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(91,141,239,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.competitor-banner .container-inner { position: relative; z-index: 1; }
.competitor-banner h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.competitor-banner p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.competitor-tags { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.competitor-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(91,141,239,0.1); color: var(--accent);
  border: 1px solid rgba(91,141,239,0.2);
}

/* ===============================
   Three Certainties Section
   =============================== */
.certainty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.certainty-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2.5rem; text-align: center; position: relative; transition: border-color 0.3s, transform 0.3s;
}
.certainty-card:hover { border-color: rgba(91,141,239,0.25); transform: translateY(-3px); }
.certainty-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--accent); opacity: 0.6; border-radius: 1px;
}
.certainty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 1.2rem;
  background: var(--accent-subtle); border: 1px solid rgba(91,141,239,0.2);
  border-radius: 14px;
}
.certainty-icon svg { width: 28px; height: 28px; }
.certainty-card h3 { margin-bottom: 0.75rem; }
.certainty-card p { font-size: 0.9rem; line-height: 1.7; }
.certainty-card .certainty-num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; display: block;
}

/* ===============================
   Hero Subtitle Anchor
   =============================== */
.hero-anchor {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.hero-anchor-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(91,141,239,0.1); color: var(--accent);
  border: 1px solid rgba(91,141,239,0.2);
}
.hero-anchor-item::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 968px) {
  .layer-cards { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; opacity: 0.3; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .hook-grid { grid-template-columns: repeat(2, 1fr); }
  .certainty-grid { grid-template-columns: 1fr; }
  .competitor-banner { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(7,8,10,0.98); backdrop-filter: blur(20px);
    padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border);
  }
  section { padding: 4rem 0; }
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 4rem; }
  .container { padding: 0 1.5rem; }
  .pull-quote { font-size: 1.2rem; }
  .arch-layer { flex-direction: column; text-align: center; gap: 1rem; }
  .arch-connector { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .hook-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===============================
   Image-Enhanced Layouts
   =============================== */

/* Hero with background image */
.hero-hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 5rem;
}
.hero-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,10,0.92) 0%, rgba(7,8,10,0.7) 50%, rgba(7,8,10,0.4) 100%);
}
.hero-hero .container { position: relative; z-index: 2; }

/* Card with image on top */
.card-with-image {
  overflow: hidden; padding: 0; position: relative;
}
.card-with-image .card-image {
  width: 100%; height: 220px; object-fit: cover;
  display: block; border-bottom: 1px solid var(--border);
  object-position: center center;
}
.card-with-image .card-image-tall {
  height: 280px;
}
.card-with-image .card-body {
  padding: 2rem 2rem 2.5rem;
}

/* Full-width section image */
.section-image-full {
  width: 100%; max-width: 100%; height: 400px; object-fit: cover;
  border-radius: 12px; margin: 2rem 0; display: block;
  border: 1px solid var(--border); object-position: center center;
}
.section-image-full.tall { height: 500px; }

/* Split layout: text + image side by side */
.split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  margin-top: 2rem;
}
.split-layout .split-text { max-width: none; }
.split-layout .split-image {
  width: 100%; height: 350px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border);
  display: block; object-position: center center;
}
.split-layout.reverse .split-text { order: 2; }
.split-layout.reverse .split-image { order: 1; }

/* Image caption */
.image-caption {
  font-size: 0.8rem; color: var(--text-tertiary);
  text-align: center; margin-top: 0.5rem; font-style: italic;
}

/* Application card with image */
.app-card-image {
  overflow: hidden; padding: 0; position: relative;
}
.app-card-image .card-image {
  width: 100%; height: 180px; object-fit: cover;
  display: block; border-bottom: 1px solid var(--border);
  object-position: center center;
}
.app-card-image .card-body {
  padding: 2rem 2rem 2.5rem;
}

/* Series card with image */
.series-card-image {
  overflow: hidden; padding: 0; position: relative;
}
.series-card-image .card-image {
  width: 100%; height: 260px; object-fit: cover;
  display: block; border-bottom: 1px solid var(--border);
  object-position: center center;
}
.series-card-image .card-body {
  padding: 2rem 2rem 2.5rem;
}

/* Image with overlay */
.image-overlay {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.image-overlay img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.image-overlay .overlay-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem; background: linear-gradient(180deg, transparent 0%, rgba(7,8,10,0.9) 100%);
}
.image-overlay .overlay-content h3 { color: #fff; margin-bottom: 0.3rem; }
.image-overlay .overlay-content p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Comparison image wrapper */
.comparison-image {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  display: block; margin: 2rem 0; object-position: center center;
}

/* About page hero image */
.about-hero-image {
  width: 100%; height: 300px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border);
  margin-top: 2rem; display: block; object-position: center center;
}

/* Responsive for image layouts */
@media (max-width: 968px) {
  .split-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .split-layout.reverse .split-text { order: 0; }
  .split-layout.reverse .split-image { order: 0; }
  .section-image-full { height: 250px; }
  .section-image-full.tall { height: 300px; }
}

@media (max-width: 768px) {
  .card-with-image .card-image { height: 180px; }
  .app-card-image .card-image { height: 150px; }
  .series-card-image .card-image { height: 200px; }
  .split-layout .split-image { height: 250px; }
  .section-image-full { height: 200px; }
}