/* =====================================================================
   YANK NATION MOVEMENT — Homepage Stylesheet
   Shares the same design tokens as the product page stylesheets so the
   whole site stays visually consistent. Change colors/fonts here.
   ===================================================================== */

:root{
  --bg:            #0a0a0b;
  --bg-raised:     #121215;
  --surface:       #17171b;
  --surface-line:  #26262c;
  --text:          #f5f5f7;
  --text-muted:    #9a9aa4;
  --text-dim:      #616168;

  --red:    #ff3b30;
  --yellow: #ffd60a;
  --green:  #30d158;
  --blue:   #0a84ff;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Space Grotesk', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1120px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; }

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

.section-inner{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 18px;
}
.eyebrow-center{ display: flex; justify-content: center; text-align: center; }
.dot{ width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-red{ background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot-yellow{ background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.dot-green{ background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot-blue{ background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.section-title{
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-align: center;
}
.section-sub{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.grad-text{
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 35%, var(--green) 65%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 18px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(90deg, var(--red), var(--yellow));
  color: #0a0a0b;
  box-shadow: 0 8px 30px -8px rgba(255, 59, 48, 0.5);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(255, 59, 48, 0.65); }

/* =====================================================================
   SIGNATURE ELEMENT — side channel-strip meter
   ===================================================================== */
.rig-meter{
  position: fixed; top: 0; right: 0; height: 100vh; width: 22px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; z-index: 5; pointer-events: none; opacity: 0.5;
}
.rig-meter span{ width: 3px; border-radius: 2px; background: var(--surface-line); animation: meter-pulse 2.4s ease-in-out infinite; }
.rig-meter span:nth-child(1){ height: 14px; background: var(--red);    animation-delay: 0s;   }
.rig-meter span:nth-child(2){ height: 22px; background: var(--yellow); animation-delay: .25s; }
.rig-meter span:nth-child(3){ height: 34px; background: var(--green);  animation-delay: .5s;  }
.rig-meter span:nth-child(4){ height: 20px; background: var(--blue);   animation-delay: .75s; }
.rig-meter span:nth-child(5){ height: 30px; background: var(--red);    animation-delay: 1s;   }
.rig-meter span:nth-child(6){ height: 16px; background: var(--yellow); animation-delay: 1.25s;}
@keyframes meter-pulse{ 0%, 100%{ transform: scaleY(0.5); opacity: 0.5; } 50%{ transform: scaleY(1); opacity: 1; } }
@media (max-width: 900px){ .rig-meter{ display: none; } }

/* =====================================================================
   NAV
   ===================================================================== */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-line);
}
.nav-inner{
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}
.brand{ display: flex; align-items: baseline; gap: 8px; }
.brand-mark{ font-family: var(--font-display); font-size: 18px; letter-spacing: 0.02em; }
.brand-sub{
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-muted); text-transform: uppercase; display: none;
}
@media (min-width: 640px){ .brand-sub{ display: inline; } }

.nav-links{ display: none; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav-links a{ transition: color 0.2s ease; }
.nav-links a:hover{ color: var(--text); }
@media (min-width: 860px){ .nav-links{ display: flex; } }

.nav-toggle{
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span{ display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s 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 (min-width: 860px){ .nav-toggle{ display: none; } }

@media (max-width: 859px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,11,0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--surface-line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open{ display: flex; max-height: 320px; }
  .nav-links a{ padding: 16px 24px; border-top: 1px solid var(--surface-line); font-size: 15px; }
}

.nav-cta{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-weight: 600; transition: transform 0.2s ease;
}
.nav-cta:hover{ transform: translateY(-1px); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero{ position: relative; padding: 96px 24px 72px; overflow: hidden; text-align: center; }
.hero-glow{
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,59,48,0.18), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(10,132,255,0.16), transparent 55%),
    radial-gradient(circle at 50% 70%, rgba(48,209,88,0.12), transparent 55%);
  filter: blur(30px); pointer-events: none;
}
.hero-inner{ max-width: var(--container); margin: 0 auto; position: relative; }
.hero-title{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 22px;
}
.hero-sub{ max-width: 600px; margin: 0 auto 36px; color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-ctas{ display: flex; justify-content: center; }

/* =====================================================================
   PRODUCT GRID
   ===================================================================== */
.products{ padding: 40px 0 96px; }
.product-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px){ .product-grid{ grid-template-columns: repeat(2, 1fr); } }

.product-card{
  display: block;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
a.product-card:hover{ transform: translateY(-4px); }
.product-card[data-accent="red"]:hover{ border-color: var(--red); }
.product-card[data-accent="blue"]:hover{ border-color: var(--blue); }

.product-card-image{
  aspect-ratio: 16 / 10;
  background: var(--bg-raised);
  overflow: hidden;
}
.product-card-image img{ width: 100%; height: 100%; object-fit: cover; }
.product-card-image-soon{
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-raised) 0 10px, var(--surface) 10px 20px);
}
.product-card-image-soon span{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase;
}

.product-card-body{ padding: 26px; }
.product-badge{
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--surface-line); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 14px;
}
.product-card-body h3{ font-size: 1.25rem; margin: 0 0 10px; }
.product-card-body p{ color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; }
.product-link{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
}
.product-card-soon{ opacity: 0.7; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about{ padding: 40px 0 100px; border-top: 1px solid var(--surface-line); }
.about-inner{ max-width: 760px; }
.about .section-sub{ margin-bottom: 0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer{ border-top: 1px solid var(--surface-line); padding: 48px 0 24px; }
.footer-inner{
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  align-items: center; padding-bottom: 28px;
}
.footer-tag{ margin: 8px 0 0; font-size: 0.85rem; color: var(--text-dim); }
.footer-social{ display: flex; gap: 20px; }
.footer-social a{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); transition: color 0.2s ease;
}
.footer-social a:hover{ color: var(--text); }
.footer-bottom{
  border-top: 1px solid var(--surface-line); padding-top: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top{
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--text); color: var(--bg); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: 40; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.7);
}
.back-to-top.visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ transform: translateY(-3px); }
@media (max-width: 900px){ .back-to-top{ right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible{ outline: 2px solid var(--yellow); outline-offset: 3px; }
