/* ─────────────────────────────────────────────────────────────────────────
   Venture Garage — stealth site
   Theme: "Coastal Confidence" (Coastal Wealth design system v6)
   Navy chrome · coastal-blue accent · sand neutrals · Playfair + DM Sans
   Geek layer: JetBrains Mono, terminal, neural canvas.
   ───────────────────────────────────────────────────────────────────────── */

:root,
[data-theme="dark"] {
  --bg: #252f4a;            /* coastal-900 */
  --bg-rgb: 37, 47, 74;
  --bg-deep: #1a2540;
  --panel: #3c506f;         /* coastal-800 */
  --card: #2d3854;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #6b95ba;        /* coastal-500 */
  --accent-2: #89adc8;      /* coastal-400 */
  --accent-dim: rgba(107, 149, 186, 0.14);
  --accent-border: rgba(107, 149, 186, 0.32);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.45);
  --btn-text: #111;
  --term-bg: #141c31;
  --term-fg: #dfe8f1;
  --input-bg: rgba(255, 255, 255, 0.04);
  --net-line: 137, 173, 200;
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
}

[data-theme="light"] {
  --bg: #faf7f2;            /* sand-100 */
  --bg-rgb: 250, 247, 242;
  --bg-deep: #f3ede4;       /* sand-200 */
  --panel: #ffffff;
  --card: #ffffff;
  --border: #e8e8e8;
  --border-strong: #d4d4d4;
  --accent: #5d7fa0;        /* coastal-700 */
  --accent-2: #5d7fa0;
  --accent-dim: rgba(93, 127, 160, 0.10);
  --accent-border: rgba(93, 127, 160, 0.28);
  --text: #252f4a;
  --text-2: #3c506f;
  --muted: #737373;
  --btn-text: #ffffff;
  --term-bg: #252f4a;
  --term-fg: #e8f0f5;
  --input-bg: #ffffff;
  --net-line: 93, 127, 160;
  --shadow-xl: 0 24px 64px rgba(37, 47, 74, 0.12);
}

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
h1, h2, h3, .logo { font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f37; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.muted { color: var(--muted); }

/* ── Logo ── */
.logo { font-size: 22px; letter-spacing: -0.3px; line-height: 1; color: var(--text); text-decoration: none; }
.logo em { font-style: italic; color: var(--accent-2); }
.logo-sm { font-size: 18px; }

/* ── Overline ── */
.overline {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 3px; font-weight: 600; color: var(--accent);
  margin-bottom: 16px; text-transform: uppercase;
}
.overline .rule { display: inline-block; width: 24px; height: 1px; background: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 4px; font-size: 14px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "DM Sans", sans-serif;
}
.btn-primary {
  background: var(--accent); color: var(--btn-text);
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
}
.btn-primary:hover { background: var(--text); color: var(--bg); transform: translateY(-1px); }
[data-theme="light"] .btn-primary:hover { background: #252f4a; color: #fff; }
.btn-outline { background: transparent; color: var(--text-2); border-color: var(--border-strong); font-size: 13px; }
.btn-outline:hover { border-color: var(--text-2); color: var(--text); }
.btn kbd {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: 3px; color: var(--muted);
}
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-2); }
[data-theme="dark"] .ic-moon { display: none; }
[data-theme="light"] .ic-sun { display: none; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px; border-bottom: 1px solid var(--border);
  background: rgba(var(--bg-rgb), 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.tag { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
.badge-stealth {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 2.5px; font-weight: 600; color: var(--accent);
  padding: 6px 12px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-dim);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: pulse 2s infinite; }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(var(--bg-rgb), 0) 0%, rgba(var(--bg-rgb), 0.85) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  padding: 180px 48px 120px; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center;
}
.hero-h1 { font-size: 62px; line-height: 1.02; letter-spacing: -2px; margin-bottom: 28px; }
.hero-h1 em { font-style: normal; color: var(--accent-2); }
.rotator { display: inline; }
.caret { display: inline-block; width: 3px; height: 0.85em; background: var(--accent); margin-left: 4px; vertical-align: -0.08em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 44px; max-width: 520px; font-weight: 300; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.hero-anim-1 { animation: slideRight 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-anim-2 { animation: slideRight 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-anim-3 { animation: slideRight 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-anim-card { animation: slideLeft 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── Terminal ── */
.term {
  background: var(--term-bg); color: var(--term-fg);
  border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow-xl); width: 100%; max-width: 560px; margin-left: auto;
  font-size: 13px; line-height: 1.65; overflow: hidden; cursor: text;
}
.term.term-active { box-shadow: 0 0 0 2px var(--accent-border), 0 0 60px rgba(107, 149, 186, 0.45), var(--shadow-xl); transition: box-shadow 0.4s; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.tl { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.term-title { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.3px; }
.term-body { padding: 18px 18px 6px; min-height: 300px; max-height: 360px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.t-line { color: var(--term-fg); }
.t-line.t-out { color: rgba(223, 232, 241, 0.78); }
.t-line.t-dim { color: rgba(223, 232, 241, 0.45); }
.t-line.t-accent { color: var(--accent-2); }
.t-line.t-ok { color: var(--green); }
.t-line.t-err { color: #ff8a80; }
.t-prompt { color: var(--accent-2); font-weight: 600; margin-right: 8px; }
.t-cmd .t-text { color: #fff; }
.term-input-row { display: flex; align-items: center; padding: 6px 18px 16px; }
#term-input {
  flex: 1; background: transparent; border: 0; outline: 0; color: #fff;
  font: inherit; caret-color: var(--accent-2);
}
#term-input::placeholder { color: rgba(255,255,255,0.28); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 48px; background: var(--border); position: relative; z-index: 2; }
.stat { background: var(--bg-deep); padding: 40px 24px; text-align: center; border-top: 2px solid var(--accent); }
.stat-num { font-family: "Playfair Display", Georgia, serif; font-size: 40px; font-weight: 700; color: var(--accent); letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 10px; color: var(--muted); margin-top: 10px; letter-spacing: 3px; font-weight: 500; }

/* ── Sections ── */
.section { padding: 120px 0; }
.section-deep { background: var(--bg-deep); }
.section-title { font-size: 46px; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 20px; }
.section-title em { font-style: italic; color: var(--accent-2); font-weight: 600; }
.section-intro { font-size: 16px; color: var(--text-2); line-height: 1.7; max-width: 580px; font-weight: 300; margin-bottom: 60px; }

/* Domains */
.domain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.domain {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.domain::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0; transition: opacity 0.3s; }
.domain:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.domain:hover::before { opacity: 1; }
.domain-num { font-family: "Playfair Display", Georgia, serif; font-size: 52px; font-weight: 700; color: rgba(107, 149, 186, 0.14); line-height: 1; letter-spacing: -2px; margin-bottom: 8px; transition: color 0.3s; }
.domain:hover .domain-num { color: rgba(107, 149, 186, 0.32); }
.domain-tag { font-size: 11px; color: var(--accent); letter-spacing: 0.3px; margin-bottom: 14px; }
.domain h3 { font-size: 22px; margin-bottom: 10px; }
.domain p { font-size: 14px; color: var(--text-2); line-height: 1.7; font-weight: 300; margin-bottom: 18px; }
.domain-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 40px 28px; transition: transform 0.3s; }
.step:hover { transform: translateY(-4px); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", Georgia, serif; font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 24px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.7; font-weight: 300; }
.step-meta { margin-top: 16px; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* Code card */
.code-card { background: var(--term-bg); color: var(--term-fg); border: 1px solid var(--border-strong); border-radius: 12px; margin-top: 64px; overflow: hidden; box-shadow: var(--shadow-xl); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 11px; }
.code-file { color: var(--accent-2); }
.code-hint { color: rgba(255,255,255,0.35); letter-spacing: 0.5px; }
.code-card pre { padding: 24px; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.code-card .k { color: #a7c4d8; }
.code-card .s { color: #f3ede4; }
.code-card .n { color: #febc2e; }
.code-card .v { color: #ff8a80; }
.code-card .p { color: rgba(255,255,255,0.45); }
.code-card .c { color: rgba(255,255,255,0.3); font-style: italic; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-copy .section-intro { margin-bottom: 32px; }
.contact-notes { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--muted); }
.contact-notes li { display: flex; align-items: center; gap: 10px; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { font-size: 10px; letter-spacing: 2.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; }
.field > span i { font-style: normal; color: var(--muted); letter-spacing: 1px; font-weight: 400; text-transform: none; margin-left: 6px; }
.field input, .field select, .field textarea {
  background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 6px;
  color: var(--text); padding: 12px 14px; font: inherit; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field select option { color: #111; }
.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 12px; color: var(--muted); white-space: pre-line; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-status.busy { color: var(--accent-2); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-mid { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; }
.footer-links { display: flex; gap: 20px; font-size: 12px; color: var(--text-2); align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--text); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── Boot overlay ── */
.boot {
  position: fixed; inset: 0; z-index: 1000; background: #1a2540; color: #dfe8f1;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px;
  transition: opacity 0.5s ease;
}
.boot.hidden { opacity: 0; pointer-events: none; }
.boot[hidden] { display: none; }
.boot-inner { width: min(560px, 90vw); }
.boot-title { color: #fff; font-weight: 600; letter-spacing: 2px; margin-bottom: 18px; }
.boot-title span { color: #6b95ba; font-weight: 400; letter-spacing: 0; }
.boot-lines div { color: rgba(223,232,241,0.7); line-height: 1.8; }
.boot-lines div b { color: #22c55e; font-weight: 500; }
.boot-skip { margin-top: 24px; font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── Matrix easter egg ── */
.matrix { position: fixed; inset: 0; z-index: 900; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 150px; }
  .term { margin-left: 0; max-width: 640px; }
  .domain-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav { padding: 14px 24px; }
  .tag-version, .nav-cta { display: none; }
  .nav-right { gap: 12px; }
  .hero-grid { padding: 120px 24px 60px; }
  .hero-h1 { font-size: 40px; letter-spacing: -1.2px; }
  .stats { margin: 0 24px; grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-title { font-size: 34px; }
  .steps-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
  .footer-wrap { flex-direction: column; text-align: center; }
  .term-body { min-height: 240px; max-height: 300px; font-size: 12px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
