@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ════════════════════════════════════════════════════════════
   SYNTROPY SYSTEMS — DESIGN SYSTEM v3.0
   Theme: VOID LATTICE — Obsidian × Electric Amber × Void Blue
   Typography: Space Grotesk + Space Mono + Syne
════════════════════════════════════════════════════════════ */

:root {
  /* ── CORE PALETTE — Pure Deep Dark ── */
  --void:       #0D3D31;   /* deep obsidian midnight */
  --void2:      #0D3D31;   /* card/panel base — pure dark */
  --void3:      #194D40;   /* elevated surfaces — dark gray */

  /* ── BRAND ACCENTS ── */
  --amber:      #00D4FF;   /* primary — electric amber */
  --amber2:     #00FFC2;   /* bright amber shimmer */
  --amber-glow: rgba(0, 212, 255, 0.18);
  --plasma:     #8B5CF6;   /* vivid violet */
  --plasma2:    #C4B5FD;   /* soft violet shimmer */
  --ice:        #00D4FF;   /* ice cyan */
  --ice2:       #00FFC2;   /* light ice */
  --ember:      #FF6B00;   /* warm ember orange */
  --flux:       #00FF55;   /* flux emerald */
  --rose:       #FF006E;   /* vivid rose accent */

  /* ── TEXT ── */
  --text-0:     #FFFFFF;   /* headings — warm white */
  --text-1:     #B4C6C0;   /* body — warm light */
  --text-2:     #94ACA4;   /* secondary — stone */
  --text-3:     #7FA39A;   /* muted — dark stone */

  /* ── UI CHROME ── */
  --border:      rgba(0, 212, 255, 0.28);
  --border-lt:   rgba(0, 212, 255, 0.10);
  --border-ice:  rgba(0, 212, 255, 0.22);
  --glow-amber:  0 0 48px rgba(0, 212, 255, 0.35);
  --glow-plasma: 0 0 48px rgba(139, 92, 246, 0.35);
  --glow-ice:    0 0 48px rgba(0, 212, 255, 0.35);

  /* ── SHADOWS ── */
  --shadow-sm:  0 2px 20px rgba(0,0,0,0.55);
  --shadow-md:  0 8px 40px rgba(0,0,0,0.65);
  --shadow-lg:  0 20px 80px rgba(0,0,0,0.75);
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 75% 55% at 10% 5%,  rgba(0, 212, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(255, 107, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 90%, rgba(0, 255, 85, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 20% 85%, rgba(0, 212, 255,  0.10) 0%, transparent 55%),
    linear-gradient(140deg, #0D3D31 0%, #0D3D31 45%, #0D3D31 80%, #0D3D31 100%);
  background-attachment: fixed;
  color: var(--text-1);
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY HIERARCHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.mono, code, .label-mono {
  font-family: 'Orbitron', monospace;
  font-size: 0.85em;
}

/* ── FONT VARIABLES ── */
:root {
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body:    'Rajdhani', system-ui, sans-serif;
  --font-mono:    'Orbitron', monospace;
}


/* ── GRADIENT TEXT ── */
.grad-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber2) 50%, var(--ember) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-void {
  background: linear-gradient(135deg, var(--ice) 0%, var(--plasma2) 50%, var(--amber) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-ice {
  background: linear-gradient(135deg, var(--ice) 0%, var(--ice2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── EYEBROW LABEL ── */
.eyebrow {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.eyebrow.ice { color: var(--ice); }
.eyebrow.ice::before { background: linear-gradient(90deg, transparent, var(--ice)); }
.eyebrow.plasma { color: var(--plasma2); }
.eyebrow.plasma::before { background: linear-gradient(90deg, transparent, var(--plasma2)); }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: 94%; max-width: 1340px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  padding: 14px 32px;
  border-radius: 16px;
  border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-md);
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logotype {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.15em;
  color: var(--text-0);
}
.nav-logotype span { color: var(--amber); }
.nav-sub {
  font-family: 'Orbitron', monospace;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--text-3);
  display: block;
  margin-top: -2px;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--amber);
  background: var(--amber-glow);
}

/* ── FLOATING RETURN TAB ── */
.float-return {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1100;
}
.float-return a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  background: rgba(12, 46, 40, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: 50px;
  color: var(--amber);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 6px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(0, 212, 255,0.12);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}
.float-return a i {
  font-size: 14px;
  line-height: 1;
}
.float-return a:hover {
  background: var(--amber);
  color: var(--void);
  box-shadow: 0 10px 36px rgba(0, 212, 255,0.5);
  transform: translateY(-3px);
  border-color: var(--amber);
}

/* ── CANVAS BACKGROUND ── */
#void-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* z-stacking */
nav, main, .page-body, header, section, footer {
  position: relative; z-index: 1;
}

/* ── DIVIDER LINE ── */
.hr-void {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative; overflow: hidden;
}
.hr-void::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: scanline 4s infinite linear;
}
@keyframes scanline { to { left: 200%; } }

/* ── GLASS CARD ── */
.v-card {
  background: var(--amber-glow);
  border: 1px solid var(--border-lt);
  border-radius: 18px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}
.v-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md), var(--glow-amber);
  transform: translateY(-6px);
}
.v-card.ice {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--border-ice);
}
.v-card.ice:hover { box-shadow: var(--shadow-md), var(--glow-ice); }
.v-card.plasma {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.18);
}
.v-card.plasma:hover { box-shadow: var(--shadow-md), var(--glow-plasma); }

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 24px;
  opacity: 0.75;
  transition: opacity 0.4s ease, transform 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.v-card:hover .card-img,
.pipe-card:hover .card-img,
.pillar-card:hover .card-img {
  opacity: 1;
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 10px; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-amber {
  background: var(--amber);
  color: var(--void);
  box-shadow: 0 4px 20px rgba(0, 212, 255,0.35);
}
.btn-amber:hover {
  background: var(--amber2);
  box-shadow: 0 8px 40px rgba(0, 212, 255,0.55);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--amber);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--amber);
  background: var(--amber-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  color: var(--text-0);
  background: rgba(255,255,255,0.08);
}

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-amber { color: var(--amber); border-color: rgba(0, 212, 255,0.3); background: rgba(0, 212, 255,0.06); }
.badge-ice   { color: var(--ice);   border-color: rgba(0, 212, 255,0.3);  background: rgba(0, 212, 255,0.06); }
.badge-plasma{ color: var(--plasma2); border-color: rgba(139, 92, 246,0.3); background: rgba(139, 92, 246,0.06); }
.badge-flux  { color: var(--flux);  border-color: rgba(0, 255, 85,0.3); background: rgba(0, 255, 85,0.06); }
.badge-ember { color: var(--ember); border-color: rgba(255, 107, 0,0.3); background: rgba(255, 107, 0,0.06); }

/* ── SECTION COMMON ── */
.page-body { max-width: 1340px; margin: 0 auto; padding: 0 5%; }
.section { padding: 120px 5%; margin: 0 auto; max-width: 1340px; }
.section-hero { padding: 160px 5% 100px; max-width: 1340px; margin: 0 auto; }

/* ── SCROLL REVEAL ── */
/* Visible by default so a script failure can never blank the page.
   The reveal system hides these only after it is confirmed running. */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
html.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
html.reveal-ready [data-reveal="left"]  { transform: translateX(-24px); }
html.reveal-ready [data-reveal="right"] { transform: translateX(24px); }
html.reveal-ready [data-reveal="left"].revealed, html.reveal-ready [data-reveal="right"].revealed { transform: translateX(0); }

/* ── PROGRESS BAR ── */
.prog-track {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(0, 212, 255,0.5);
}

/* ── FOOTER ── */
.site-footer {
  background: #CCF3FC;
  border-top: 1px solid var(--border-lt);
  padding: 60px 5% 28px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr;
  gap: 50px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-sig {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--amber);
  margin-bottom: 12px;
}
.footer-tagline {
  font-family: 'Orbitron', monospace;
  font-size: 9px; letter-spacing: 0.2em;
  color: #94ACA4; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-about { font-size: 14px; color: var(--text-2); line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 12px; color: #94ACA4; font-family: 'Orbitron', monospace; }
.social-row { display: flex; gap: 12px; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a {
  color: #94ACA4; text-decoration: none;
  font-family: 'Orbitron', monospace; font-size: 12px;
  letter-spacing: 0.04em; transition: color 0.25s;
}
.footer-links a:hover { color: var(--amber); }
.s-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); text-decoration: none; font-size: 13px;
  transition: all 0.3s;
}
.s-icon:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-glow); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: clamp(32px, 8vw, 64px) !important; }
}

