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

:root {
  --bg:            #0c0d0e;
  --bg-1:          #111315;
  --bg-2:          #181a1d;
  --bg-3:          #1f2124;
  --bg-4:          #26292d;
  --border:        rgba(255,255,255,0.055);
  --border-mid:    rgba(255,255,255,0.085);
  --border-hi:     rgba(255,255,255,0.13);
  --text:          #dfe2e6;
  --text-2:        #848a90;
  --text-3:        #4c5157;
  --text-4:        #30363c;
  --accent:        #e63946;
  --accent-lo:     rgba(230, 57, 70, 0.12);
  --accent-mid:    rgba(230, 57, 70, 0.22);
  --green:         #3ecf8e;
  --green-lo:      rgba(62, 207, 142, 0.1);
  --amber:         #f5a623;
  --amber-lo:      rgba(245, 166, 35, 0.1);
  --blue:          #6ea8fe;
  --blue-lo:       rgba(110, 168, 254, 0.1);
  --purple:        #a78bfa;
  --purple-lo:     rgba(167, 139, 250, 0.1);
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --nav-h:         54px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

::selection { background: var(--accent-lo); color: var(--text); }

a { color: inherit; text-decoration: none; }

/* ─────────────────────────────── UTILITY ─────────────────────────────── */
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.tag-green  { background: var(--green-lo);  color: var(--green);  border: 1px solid rgba(62,207,142,0.18);  }
.tag-red    { background: var(--accent-lo); color: var(--accent); border: 1px solid rgba(230,57,70,0.18);   }
.tag-amber  { background: var(--amber-lo);  color: var(--amber);  border: 1px solid rgba(245,166,35,0.18);  }
.tag-blue   { background: var(--blue-lo);   color: var(--blue);   border: 1px solid rgba(110,168,254,0.18); }
.tag-purple { background: var(--purple-lo); color: var(--purple); border: 1px solid rgba(167,139,250,0.18); }

/* ─────────────────────────────── NAV ─────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--nav-h);
  background: rgba(12, 13, 14, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

nav.scrolled {
  background: rgba(12,13,14,0.97) !important;
  box-shadow: 0 0 0 1px var(--border), 0 4px 32px rgba(0,0,0,0.55);
}

.nav-logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  z-index: 210;
  position: relative;
}
.nav-logo span { color: var(--accent); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-center a {
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.nav-center a:hover { color: var(--text); background: var(--bg-2); }
.nav-center a.active { color: var(--text); background: var(--bg-2); border: 1px solid var(--border-mid); padding: 0.375rem calc(0.75rem - 1px); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Hamburger ───────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 210;
  position: relative;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 18px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 18px; }

/* ── Mobile drawer ───────────────────────────────────────────────── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(12, 13, 14, 0.98);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-mobile-drawer.open {
  max-height: 500px;
  padding: 1rem 1rem 1.5rem;
}
.nav-mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1rem;
}
.nav-mobile-drawer li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-drawer li a:hover,
.nav-mobile-drawer li a.active {
  color: var(--text);
  background: var(--bg-2);
}
.nav-mobile-drawer li a .nav-icon {
  font-size: 0.8rem;
  width: 20px;
  text-align: center;
  opacity: 0.6;
}
.nav-mobile-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.nav-mobile-actions .btn { flex: 1; justify-content: center; }

/* ─────────────────────────────── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  border: none;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -0.01em;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(230,57,70,0);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
  background: #d02f3c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}
.btn-lg { padding: 0.65rem 1.5rem; font-size: 0.875rem; border-radius: var(--radius); }

/* ─────────────────────────────── ANIMATIONS ─────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(62,207,142,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(62,207,142,0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: page-fade-in 0.4s ease-out; }

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

@keyframes neon-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(62,207,142,0.5)); }
  50%       { filter: drop-shadow(0 0 12px rgba(62,207,142,0.9)) drop-shadow(0 0 20px rgba(62,207,142,0.4)); }
}
.ring-arc { animation: neon-pulse 2.5s ease-in-out infinite; }

@keyframes shimmer-sweep {
  0%   { background-position: -300% center; }
  100% { background-position: 300% center; }
}

/* ─────────────────────────────── SECTION WRAPPER ─────────────────────────────── */
.section-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.875rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  background: linear-gradient(90deg,
    #fff 0%, #fff 35%,
    rgba(230,57,70,0.85) 44%,
    rgba(167,139,250,0.8) 52%,
    #fff 60%, #fff 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 7s linear infinite;
}
.section-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* ─────────────────────────────── FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.625rem;
}
.footer-brand-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.footer-socials {
  display: flex;
  gap: 0.4rem;
}
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  transition: all 0.15s;
}
.soc:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-mid); }

