/* =========================================================
   VYNEX MEDIA — Design System
   Palette derived from brand logo (amber-orange / growth-green)
   ========================================================= */

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

:root{
  /* --- Color tokens --- */
  --ink:        #12140F;
  --ink-soft:   #6B7268;
  --ink-faint:  #9CA196;
  --paper:      #F7F6F1;
  --paper-dim:  #EEEBE1;
  --paper-line: #E1DDCF;
  --white:      #FFFFFF;

  --ember:        #F2941B;
  --ember-dark:   #C97711;
  --ember-tint:   #FDE9CC;
  --growth:       #1B6B3A;
  --growth-dark:  #123F23;
  --sprout:       #8CBD52;
  --sprout-tint:  #E7F1D9;

  --gradient-signal: linear-gradient(90deg, var(--ember) 0%, var(--sprout) 55%, var(--growth) 100%);
  --gradient-ticker: linear-gradient(120deg, var(--ember) 0%, var(--sprout) 100%);

  /* --- Type --- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Layout --- */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(18,20,15,0.06);
  --shadow-md: 0 12px 32px rgba(18,20,15,0.09);
  --shadow-lg: 0 24px 60px rgba(18,20,15,0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,p{ margin: 0; }

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

:focus-visible{
  outline: 2.5px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--growth);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
}

h1, .h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
}
.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 54ch;
}
.mono-stat{
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- Layout helpers ---------- */
.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 88px 0; }
@media (max-width: 720px){
  section{ padding: 56px 0; }
}
.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{ margin-bottom: 16px; }

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--growth-dark);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost:hover{
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-on-dark{
  background: var(--white);
  color: var(--ink);
}
.btn-on-dark:hover{
  background: var(--ember);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-arrow{ transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(3px); }
.btn-block{ width: 100%; }

/* ---------- Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,241,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img{ height: 34px; width: auto; }
.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient-signal);
  border-radius: 2px;
}
.nav-actions{ display: flex; align-items: center; gap: 18px; }
.nav-cta{ display: inline-flex; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span{
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{
    width: 100%;
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--paper-line);
  }
  .nav-links .nav-cta{ margin-top: 14px; width: 100%; }
  .nav-links .nav-cta .btn{ width: 100%; }
  .nav-actions .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 88px;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
}
.hero h1{ margin: 18px 0 20px; }
.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-proof{
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-proof div{ display: flex; flex-direction: column; gap: 2px; }
.hero-proof .num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}
.hero-proof .label{
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Ticker panel (signature element) ---------- */
.ticker-panel{
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.ticker-panel::before{
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(242,148,27,0.22), transparent 70%);
  top: -120px; right: -100px;
  pointer-events: none;
}
.ticker-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
}
.ticker-head span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,246,241,0.55);
}
.ticker-dots{ display: flex; gap: 6px; }
.ticker-dots i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(247,246,241,0.25); display:block; }
.ticker-svg{ width: 100%; height: auto; position: relative; }
.ticker-path{
  fill: none;
  stroke: url(#tickerGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s var(--ease) forwards 0.3s;
}
.ticker-fill{
  opacity: 0;
  animation: fadein 1s ease forwards 1.6s;
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }
@keyframes fadein{ to{ opacity: 1; } }
.ticker-chips{
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  position: relative;
}
.chip{
  background: rgba(247,246,241,0.08);
  border: 1px solid rgba(247,246,241,0.14);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 7px;
}
.chip .dot{ width: 6px; height: 6px; border-radius: 50%; }
.chip.up .dot{ background: var(--sprout); }
.ticker-caption{
  margin-top: 16px;
  font-size: 11.5px;
  color: rgba(247,246,241,0.4);
  position: relative;
}

/* ---------- Marquee / trust bar ---------- */
.trust-bar{
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 22px 0;
  overflow: hidden;
}
.trust-track{
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.trust-item{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.trust-item::before{ content: "◆"; color: var(--ember); font-size: 9px; }

/* ---------- Cards ---------- */
.card{
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon{
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: var(--sprout-tint);
  color: var(--growth-dark);
}
.card-icon svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--ink-soft); font-size: 15px; }
.card-metric{
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--paper-line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--growth-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Services grid (asymmetric) */
.services-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.services-grid .card-feature{ grid-column: span 6; padding: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.services-grid .card-standard{ grid-column: span 3; }
.services-grid .card-wide{ grid-column: span 6; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; }
@media (max-width: 900px){
  .services-grid{ grid-template-columns: 1fr; }
  .services-grid .card-feature, .services-grid .card-standard, .services-grid .card-wide{ grid-column: span 1; }
  .services-grid .card-feature{ grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process-list{
  display: grid;
  gap: 0;
  border-top: 1px solid var(--paper-line);
}
.process-item{
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}
.process-item .tag{
  font-family: var(--font-mono);
  color: var(--ember-dark);
  font-weight: 600;
  font-size: 13px;
}
.process-item h3{ margin-bottom: 6px; }
.process-item p{ color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 720px){
  .process-item{ grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(140,189,82,0.18), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(242,148,27,0.16), transparent 50%);
  pointer-events: none;
}
.cta-banner h2{ color: var(--white); max-width: 480px; position: relative; }
.cta-banner p{ color: rgba(247,246,241,0.6); margin-top: 12px; max-width: 420px; position: relative; }
.cta-actions{ display: flex; gap: 14px; position: relative; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 28px;
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,246,241,0.12);
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-brand img{ height: 30px; margin-bottom: 16px; }
.footer-brand p{ color: rgba(247,246,241,0.55); font-size: 14px; max-width: 30ch; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,246,241,0.45);
  margin-bottom: 18px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{
  color: rgba(247,246,241,0.8);
  font-size: 14.5px;
  transition: color 0.25s ease;
}
.footer-col a:hover{ color: var(--ember); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p{ color: rgba(247,246,241,0.4); font-size: 13px; }
.social-row{ display: flex; gap: 14px; }
.social-row a{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,246,241,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.social-row a:hover{ background: var(--ember); border-color: var(--ember); }
.social-row svg{ width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full{ grid-column: span 2; }
@media (max-width: 640px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-grid .full{ grid-column: span 1; }
}
.field label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field textarea, .field select{
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--growth);
  box-shadow: 0 0 0 4px var(--sprout-tint);
}
.field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.form-status{ font-size: 14px; margin-top: 14px; font-weight: 600; display: none; }
.form-status.show{ display: block; }
.form-status.ok{ color: var(--growth-dark); }
.form-status.err{ color: #B23A3A; }

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.pill-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sprout-tint);
  color: var(--growth-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.divider{ height: 1px; background: var(--paper-line); border: none; margin: 0; }
.text-center{ text-align: center; }
.mx-auto{ margin-left: auto; margin-right: auto; }

.page-hero{
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--paper-line);
}
.page-hero .eyebrow{ margin-bottom: 16px; }
.page-hero h1{ max-width: 16ch; }
.page-hero .lede{ margin-top: 18px; }

.stat-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
@media (max-width: 780px){
  .stat-strip{ grid-template-columns: 1fr 1fr; }
}
.stat-strip .stat{ border-left: 2px solid var(--paper-line); padding-left: 18px; }
.stat-strip .stat .num{ font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.stat-strip .stat .lbl{ color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }

.placeholder-card{
  border: 1.5px dashed var(--paper-line);
  border-radius: var(--radius-md);
  padding: 28px;
  color: var(--ink-faint);
  font-size: 14px;
  text-align: center;
}