/* ── FORM INPUTS ── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-0);
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(0, 212, 255,0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

/* ── RESPONSIVE NAVIGATION (homepage) ── */
.nav-menu { display: none; position: relative; z-index: 1000; }
.nav-menu summary {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border-lt);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1); cursor: pointer;
  list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover,
.nav-menu[open] summary { color: var(--amber); border-color: var(--border); }
.nav-menu > .nav-links {
  position: absolute; top: calc(100% + 14px); right: 0;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 230px; padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  z-index: 1001;
  pointer-events: auto;
}
.nav-menu > .nav-links a { display: block; padding: 10px 14px; }
.nav-submenu { position: relative; }
.nav-submenu > details > summary { list-style: none; cursor: pointer; color: var(--text-1); padding: 8px 11px; border-radius: 7px; }
.nav-submenu > details > summary::-webkit-details-marker { display: none; }
.nav-submenu > details > summary::after { content: '⌄'; margin-left: 8px; color: var(--amber); }
.nav-submenu-list { display: none; list-style: none; margin: 6px 0 0; padding: 6px; }
.nav-submenu > details[open] > .nav-submenu-list { display: flex; flex-direction: column; gap: 3px; }
#main-nav > .nav-links > .nav-submenu > details > .nav-submenu-list { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; padding: 10px; border: 1px solid var(--border-lt); border-radius: 12px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
@media (max-width: 1180px) {
  #main-nav > .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-menu .nav-submenu-list { position: static !important; min-width: 0 !important; padding: 4px 0 0 10px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
}
@media (max-width: 700px) {
  .nav-menu > .nav-links { display: flex; }
  .nav-cta { display: none; }
}
