/* ==========================================================
   Funkquist Ventures — Dark Luxury (amber/gold)
   Tokens follow SKILL.md / DESIGN.md
   ========================================================== */

:root {
  --bg-base:       #0a0907;
  --bg-surface:    #100f0d;
  --bg-card:       #161412;
  --bg-footer:     #141210;
  --bg-media:      #0e0c0a;
  --border-subtle: rgba(255,248,230,0.07);
  --border-medium: rgba(255,248,230,0.13);
  --border-accent: rgba(212,160,60,0.55);
  --text-primary:  #f0ebe0;
  --text-muted:    #5a544a;
  --text-body:     #8a8070;
  --text-tertiary: #524c42;
  --accent:        #d4a03c;
  --accent-bright: #e8b84e;
  --accent-glow:   rgba(212,160,60,0.18);
  --accent-subtle: rgba(212,160,60,0.08);
  --success:       #3d9e5c;
  --error:         #b83c38;
  --grain-opacity: 0.04;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-display: clamp(44px, 7vw, 96px);
  --text-h2: clamp(28px, 3vw, 44px);
  --text-h3: clamp(17px, 1.6vw, 20px);
  --tracking-tight: -0.03em;
  --leading-tight: 1.1;
  --leading-relaxed: 1.65;

  --r-md: 10px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --dur-fast: 150ms; --dur-base: 220ms; --dur-enter: 600ms;

  --page-pad: 40px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: var(--grain-opacity); mix-blend-mode: overlay; background-size: 128px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
::selection { background: rgba(212,160,60,0.30); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--page-pad); }

/* ---------- Headlines (color contrast, not weight) ---------- */
.hl-muted  { color: var(--text-muted); }
.hl-bright { color: var(--text-primary); }
.hl-highlight { background: rgba(212,160,60,0.20); padding: 0 6px; border-radius: 6px; }

.display-headline {
  font-size: var(--text-display); font-weight: 800;
  letter-spacing: var(--tracking-tight); line-height: var(--leading-tight);
}
.cycling-word { display: inline-block; }

.section-label {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.06em; display: block; margin-bottom: 16px;
}
.section-title {
  font-size: var(--text-h2); font-weight: 700;
  letter-spacing: var(--tracking-tight); line-height: var(--leading-tight);
}
.section-sub { margin-top: 16px; max-width: 520px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font: 600 14px/1.2 var(--font-sans); color: var(--text-primary);
  background: var(--bg-card); border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: box-shadow var(--dur-base) ease, border-color var(--dur-base) ease,
              background var(--dur-base) ease, transform var(--dur-fast) var(--ease-out);
}
.btn-primary {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(212,160,60,0.55), 0 0 20px rgba(212,160,60,0.25), 0 0 40px rgba(212,160,60,0.10);
  animation: btn-pulse 2.8s ease-in-out infinite;
}
.btn-primary:hover {
  animation: none; border-color: var(--accent-bright); transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(212,160,60,0.75), 0 0 28px rgba(212,160,60,0.40), 0 0 55px rgba(212,160,60,0.18);
}
.btn-primary:active { transform: translateY(0); }
@keyframes btn-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(212,160,60,0.55), 0 0 20px rgba(212,160,60,0.25), 0 0 40px rgba(212,160,60,0.10); }
  50%     { box-shadow: 0 0 10px rgba(212,160,60,0.70), 0 0 28px rgba(212,160,60,0.35), 0 0 52px rgba(212,160,60,0.16); }
}
.btn-secondary { border-color: var(--border-medium); }
.btn-secondary:hover { border-color: rgba(255,248,230,0.28); background: rgba(255,255,255,0.03); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; animation: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card); border: none; border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,248,230,0.08), 0 4px 24px rgba(0,0,0,0.45);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) ease, border-color var(--dur-base) ease;
}
.nav.scrolled {
  background: rgba(10,9,7,0.80);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text-primary); font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
}
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  color: var(--text-body); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color var(--dur-fast) ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-body); text-decoration: none; padding: 4px 2px;
  transition: color var(--dur-fast) ease;
}
.lang-switch a:hover { color: var(--text-primary); }
.lang-switch a[aria-current="page"] { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow-x: clip;
  min-height: 92vh; display: flex; align-items: center;
  padding: 160px 0 140px; text-align: center;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-orb {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 900px; max-width: 160vw; height: 500px; border-radius: 50%; filter: blur(40px); pointer-events: none;
  background: radial-gradient(ellipse at center bottom, rgba(180,100,15,0.28) 0%, rgba(150,75,10,0.12) 35%, transparent 70%);
  animation: orb-breathe 8s ease-in-out infinite alternate;
}
@keyframes orb-breathe {
  from { opacity: 0.8; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill); font-size: 14px; color: var(--text-body); margin-bottom: 32px;
}
.hero-badge svg { color: var(--accent); }
.hero-intro { margin-top: 28px; max-width: 520px; font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- Sections ---------- */
.section { padding: 140px 0; }
.section-surface { background: var(--bg-surface); }
.section-head { margin-bottom: 56px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,248,230,0.10), 0 12px 40px rgba(0,0,0,0.55);
}
.product-media {
  position: relative; height: 240px; background: var(--bg-media);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-media::after {
  content: ''; position: absolute; left: 50%; bottom: -60%; width: 80%; height: 90%;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(212,160,60,0.10), transparent 70%);
}
.product-art { width: 82%; height: auto; color: var(--accent); position: relative; z-index: 1;
  transition: transform 600ms var(--ease-out); }
.product-card:hover .product-art { transform: scale(1.03); }
.product-body { padding: 24px 28px 28px; }
.product-body h3 {
  color: var(--text-primary); font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.02em;
}
.product-body p:last-child { font-size: 15px; }
.product-link {
  display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600;
  font-size: 14px; text-decoration: none;
}
.product-link:hover { color: var(--accent-bright); }

.arch-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-body);
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 4px 0 16px;
}

