/* ============================================================
   Bluelight Inc. — Landing Page
   Premium dark-mode aesthetic · Electric blue + signal amber
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #0a0a0a;
  --bg-soft:   #0e0f12;
  --surface:   #121419;
  --surface-2: #16181f;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* Type */
  --text:      #f4f6fb;
  --text-soft: #b8bdc9;
  --text-mute: #7b8190;

  /* Brand */
  --blue:      #2f6bff;   /* logo royal blue   */
  --blue-2:    #007AFF;   /* brief electric    */
  --cyan:      #00D4FF;   /* highlight / glow  */
  --amber:     #ff6a1a;   /* logo signal orange*/

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.accent-blue  { color: var(--blue-2); }
.accent-cyan  { color: var(--cyan); }
.accent-amber { color: var(--amber); }
.hide-mobile  { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary {
  background: var(--blue-2); color: #fff;
  box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.5);
}
.btn-primary:hover {
  background: #1a8bff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(0, 122, 255, 0.7),
              0 0 0 1px rgba(0, 212, 255, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue-2);
  color: #fff;
  background: rgba(0, 122, 255, 0.08);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-dot { color: var(--blue-2); }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-soft);
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--blue-2);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 0 28px; overflow: hidden; max-height: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.mobile-menu.open { max-height: 420px; padding: 18px 28px 26px; }
.mobile-menu a { padding: 12px 0; font-weight: 500; color: var(--text-soft); border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { margin-top: 14px; border: none; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,122,255,0.18), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(0,212,255,0.14), transparent 36%),
    radial-gradient(circle at 65% 80%, rgba(255,106,26,0.10), transparent 40%);
  filter: blur(20px);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 30%, transparent 80%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.glow-blue { width: 520px; height: 520px; background: rgba(0,122,255,0.40);  top: -120px; left: -80px; animation: float1 14s var(--ease) infinite alternate; }
.glow-cyan { width: 420px; height: 420px; background: rgba(0,212,255,0.30);  top: 10%; right: -100px; animation: float2 16s var(--ease) infinite alternate; }
.glow-amber{ width: 380px; height: 380px; background: rgba(255,106,26,0.22); bottom: -120px; left: 35%; animation: float1 18s var(--ease) infinite alternate; }
@keyframes float1 { to { transform: translate(40px, 50px) scale(1.1); } }
@keyframes float2 { to { transform: translate(-50px, 30px) scale(1.05); } }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 940px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-soft);
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,0.03);
  margin-bottom: 30px;
}
.signal-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,212,255,0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft); max-width: 760px; margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 36px;
  margin-top: 64px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-num {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, #fff, #9bbcff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-mute); line-height: 1.4; text-align: center; }
.stat-divider { width: 1px; height: 44px; background: var(--border-2); }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-2); border-radius: 14px;
  z-index: 1; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 4px; background: var(--cyan);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { position: relative; padding: 120px 0; }
.section-head { max-width: 720px; margin: 0 auto 70px; text-align: center; }
.section-kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 16px;
}
.section-kicker.centered { display: block; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.section-lead { font-size: 1.12rem; color: var(--text-soft); line-height: 1.65; }

/* ============================================================
   FLYWHEEL
   ============================================================ */
.flywheel-section { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); border-top: 1px solid var(--border); }
.flywheel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }

