/* ============================================================
   DCS C3 · OTT PRODUCTION MANAGEMENT — SITE STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root{
  --bg:        #14110d;
  --bg-soft:   #1b160f;
  --bg-raise:  #211a12;
  --card:      #f1decb;
  --card-2:    #e8cda6;
  --ink:       #1c150e;
  --paper:     #f6efe3;
  --paper-dim: #cfc4b3;
  --orange:    #e17e2d;
  --orange-2:  #c8631f;
  --orange-glow: rgba(225,126,45,0.45);
  --green:      #4fbd78;
  --green-dark: #173d28;
  --line:      rgba(246,239,227,0.14);
  --line-soft: rgba(246,239,227,0.07);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--orange); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--orange);
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(225,126,45,0.2);
}

/* ---------------- background texture ---------------- */
.grain{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-field{
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(650px 500px at 15% 8%, rgba(225,126,45,0.16), transparent 60%),
    radial-gradient(500px 420px at 88% 22%, rgba(225,126,45,0.10), transparent 60%);
  animation: driftGlow 22s ease-in-out infinite alternate;
}
@keyframes driftGlow{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(-2%, 2%, 0) scale(1.06); }
}

/* ================= NAV ================= */
header.site-nav{
  position: fixed; top:0; left:0; right:0;
  z-index: 100;
  padding: 20px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.site-nav.scrolled{
  padding: 13px 0;
  background: rgba(20,17,13,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
}
.brand{
  display:flex; align-items:baseline; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand span{
  color: var(--orange);
}
.brand img{
  width: 153px;
  height: 41px;
  object-fit: contain;
}
.nav-links{
  display:flex; align-items:center; gap: 6px;
  list-style:none; margin:0; padding: 4px; 
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.nav-links a{
  display:block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-dim);
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a:hover{ color: var(--paper); background: rgba(255,255,255,0.05); }
.nav-links a.active{ color: var(--ink); background: var(--paper); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-menu-btn{
  display:none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  align-items:center; justify-content:center;
  cursor:pointer;
}

/* ================= BUTTONS ================= */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px var(--orange-glow);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px var(--orange-glow);
  background: #ef8a3a;
}
.btn-enroll{
  background: var(--green);
  color: var(--green-dark);
  box-shadow: 0 8px 24px -8px rgba(79,189,120,0.45);
}
.btn-enroll:hover{
  transform: translateY(-2px);
  background: #6dce91;
  box-shadow: 0 14px 30px -8px rgba(79,189,120,0.5);
}
.btn-ghost{
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover{
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-block{ width:100%; justify-content:center; }
.btn .arrow{ transition: transform .35s var(--ease); }
.btn:hover .arrow{ transform: translateX(4px); }

/* magnetic wrapper */
.magnetic{ display:inline-block; }

/* ================= SECTION SCAFFOLDING ================= */
main{ position: relative; z-index: 1; }
section{ padding: 118px 0; position: relative; }
section.tight{ padding: 88px 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(30px,4vw,44px); max-width: 640px; }
.section-head .desc{
  max-width: 380px;
  color: var(--paper-dim);
  font-size: 15.5px;
}
.kicker{ margin-bottom: 18px; }

hr.rule{
  border:0; height:1px; background: var(--line);
  margin: 0;
}

/* reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{ opacity: 1; transform: translateY(0); }
.stagger .reveal:nth-child(1){ transition-delay: .02s; }
.stagger .reveal:nth-child(2){ transition-delay: .08s; }
.stagger .reveal:nth-child(3){ transition-delay: .14s; }
.stagger .reveal:nth-child(4){ transition-delay: .2s; }
.stagger .reveal:nth-child(5){ transition-delay: .26s; }
.stagger .reveal:nth-child(6){ transition-delay: .32s; }
.stagger .reveal:nth-child(7){ transition-delay: .38s; }
.stagger .reveal:nth-child(8){ transition-delay: .44s; }
.stagger .reveal:nth-child(9){ transition-delay: .5s; }
.stagger .reveal:nth-child(10){ transition-delay: .56s; }

/* ================= HERO ================= */
.hero{
  padding: 168px 0 90px;
  min-height: 92vh;
  display:flex;
  align-items:center;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(40px, 5.6vw, 74px);
  margin: 22px 0 26px;
}
.hero h1 em{
  font-style: normal;
  color: var(--orange);
}
.hero-sub{
  max-width: 480px;
  color: var(--paper-dim);
  font-size: 17px;
  margin-bottom: 40px;
}
.hero-actions{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom: 48px;}
.hero-meta{
  display:flex; gap: 28px; flex-wrap:wrap;
}
.hero-meta div{ display:flex; flex-direction:column; gap:4px; }
.hero-meta .num{
  font-family: var(--font-display);
  font-size: 22px; font-weight:700; color: var(--paper);
}
.hero-meta .lbl{
  font-size: 12px; color: var(--paper-dim); letter-spacing: 0.03em;
}

.hero-art{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero-art img{
  width:100%; height:100%; object-fit:cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.hero-art:hover img{ transform: scale(1.08); }
.hero-art::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,17,13,0) 40%, rgba(20,17,13,0.92) 100%);
}
.hero-art-tag{
  position:absolute; left:20px; bottom:20px; right:20px;
  z-index:2;
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 10px;
}
.hero-art-tag .t1{ font-family: var(--font-display); font-weight:700; font-size:18px; }
.hero-art-tag .t2{ font-size:12px; color: var(--paper-dim); font-family: var(--font-mono); }

.marquee-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track{
  display:flex;
  width: max-content;
  gap: 48px;
  animation: marquee 28s linear infinite;
}
.marquee-track span{
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--paper-dim);
  display:flex; align-items:center; gap: 48px;
  white-space:nowrap;
}
.marquee-track span b{ color: var(--paper); font-weight:600; }
.marquee-track span::after{
  content:"→";
  color: var(--orange);
  margin-left: 48px;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.site-nav:hover ~ main .marquee-track,
.marquee-strip:hover .marquee-track{ animation-play-state: paused; }

/* ================= CARDS ================= */
.card{
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
  will-change: transform;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -20px rgba(0,0,0,0.55);
}
.card-dark{
  background: var(--bg-raise);
  color: var(--paper);
  border: 1px solid var(--line);
}
.card-dark:hover{ border-color: var(--orange); }

.tilt{ transform-style: preserve-3d; perspective: 800px; }

.pill{
  display:inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--paper-dim);
}

/* grid helpers */
.grid{ display:grid; gap: 20px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.grid-5{ grid-template-columns: repeat(5,1fr); }

/* ================= PIPELINE / TIMELINE ================= */
.pipeline{
  position: relative;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.pipeline::before{
  content:"";
  position:absolute;
  left: 6%;
  right: 6%;
  top: 34px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.pipe-fill{
  position:absolute;
  left: 6%;
  top: 34px;
  height: 2px;
  background: var(--orange);
  width: 0%;
  z-index: 0;
  transition: width 1.6s var(--ease);
}
.pipe-node{
  position: relative;
  z-index: 1;
  display:flex; flex-direction:column; align-items:flex-start; gap: 14px;
}
.pipe-num{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size: 15px;
  color: var(--paper-dim);
  transition: all .4s var(--ease);
}
.pipe-node.active .pipe-num{
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(225,126,45,0.16);
}
.pipe-node h4{ font-size: 14.5px; }
.pipe-node p{ font-size: 13px; color: var(--paper-dim); }

/* ================= FOOTER ================= */
footer{
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg-soft);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4{ font-size: 13px; color: var(--paper-dim); margin-bottom: 16px; font-weight: 600; letter-spacing: .03em;}
.footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 10px;}
.footer-links a{ font-size: 14.5px; color: var(--paper); transition: color .3s; }
.footer-links a:hover{ color: var(--orange); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--paper-dim);
  flex-wrap: wrap; gap: 12px;
}

/* ================= UTILITIES ================= */
.text-orange{ color: var(--orange); }
.mt-8{ margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.flex{ display:flex; }
.gap-12{gap:12px;} .gap-20{gap:20px;}
.wide{ max-width: 720px; }

/* cursor glow dot */
#cursor-glow{
  position: fixed; width: 380px; height: 380px;
  border-radius: 50%;
  pointer-events:none;
  z-index: 1;
  background: radial-gradient(circle, rgba(225,126,45,0.10), transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .4s;
  opacity: 0;
}
@media (hover:hover){ #cursor-glow{ opacity: 1; } }

/* ================= PAGE HERO (inner pages) ================= */
.page-hero{
  padding: 160px 0 70px;
}
.page-hero h1{ font-size: clamp(36px,5vw,58px); margin: 18px 0 20px; }
.page-hero .desc{ max-width: 560px; color: var(--paper-dim); font-size: 16.5px; }

/* stat counter row */
.stat-row{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.stat-box{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.stat-box:hover{ border-color: var(--orange); transform: translateY(-4px); }
.stat-box .num{
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(30px,4vw,42px); color: var(--orange);
  display:flex; align-items:baseline; gap:2px;
}
.stat-box .lbl{ font-size: 13px; color: var(--paper-dim); margin-top: 6px; }

/* team table */
.touch-row{
  display:grid;
  grid-template-columns: 44px 1.1fr 1.4fr 1.3fr;
  gap: 20px;
  align-items:center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s;
}
.touch-row:hover{ background: rgba(225,126,45,0.05); }
.touch-num{
  width:40px; height:40px; border-radius:50%;
  background: var(--bg-raise); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:13px; color: var(--orange);
  flex-shrink:0;
}
.touch-row h4{ font-size: 15.5px; }
.touch-row .sub{ font-size: 13px; color: var(--paper-dim); margin-top: 4px; }
.touch-row .who{ font-size: 13.5px; color: var(--paper); }

/* old vs new */
.compare-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.compare-card{
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
}
.compare-card.old{ opacity: .82; }
.compare-card.new{
  background: linear-gradient(160deg, rgba(225,126,45,0.14), rgba(225,126,45,0.02));
  border-color: var(--orange);
}
.check-list{ list-style:none; margin: 18px 0 0; padding:0; display:flex; flex-direction:column; gap:10px;}
.check-list li{ display:flex; align-items:center; gap:10px; font-size:14.5px; }
.check-list li::before{
  content:"✓"; color: var(--orange); font-weight:700;
}

/* form */
.form-field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.form-field label{ font-size:13px; color: var(--paper-dim); }
.form-field input, .form-field select, .form-field textarea{
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .3s;
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color: var(--orange);
}

/* map placeholder */
.map-box{
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow:hidden;
  aspect-ratio: 16/10;
}
.map-box iframe{ width:100%; height:100%; border:0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

/* toast */
#toast{
  position: fixed; bottom: 28px; left: 50%;
  transform: translate(-50%, 120%);
  background: var(--paper); color: var(--ink);
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  z-index: 300;
  transition: transform .5s var(--ease);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
}
#toast.show{ transform: translate(-50%, 0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; aspect-ratio: 16/9; }
  .grid-4, .grid-5, .grid-3{ grid-template-columns: repeat(2,1fr); }
  .pipeline{ grid-template-columns: repeat(2,1fr); }
  .pipeline::before, .pipe-fill{ display:none; }
  .footer-grid{ grid-template-columns: 1fr; }
  .compare-grid{ grid-template-columns: 1fr; }
  .stat-row{ grid-template-columns: repeat(2,1fr); }
  .touch-row{ grid-template-columns: 32px 1fr; }
  .touch-row .cols3{ grid-column: 2/3; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .nav-menu-btn{ display:flex; flex-shrink:0; }
  .wrap{ padding: 0 20px; }
  .nav-row{ gap: 10px; }
  .brand{ font-size:16px; white-space:nowrap; }
  .brand img{ width:120px; height:auto; }
  .nav-cta{ gap:8px; }
  .nav-cta .btn-primary, .nav-cta .btn-enroll{ padding: 10px 11px; font-size: 12px; gap:5px; }
}
@media (max-width: 400px){
  .brand img{ width:90px; }
  .nav-cta{ gap:4px; }
  .nav-cta .btn-primary, .nav-cta .btn-enroll{ padding: 8px 7px; font-size: 10px; gap:3px; }
  .nav-cta .btn .arrow{ display:none; }
}
  section{ padding: 80px 0; }
  .hero{ padding-top: 140px; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5{ grid-template-columns: repeat(2,1fr); }
}
