/* DataChef v2 — dark cinematic premium-tech */

:root {
  /* Surface */
  --bg:        #0a0b0a;
  --bg-2:      #0e100f;
  --surface:   #14161510;
  --surface-2: #1a1d1c;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --border-3:  rgba(255, 255, 255, 0.22);

  /* Ink */
  --text:      #f0eee8;
  --muted:     rgba(240, 238, 232, 0.55);
  --muted-2:   rgba(240, 238, 232, 0.32);

  /* Accents */
  --lime:      #84d4ff;
  --lime-2:    #4fb8ee;
  --warm:      #ff7a47;
  --warm-2:    #ffbe70;

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --font-sans:    "Geist", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);

  --dc-inv-zoom: 1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient noise on bg */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  z-index: 1;
  mix-blend-mode: overlay;
}

::selection { background: var(--lime); color: var(--bg); }

a { color: inherit; }

/* Hide default cursor in favor of custom */
html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on a, html.cursor-on button, html.cursor-on input, html.cursor-on textarea { cursor: none !important; }

/* ─────────── Layout shells ─────────── */

.section {
  position: relative;
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
}
.section-inner { max-width: 1320px; margin: 0 auto; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--muted);
}
.eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.display-it { font-style: italic; font-weight: 400; }

.mono { font-family: var(--font-mono); }

.divider-line {
  height: 1px;
  background: var(--border);
  margin: 0;
  width: 100%;
}

/* Tabular */
.tabular { font-variant-numeric: tabular-nums; }

/* ─────────── Buttons ─────────── */

.btn {
  --bg-btn: var(--text);
  --fg-btn: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid var(--bg-btn);
  background: var(--bg-btn);
  color: var(--fg-btn);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.2s, color 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime  { --bg-btn: var(--lime); --fg-btn: var(--bg); }
.btn-ghost { --bg-btn: transparent; --fg-btn: var(--text); border-color: var(--border-3); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn .arrow {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--fg-btn);
  color: var(--bg-btn);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(2px) rotate(-45deg); }
.btn-ghost .arrow { background: var(--text); color: var(--bg); }
.btn-ghost:hover .arrow { background: var(--bg); color: var(--text); }

/* ─────────── Tag / chip ─────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.tag .sw { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.tag-solid { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ─────────── Card ─────────── */

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border-2); }

/* gradient glow on hover */
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 40%, var(--lime) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* ─────────── Animations ─────────── */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.6); }
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4px, -6px); }
}

@keyframes float-up {
  0%   { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes orbit-rev {
  0% { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  100% { transform: rotate(-360deg) translateX(var(--r)) rotate(360deg); }
}

@keyframes pop-in {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

@keyframes count-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Marquee */
.marquee {
  display: flex;
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
  will-change: transform;
}
.marquee-slow { animation-duration: 90s; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Splittext line */
.split-line { display: block; overflow: hidden; }
.split-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--line-delay, 0s);
}
.reveal.in .split-inner { transform: translateY(0); }

/* Underline accent */
.lime-underline {
  background-image: linear-gradient(transparent 86%, var(--lime) 86%, var(--lime) 96%, transparent 96%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ─────────── Form ─────────── */

.input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid var(--border-2);
  border-radius: 0;
  background: transparent;
  padding: 14px 0 12px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  outline: none;
  letter-spacing: -0.01em;
  transition: border-color 0.25s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { border-bottom-color: var(--lime); }
textarea.input { resize: vertical; min-height: 88px; padding-top: 16px; line-height: 1.55; font-size: 16px; }

/* Spec line */
.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.spec:last-child { border-bottom: 0; }
.spec .k { text-transform: uppercase; }
.spec .v { color: var(--text); font-variant-numeric: tabular-nums; }

/* ─────────── Cinematic backdrops ─────────── */

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(80px) saturate(160%);
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.aurora::before {
  width: 40vw; height: 40vw;
  left: -10%; top: -10%;
  background: radial-gradient(circle, var(--lime) 0%, transparent 60%);
  opacity: 0.18;
  animation: drift 14s ease-in-out infinite;
}
.aurora::after {
  width: 50vw; height: 50vw;
  right: -15%; bottom: -20%;
  background: radial-gradient(circle, var(--warm) 0%, transparent 60%);
  opacity: 0.12;
  animation: drift 18s ease-in-out infinite reverse;
}

/* Grid overlay */
.gridlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 50%, #000 30%, transparent 90%);
}

/* ─────────── Misc ─────────── */

.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* Equalizer bars */
.eq { display: inline-flex; gap: 2px; align-items: end; height: 12px; }
.eq span {
  width: 2px; height: 100%;
  background: var(--lime);
  transform-origin: bottom;
  animation: wave 1.1s ease-in-out infinite;
}
.eq span:nth-child(2) { animation-delay: 0.15s; }
.eq span:nth-child(3) { animation-delay: 0.30s; }
.eq span:nth-child(4) { animation-delay: 0.45s; }

/* Section heading helper */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* Floating cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--text);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.25s, height 0.25s;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--lime); }

/* Z-index for content above noise overlay */
.section, nav, footer { position: relative; z-index: 2; }

/* ─────────── Mobile responsive ─────────── */

@media (max-width: 767px) {
  :root {
    --pad-x: 16px;
  }

  .section {
    padding: 64px var(--pad-x);
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .display {
    line-height: 0.95;
  }

  .eyebrow {
    font-size: 10px;
    gap: 8px;
  }

  .btn {
    padding: 12px 16px 12px 18px;
    font-size: 13px;
  }

  .spec {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  .spec .v {
    font-size: 16px;
  }

  /* Hide custom cursor on touch */
  .cursor-dot, .cursor-ring { display: none !important; }
  html.cursor-on, html.cursor-on * { cursor: auto !important; }

  /* Mobile nav overlay */
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 11, 10, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .mobile-nav-overlay a {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    padding: 12px 24px;
    transition: color 0.2s;
  }
  .mobile-nav-overlay a:hover { color: var(--lime); }

  /* Hamburger */
  .hamburger {
    appearance: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
  }
  .hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