.flywheel-visual {
  position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; width: 100%;
}
.orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--border-2); inset: 0; }
.orbit-outer { animation: spin 38s linear infinite; }
.orbit-inner { inset: 18%; border-style: solid; border-color: rgba(0,122,255,0.16); animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.flywheel-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 24px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px -10px rgba(0,122,255,0.5);
}
.flywheel-core img { width: 48px; height: 48px; object-fit: contain; }

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-2);
  font-weight: 600; font-size: 14px; text-align: center;
  backdrop-filter: blur(4px);
}
.node span { display: block; }
.node-digital  { top: 6%;  left: 50%; border-color: rgba(0,122,255,0.45);  color: #6ea8ff; box-shadow: 0 0 30px -8px rgba(0,122,255,0.6); }
.node-physical { top: 76%; left: 14%; border-color: rgba(255,106,26,0.45); color: #ff8c4d; box-shadow: 0 0 30px -8px rgba(255,106,26,0.5); }
.node-capital  { top: 76%; left: 86%; border-color: rgba(0,212,255,0.45);  color: #4de4ff; box-shadow: 0 0 30px -8px rgba(0,212,255,0.5); }

.flywheel-steps { display: flex; flex-direction: column; }
.flow-card {
  display: flex; gap: 22px; padding: 24px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); transition: all 0.3s var(--ease);
}
.flow-card:hover { border-color: var(--border-2); transform: translateX(6px); background: var(--surface-2); }
.flow-index { font-family: var(--font-mono); font-size: 14px; color: var(--cyan); padding-top: 4px; }
.flow-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.flow-role {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-2);
  padding: 3px 9px; border-radius: 6px; background: rgba(0,122,255,0.1);
}
.flow-role-amber { color: var(--amber); background: rgba(255,106,26,0.1); }
.flow-role-cyan  { color: var(--cyan);  background: rgba(0,212,255,0.1); }
.flow-body p { color: var(--text-soft); font-size: 0.98rem; }
.flow-connector { display: flex; justify-content: center; padding: 8px 0; }
.flow-connector span { width: 1px; height: 22px; background: linear-gradient(var(--border-2), transparent); }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  position: relative; overflow: hidden;
  padding: 36px 32px 40px;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-8px); border-color: var(--border-2); }
.pillar-glow {
  position: absolute; top: -80px; right: -80px; width: 220px; height: 220px;
  border-radius: 50%; filter: blur(70px); opacity: 0; transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.pillar:hover .pillar-glow { opacity: 0.6; }
.pillar-glow-amber { background: rgba(255,106,26,0.35); }
.pillar-glow-blue  { background: rgba(0,122,255,0.4); }
.pillar-glow-cyan  { background: rgba(0,212,255,0.32); }

.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; position: relative; }
.pillar-num { font-family: var(--font-mono); font-size: 14px; color: var(--text-mute); letter-spacing: 0.1em; }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--cyan);
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar:nth-child(1) .pillar-icon { color: var(--amber); }
.pillar:nth-child(2) .pillar-icon { color: #6ea8ff; }
.pillar:nth-child(3) .pillar-icon { color: var(--cyan); }

.pillar-title { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.25; position: relative; }
.pillar-tagline { font-size: 0.95rem; color: var(--cyan); font-weight: 500; margin-bottom: 16px; position: relative; }
.pillar:nth-child(1) .pillar-tagline { color: #ff8c4d; }
.pillar:nth-child(2) .pillar-tagline { color: #6ea8ff; }
.pillar-desc { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 22px; position: relative; }

.pillar-detail {
  position: relative; padding: 18px 18px 20px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.detail-label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute);
  margin-bottom: 8px;
}
.pillar-detail p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }
.pillar-detail strong { color: var(--text); font-weight: 600; }
.pillar-detail a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,212,255,0.4); }
.pillar-detail a:hover { text-decoration-color: var(--cyan); }

/* ============================================================
   THESIS
   ============================================================ */
.thesis-section {
  background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.thesis-bg { position: absolute; inset: 0; opacity: 0.5; }
.thesis-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; text-align: center; }
.thesis-quote {
  font-size: clamp(1.4rem, 3vw, 2.15rem); font-weight: 600;
  line-height: 1.45; letter-spacing: -0.02em; margin: 14px 0 30px;
  text-wrap: balance;
}
.thesis-attribution { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; color: var(--text-mute); text-transform: uppercase; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 100px 0 120px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 40px; border-radius: 28px;
  background: linear-gradient(150deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-2);
}
.cta-glow { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 480px; height: 480px; opacity: 0.4; }
.cta-title { position: relative; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.cta-sub { position: relative; color: var(--text-soft); font-size: 1.1rem; max-width: 560px; margin: 0 auto 34px; }
.cta-actions { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 50px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag { color: var(--text-mute); font-size: 0.95rem; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-soft); font-size: 0.95rem; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 28px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-mute);
}
.footer-domain { font-family: var(--font-mono); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .orbit, .signal-dot, .scroll-cue span { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .flywheel { grid-template-columns: 1fr; gap: 50px; }
  .flywheel-visual { max-width: 340px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hide-mobile { display: none; }
  .section { padding: 84px 0; }
  .hero { padding: 120px 0 80px; }
  .hero-stats { gap: 22px; }
  .stat-divider { display: none; }
  .stat { flex: 1 1 26%; }
  .cta-card { padding: 48px 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 440px) {
  .container { padding: 0 20px; }
  .btn { padding: 13px 22px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}
