/* ============================================================
   VYRON — Brand Design System
   Autonomous API Infrastructure · Powered by Idle Protocol
   ============================================================ */

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

:root {
  /* ---- Core palette (derived from logo / cover) ---- */
  --bg:            #040705;
  --bg-2:          #070d09;
  --surface:       #0b1310;
  --surface-2:     #0f1a15;
  --surface-3:     #14241c;
  --line:          rgba(126, 217, 87, 0.12);
  --line-2:        rgba(126, 217, 87, 0.22);

  /* ---- Greens ---- */
  --lime:          #b6f24a;   /* bright top of gradient */
  --green:         #57d957;   /* mid */
  --green-deep:    #2fae46;   /* lower */
  --green-dark:    #1c7a32;
  --neon:          #7dff5a;   /* glow accent */

  /* ---- Text ---- */
  --text:          #e9f6ee;
  --text-2:        #a9c3b4;
  --text-3:        #6f8a7c;
  --text-dim:      #4d6358;

  /* ---- Gradients ---- */
  --grad-brand:    linear-gradient(135deg, #c4f24a 0%, #57d957 45%, #2fae46 100%);
  --grad-brand-v:  linear-gradient(180deg, #c4f24a 0%, #57d957 50%, #2fae46 100%);
  --grad-text:     linear-gradient(120deg, #d6f87a 0%, #6fe06a 55%, #2fae46 100%);
  --glow-green:    0 0 0 1px rgba(126,217,87,.2), 0 0 40px -8px rgba(87,217,87,.5);

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

  /* ---- Radii ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* ---- Layout ---- */
  --maxw: 1240px;
  --nav-h: 72px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(126,217,87,.3); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #1b3026; border-radius: 20px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #285238; }

/* ============================================================
   Typography helpers
   ============================================================ */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--green); display: inline-block;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 64px 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 13px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent; color: var(--text);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--grad-brand); color: #052b10;
  box-shadow: 0 8px 26px -10px rgba(87,217,87,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(87,217,87,.75); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(126,217,87,.03); }
.btn-ghost:hover { border-color: var(--green); background: rgba(126,217,87,.08); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 12px; }

/* ============================================================
   Cards / surfaces
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--line-2); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--green); background: rgba(126,217,87,.05);
}

/* ============================================================
   Header / Nav (shared)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(4,7,5,.55); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { background: rgba(4,7,5,.82); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--text-2);
  transition: color .2s ease; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.icon-x {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 9px; color: var(--text-2); transition: all .2s ease;
}
.icon-x:hover { color: var(--green); border-color: var(--green); background: rgba(126,217,87,.06); }
.icon-x svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); }

/* ============================================================
   Footer (shared)
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: 14px; max-width: 300px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 16px;
}
.footer-col a { display: block; color: var(--text-2); font-size: 14px; padding: 6px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.footer-bottom .socials { display: flex; gap: 12px; }

/* ============================================================
   Misc fx
   ============================================================ */
.grid-bg {
  background-image:
    linear-gradient(rgba(126,217,87,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,217,87,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.noise::after {
  content:""; position: absolute; inset: 0; pointer-events: none; opacity: .025; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 76px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .wrap { padding: 0 20px; }
}
