:root {
  /* Dark Canvas System */
  --bg: #010102;
  --bg-2: #080a0f;
  --panel: #0f1011;
  --panel-2: #141516;
  --panel-3: #18191a;
  
  /* Accents & Lines */
  --primary: #F55036;
  --primary-hover: #FF6A52;
  --primary-glow: rgba(245, 80, 54, 0.4);
  --teal: #4fd1c5;
  --violet: #a78bfa;
  --green: #5fd18b;
  --amber: #f4c46b;
  
  --line: #23252a;
  --line-strong: #34343a;
  
  /* Text */
  --text: #f7f8f8;
  --muted: #d0d6e0;
  --muted-2: #8a8f98;
  
  /* Fonts */
  --mono: 'JetBrains Mono', 'Menlo', 'SF Mono', monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  
  --maxw: 1200px;
}

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

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

a { color: inherit; text-decoration: none; }
::selection { background: var(--primary-glow); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
p { margin: 0; }

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

/* Abstract Field Background */
.field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(94,106,210,0.12), transparent 60%),
    radial-gradient(800px 600px at 10% 10%, rgba(79,209,197,0.08), transparent 62%),
    linear-gradient(var(--bg), var(--bg));
}
.field::after {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(1, 1, 2, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .eyebrow { color: var(--primary); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links a.hide-m { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: all .2s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-hover), var(--primary));
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 14px 0 rgba(245, 80, 54, 0.39);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 80, 54, 0.6);
}
.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-secondary:hover {
  background: var(--panel-3);
  border-color: var(--primary);
}

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
@keyframes pulseGlow { 0% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } 100% { opacity: 0.4; transform: scale(1); } }

/* Hero */
.hero { padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.status-pill {
  font-family: var(--mono); font-size: 12px; color: var(--primary);
  border: 1px solid rgba(245, 80, 54, 0.4); border-radius: 999px; padding: 4px 12px;
  background: rgba(245, 80, 54, 0.1); display: inline-block; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(42px, 5.5vw, 72px); font-weight: 700; letter-spacing: -2.5px; line-height: 1.05; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin-top: 24px; max-width: 44ch; line-height: 1.5; }
.hero-cta { display: flex; gap: 16px; margin-top: 40px; }
@media(max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; } .hero-cta { justify-content: center; } }

/* Credential Card Mockup */
.cred-wrapper { position: relative; animation: float 6s ease-in-out infinite; }
.cred-glow {
  position: absolute; width: 300px; height: 300px; right: -50px; top: -50px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--primary-glow), transparent); filter: blur(30px); animation: pulseGlow 4s ease-in-out infinite;
}
.cred {
  position: relative; border-radius: 20px; padding: 1px;
  background: linear-gradient(150deg, rgba(245, 80, 54, 0.5), rgba(79, 209, 197, 0.3), rgba(255,255,255,0.05));
  box-shadow: 0 40px 80px -20px rgba(0,0,0,1); z-index: 2;
}
.cred-inner {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: 19px; padding: 24px; overflow: hidden; backdrop-filter: blur(20px);
}
.cred-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cred-head .who { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); }
.chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
  border: 1px solid rgba(95,209,139,0.3); border-radius: 999px; padding: 3px 8px; background: rgba(95,209,139,0.1);
}
.ain { font-family: var(--mono); font-size: clamp(13px, 1.8vw, 17px); letter-spacing: 0.02em; word-break: break-all; margin-bottom: 16px; }
.ain .k { color: var(--primary); } .ain .t { color: var(--teal); } .ain .e { color: #fff; } .ain .i { color: var(--amber); } .ain .h { color: var(--muted-2); }
.cred-foot {
  padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat { font-family: var(--mono); font-size: 10px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.stat b { color: var(--text); font-weight: 600; font-size: 11.5px; }
.stat .ok { color: var(--green); }

/* Sections */
section { padding: 96px 0; border-top: 1px solid rgba(255,255,255,0.03); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.sec-label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -1.5px; }
.sec-head p { color: var(--muted); margin-top: 20px; font-size: 18px; }

/* Grid Cards */
.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media(max-width: 900px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--primary-glow); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 80, 54, 0.06), transparent 40%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); margin-bottom: 24px; color: var(--primary);
}
.card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Terminal Mockup */
.terminal {
  background: #010102; border: 1px solid var(--line-strong); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.6); margin-top: 32px;
}
.term-header {
  background: var(--panel-2); padding: 12px 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; } .term-dot.y { background: #ffbd2e; } .term-dot.g { background: #27c93f; }
.term-body { padding: 32px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--muted); overflow-x: auto; }
.term-body .cmd { color: #fff; } .term-body .arg { color: var(--teal); } .term-body .ok { color: var(--green); } .term-body .highlight { color: var(--primary); }
.typed-out { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--primary); animation: typing 2s steps(40, end), blink .75s step-end infinite; }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { from, to { border-color: transparent } 50% { border-color: var(--primary); } }

/* Slider Section */
.slider-container { position: relative; overflow: hidden; margin-top: 48px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-2); }
.slider-nav { display: flex; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.slider-tab { flex: 1; padding: 20px; text-align: center; font-weight: 600; cursor: pointer; transition: 0.3s; color: var(--muted-2); }
.slider-tab:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.slider-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); background: rgba(245, 80, 54, 0.05); }
.slider-content { position: relative; height: 400px; }
.slide { position: absolute; inset: 0; padding: 48px; display: flex; align-items: center; gap: 48px; opacity: 0; transform: translateX(20px); transition: 0.5s ease; pointer-events: none; }
.slide.active { opacity: 1; transform: translateX(0); pointer-events: all; }
.slide-text { flex: 1; }
.slide-text h3 { font-size: 32px; margin-bottom: 16px; color: var(--text); }
.slide-text p { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.slide-visual { flex: 1; display: flex; justify-content: center; }
@media(max-width: 900px) { .slide { flex-direction: column; padding: 32px; text-align: center; } .slider-content { height: auto; min-height: 500px; } .slider-nav { flex-direction: column; } }

/* Graphic Ornaments */
.cube-loader { width: 100px; height: 100px; position: relative; perspective: 1000px; margin: 0 auto; }
.cube { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; animation: rotateCube 10s infinite linear; }
.face { position: absolute; width: 100%; height: 100%; border: 2px solid var(--primary); background: rgba(245, 80, 54, 0.1); box-shadow: inset 0 0 20px rgba(245, 80, 54, 0.2); }
.front { transform: translateZ(50px); } .back { transform: rotateY(180deg) translateZ(50px); }
.right { transform: rotateY(90deg) translateZ(50px); } .left { transform: rotateY(-90deg) translateZ(50px); }
.top { transform: rotateX(90deg) translateZ(50px); } .bottom { transform: rotateX(-90deg) translateZ(50px); }
@keyframes rotateCube { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(360deg) rotateY(360deg); } }

/* CTA Banner */
.cta-banner {
  margin-top: 64px; background: radial-gradient(circle at center, rgba(245, 80, 54, 0.15) 0%, var(--panel) 100%);
  border: 1px solid var(--line-strong); border-radius: 24px; padding: 80px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 80px 0 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand p { color: var(--muted); margin-top: 16px; font-size: 15px; max-width: 300px; }
.foot-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 24px; }
.foot-col a { display: block; color: var(--muted-2); margin-bottom: 12px; font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: var(--primary); }
.foot-base { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
@media(max-width: 900px) { .foot-grid { grid-template-columns: 1fr; } .foot-base { flex-direction: column; gap: 16px; text-align: center; } }
