/* ============================================================
   RADIANT INNOVATECH — GLOBAL STYLESHEET
   Obsidian Design System · Dark Mode First
   ============================================================ */

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

:root {
  --onyx:           #080c10;
  --onyx2:          #0d1117;
  --onyx3:          #111820;
  --panel:          #141c26;
  --panel2:         #1a2436;
  --radiant:        #00aaff;
  --radiant-dim:    rgba(0,170,255,0.12);
  --radiant-border: rgba(0,170,255,0.22);
  --gold:           #e8b84b;
  --gold-dim:       rgba(232,184,75,0.1);
  --gold-border:    rgba(232,184,75,0.2);
  --white:          #f0f4f8;
  --muted:          #6b7c93;
  --border:         rgba(255,255,255,0.07);
  --text:           #c8d6e5;
  --green:          #4ade80;
  --nav-h:          70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--onyx);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: rgba(8,12,16,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,170,255,0.45));
}
.nav-brand-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.08em;
}
.nav-brand-text span { color: var(--radiant); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--radiant); transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--radiant); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--onyx); background: var(--radiant);
  border: none; padding: 10px 22px; border-radius: 3px;
  cursor: pointer; font-weight: 500; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s; white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 0 20px rgba(0,170,255,0.5); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* ── LAYOUT HELPERS ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 60px; }
.section-pad { padding: 100px 0; }
.page-top { padding-top: var(--nav-h); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--radiant); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--radiant); }

h2.sec-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: var(--white);
  letter-spacing: 0.04em; line-height: 1.1;
}
h2.sec-title .accent { color: var(--radiant); }

/* ── PAGE HERO BANNER (inner pages) ── */
.page-hero {
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(0,100,200,0.08) 0%, transparent 65%),
              var(--onyx2);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,170,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,170,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--radiant); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-tag::before { content: ''; width: 22px; height: 1px; background: var(--radiant); }
.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; color: var(--white);
  letter-spacing: 0.04em; line-height: 1.05;
  margin-bottom: 16px;
}
.page-hero h1 .accent { color: var(--radiant); }
.page-hero p {
  font-size: 1rem; line-height: 1.8;
  color: var(--muted); max-width: 600px; font-weight: 300;
}

/* ── TICKER ── */
.ticker {
  background: var(--panel);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 13px 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: tickerScroll 24s linear infinite;
}
.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 56px; flex-shrink: 0;
}
.ticker-sep { color: var(--radiant); font-size: 0.45rem; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CARDS / PANELS ── */
.obsidian-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.obsidian-card:hover {
  border-color: var(--radiant-border);
  box-shadow: 0 0 32px rgba(0,170,255,0.07);
  transform: translateY(-3px);
}
.obsidian-card.top-accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--radiant), transparent);
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--onyx); background: var(--radiant);
  border: none; padding: 13px 30px; border-radius: 3px;
  cursor: pointer; font-weight: 500; text-decoration: none; display: inline-block;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(0,170,255,0.5); transform: translateY(-2px); }

.btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--radiant); background: transparent;
  border: 1px solid var(--radiant-border); padding: 12px 30px; border-radius: 3px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: var(--radiant-dim); border-color: var(--radiant); }

.btn-gold {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--onyx); background: var(--gold);
  border: none; padding: 13px 30px; border-radius: 3px;
  cursor: pointer; font-weight: 500; text-decoration: none; display: inline-block;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-gold:hover { box-shadow: 0 0 24px rgba(232,184,75,0.4); transform: translateY(-2px); }

/* ── FORM FIELDS ── */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.fld input, .fld select, .fld textarea {
  background: var(--onyx2); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 14px; font-family: 'Inter', sans-serif;
  font-size: 0.9rem; color: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; resize: none; -webkit-appearance: none;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  border-color: var(--radiant); box-shadow: 0 0 0 2px rgba(0,170,255,0.1);
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--muted); opacity: 0.5; }
.fld select option { background: var(--panel); }
.fld textarea { height: 110px; }

/* ── FOOTER ── */
footer { background: var(--onyx2); border-top: 1px solid var(--border); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding: 60px; max-width: 1280px; margin: 0 auto;
}
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-img {
  width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,170,255,0.4));
}
.footer-brand-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: 0.08em;
}
.footer-brand-text span { color: var(--radiant); }
.footer-brand p {
  font-size: 0.85rem; line-height: 1.75; color: var(--muted);
  font-weight: 300; max-width: 240px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.85rem; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--radiant); }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 60px;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.2);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.2);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--radiant); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ── TERMINAL WIDGET ── */
.terminal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.terminal-bar {
  background: var(--panel2); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; } .t-dot.y { background: #febc2e; } .t-dot.g { background: #28c840; }
.t-path {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  color: var(--muted); margin-left: 8px;
}
.terminal-body {
  padding: 24px 28px; font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; line-height: 2;
}
.t-prompt { color: var(--radiant); }
.t-cmd { color: var(--white); }
.t-out { color: var(--muted); padding-left: 16px; display: block; }
.t-out.green { color: var(--green); }
.t-out.gold  { color: var(--gold); }
.t-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--radiant); animation: blink 1s step-end infinite; vertical-align: middle;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  nav { padding: 0 32px; }
  .footer-top { padding: 48px 32px; grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 20px 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--onyx2); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 0; font-size: 0.75rem; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .container { padding: 0 20px; }
  .section-pad { padding: 70px 0; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 20px; gap: 32px; }
  .footer-bottom { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
}
