/* AXIS Bootstrap LP — design tokens + base */

:root {
  /* Surface */
  --bg-0: #06070a;
  --bg-1: #0a0c12;
  --bg-2: #0f121a;
  --bg-3: #141823;

  /* Ink */
  --ink-0: #f7f8fb;
  --ink-1: #d6d9e1;
  --ink-2: #9ba0ad;
  --ink-3: #6c7180;
  --ink-4: #444956;

  /* Hairlines */
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Iridescent accents */
  --iris-violet: #a78bfa;
  --iris-blue:   #60a5fa;
  --iris-cyan:   #22d3ee;
  --iris-pink:   #f0abfc;

  /* Semantic */
  --ok:    #34d399;
  --warn:  #fbbf24;
  --err:   #f87171;

  /* Type */
  --ff-sans: "Geist", "Geist Sans", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ff-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Density */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 400px at 85% 5%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.4;
}

/* Type ramp */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--iris-violet));
}

.h-display {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink-0);
  margin: 0;
}
.h-section {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink-0);
  margin: 0;
  text-wrap: balance;
}
.h-card {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink-0);
  margin: 0;
}

.lead {
  font-family: var(--ff-sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

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

/* Iridescent gradient text */
.iris {
  background: linear-gradient(95deg, var(--iris-violet) 0%, var(--iris-blue) 45%, var(--iris-cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Containers */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 2;
}

.section {
  padding-block: var(--section-y);
  position: relative;
  z-index: 2;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 64ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Hairline divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  margin-block: 0;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 7, 10, 0.55);
  border-bottom: 1px solid var(--line-1);
}
.nav-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-0);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: conic-gradient(from 220deg, var(--iris-violet), var(--iris-blue), var(--iris-cyan), var(--iris-violet));
  position: relative;
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 0 20px rgba(167, 139, 250, 0.5);
}
.nav-logo-mark::after {
  content: "";
  position: absolute; inset: 4px;
  background: var(--bg-0);
  border-radius: 3px;
}
.nav-logo-mark::before {
  content: "";
  position: absolute; inset: 9px;
  background: linear-gradient(135deg, var(--iris-violet), var(--iris-cyan));
  border-radius: 1px;
  z-index: 1;
}
.nav-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: color 0.18s;
  font-family: var(--ff-mono);
  letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--ink-0); }

/* Lang toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--ff-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: default;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: inherit;
  font-size: inherit;
  transition: all 0.18s;
}
.lang-toggle button.is-active {
  background: var(--ink-0);
  color: var(--bg-0);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: var(--ff-mono);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-0);
  cursor: default;
  transition: all 0.2s;
  position: relative;
}
.btn:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-3); }

.btn-prim {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-0), var(--bg-0)) padding-box,
    linear-gradient(95deg, var(--iris-violet), var(--iris-blue), var(--iris-cyan)) border-box;
  box-shadow:
    0 0 0 1px transparent,
    0 8px 32px rgba(96, 165, 250, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.btn-prim::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(167, 139, 250, 0.10), rgba(96, 165, 250, 0.05), rgba(34, 211, 238, 0.10));
  pointer-events: none;
}
.btn-prim:hover {
  box-shadow:
    0 8px 40px rgba(96, 165, 250, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn .chevron {
  width: 14px; height: 14px;
  display: inline-block;
}

.copy-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-0), var(--bg-0)) padding-box,
    linear-gradient(95deg, var(--iris-violet), var(--iris-blue), var(--iris-cyan)) border-box;
  border-radius: 14px;
  padding: 0;
  font-family: var(--ff-mono);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(96, 165, 250, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.22s;
}
.copy-cmd:hover {
  box-shadow:
    0 10px 44px rgba(96, 165, 250, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
.copy-cmd-prompt {
  padding: 16px 8px 16px 18px;
  color: var(--iris-cyan);
  font-size: 14px;
  user-select: none;
}
.copy-cmd-text {
  padding: 16px 14px 16px 0;
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.copy-cmd-action {
  padding: 16px 18px;
  border-left: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.18s, background 0.18s;
}
.copy-cmd:hover .copy-cmd-action { color: var(--ink-0); background: rgba(255, 255, 255, 0.05); }
.copy-cmd.is-copied .copy-cmd-action { color: var(--ok); }

/* Card base */
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005)) padding-box;
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}
.card-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-n {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.card-tag {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* Tokens / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.02);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line-1);
  padding-block: 80px 56px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px 0;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}
.footer-col a:hover { color: var(--ink-0); }
.footer-legal {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Animations */
@keyframes irisShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.06); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.fade-up {
  animation: fade-up 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) backwards;
}

.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  background: currentColor;
  vertical-align: -0.13em;
  margin-left: 1px;
  animation: flash 1s steps(1, end) infinite;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .nav-left .nav-link { display: none; }
}
@media (max-width: 640px) {
  .copy-cmd { font-size: 12px; }
  .copy-cmd-prompt { padding-left: 14px; }
  .copy-cmd-action { padding-inline: 14px; }
  .nav-right { gap: 12px; }
  .nav-right .nav-link { display: none; }
}