.status {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r-pill); background: rgba(10,9,7,0.7); border: 1px solid var(--border-medium);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-soon { color: var(--accent); }
.status-soon .status-dot { background: var(--accent); animation: dot-pulse 2s ease-in-out infinite; }
.status-live { color: var(--success); }
.status-live .status-dot { background: var(--success); }
@keyframes dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start;
}
.contact-copy { position: sticky; top: 120px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  color: var(--text-primary); text-decoration: none; font-weight: 500;
  padding-bottom: 4px; border-bottom: 1px solid var(--border-medium);
  transition: border-color var(--dur-base) ease, color var(--dur-base) ease;
}
.contact-mail svg { color: var(--accent); }
.contact-mail:hover { border-color: var(--accent); }

.contact-form { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-body); text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 15px/1.5 var(--font-sans);
  color: var(--text-primary); background: var(--bg-base);
  border: 1px solid var(--border-medium); border-radius: var(--r-md);
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgba(255,248,230,0.22); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--border-accent); box-shadow: 0 0 0 3px var(--accent-subtle);
}
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-field { min-height: 65px; } /* reserve the widget's height so the form doesn't jump */
.form-status { min-height: 1.4em; font-size: 14px; text-align: center; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* ---------- Footer ---------- */
.footer-wrapper { padding: 24px; background: var(--bg-base); }
.footer-panel {
  max-width: 1400px; margin: 0 auto;
  background: var(--bg-footer); border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255,248,230,0.06);
  padding: 48px 48px 24px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle);
}
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-primary); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-body); text-decoration: none; font-size: 14px; transition: color var(--dur-fast) ease; }
.footer-col a:hover { color: var(--text-primary); }
.company-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; }
.company-info dt { color: var(--text-body); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.9; }
.company-info dd { margin: 0; color: var(--text-body); overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 13px; color: var(--text-body);
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.js .card.reveal.visible { transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-copy { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --page-pad: 16px; }
  .nav-links { display: none; }
  .nav-actions { gap: 14px; }
  .brand, .btn { white-space: nowrap; }
  .hero { min-height: auto; padding: 140px 0 112px; }
  .hero-intro { font-size: 16px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-wrapper { padding: 16px 12px 12px; }
  .footer-panel { padding: 32px 24px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .nav-cta { display: none; } /* hero already has the contact CTA */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