.footer-col-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.82rem;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-3);
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-status::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

/* ─────────────────────────────── SCROLL REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.34,1.2,0.64,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* scroll progress bar removed */

/* ── Cursor glow ─────────────────────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(230,57,70,0.065) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}

/* ── Port card hover ─────────────────────────────────────────────────────── */
.port-card {
  transition: all 0.25s cubic-bezier(0.34,1.4,0.64,1);
}
.port-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--border-mid);
}

/* ── Why cells ───────────────────────────────────────────────────────────── */
.why-cell {
  transition: background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.why-cell:hover {
  background: var(--bg-1);
  box-shadow: inset 0 0 30px rgba(230,57,70,0.04);
}
.why-num { transition: color 0.2s ease, text-shadow 0.2s ease; }
.why-cell:hover .why-num { text-shadow: 0 0 12px rgba(230,57,70,0.6); }

/* ── Mini bar fill ───────────────────────────────────────────────────────── */
.mini-bar-fill { transition: width 1.4s cubic-bezier(0.4,0,0.2,1); }
.mini-bar-fill.bar-ready { width: 0; }
.mini-bar-fill.bar-animated { width: var(--bar-target); }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  transition: all 0.25s ease, transform 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* ─────────────────────────────── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .section-wrap { padding: 4rem 1.5rem; }
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .section-wrap { padding: 3.5rem 1.5rem; }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 50px; }
  nav {
    padding: 0 1rem;
  }
  .nav-center,
  .nav-right .btn-ghost,
  .nav-right .btn-primary {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile-drawer {
    display: block;
  }
  .nav-logo { font-size: 0.9rem; }
  .section-wrap { padding: 3rem 1.25rem; }
  .section-title { font-size: clamp(1.35rem, 3vw, 2rem); }
  .section-eyebrow { font-size: 0.62rem; margin-bottom: 0.75rem; }
  .btn-lg { padding: 0.55rem 1.2rem; font-size: 0.8rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 48px; }
  .section-wrap { padding: 2.5rem 1rem; max-width: 100%; }
  .section-title { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  .section-desc { font-size: 0.85rem; max-width: 100%; }
  .footer-top { gap: 1.5rem; }
  .footer-col ul { gap: 0.35rem; }
  .footer-col a { font-size: 0.75rem; }
  .footer-brand-desc { font-size: 0.7rem; max-width: 100%; }
}

@media (max-width: 480px) {
  nav { padding: 0 0.75rem; }
  .section-wrap { padding: 2rem 0.75rem; }
  .section-title { font-size: clamp(1.1rem, 5vw, 1.5rem); line-height: 1.2; }
  .section-eyebrow { font-size: 0.58rem; margin-bottom: 0.5rem; }
  .btn { padding: 0.35rem 0.75rem; font-size: 0.72rem; }
  .btn-lg { padding: 0.5rem 1rem; font-size: 0.78rem; }
}

@media (max-width: 360px) {
  .section-wrap { padding: 1.75rem 0.5rem; }
  .section-title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── SECTION TITLE: stronger, more readable gradient ────────────────── */
.section-title {
  /* Override: tighter letter-spacing at section level for polish */
  letter-spacing: -0.038em;
}

/* ── SECTION EYEBROW: monospace green for all pages ─────────────────── */
.section-eyebrow {
  color: var(--green);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

/* ── CTA TITLE line-height fix for short punchy copy ────────────────── */
.cta-title {
  line-height: 1.0;
}

/* ── FOOTER brand color ──────────────────────────────────────────────── */
.footer-brand-name {
  background: linear-gradient(90deg, #fff 0%, rgba(230,57,70,0.8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

