/* ========================================================
   CK INSIGHTS IO (io.ckinsights.xyz)
   Inspired by Golku's Ultra-Modern Brutalist Design Language
   Built with Google Antigravity
   ======================================================== */

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

:root {
  color-scheme: dark;
  --flood: #FFCF33;         /* The iconic Golku high-voltage floodlight gold */
  --flood-glow: rgba(255, 207, 51, 0.25);
  --night: #0A1024;         /* Deep obsidian midnight */
  --night-darker: #060A18;
  --deep: #121A36;          /* Rich contrast card backdrop */
  --deep-hover: #192348;
  --rule: #232C4D;          /* Structural grid borders */
  --rule-light: rgba(255, 255, 255, 0.12);
  --text: #F2F4FA;          /* Pure crisp text */
  --haze: #9AA3C0;          /* Subdued atmospheric text */
  --accent-cyan: #00E5FF;
  --accent-green: #10B981;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(18px, 5vw, 64px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-color: var(--rule) var(--night);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.55 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::selection {
  background: var(--flood);
  color: var(--night);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

:focus-visible {
  outline: 3px solid var(--flood);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
}

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

.cond {
  font-stretch: 72%;
}

/* =========================================
   FLOODLIGHT HERO BANNER (Golku Signature)
   ========================================= */
.flood {
  background: var(--flood);
  color: var(--night);
  padding: clamp(24px, 4vw, 40px) 0 0;
  position: relative;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.mark-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--night);
}

.brand-badge {
  background: var(--night);
  color: var(--flood);
  font: 900 13px/1 'Archivo', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.brand-title {
  font: 900 clamp(20px, 2.5vw, 26px)/1 'Archivo', sans-serif;
  font-stretch: 75%;
  letter-spacing: -0.01em;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar nav a {
  font: 700 15px/1 'Archivo', sans-serif;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--night);
  transition: all 140ms var(--ease-out);
}

.bar nav a:not(.solid):hover {
  background: rgba(10, 16, 36, 0.08);
}

.bar nav a.solid {
  background: var(--night);
  color: var(--flood);
  font-weight: 800;
}

.bar nav a.solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 16, 36, 0.25);
}

.bar nav a.solid:active {
  transform: scale(0.97);
}

/* Hero Typography */
.hero {
  padding-top: clamp(16px, 3vw, 36px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 13px/1 'Archivo', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(10, 16, 36, 0.12);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-tag .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--night);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.4; }
}

h1 {
  font: 900 clamp(54px, 9vw, 126px)/0.88 'Archivo', sans-serif;
  font-stretch: 68%;
  letter-spacing: -0.02em;
  max-width: 13ch;
  text-wrap: balance;
  color: var(--night);
}

.lede {
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.45;
  max-width: 42ch;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--night);
  font-weight: 500;
}

.lede b {
  font-weight: 800;
}

/* The Lower-Third (The Scoreboard / Action bar) */
.third {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: clamp(28px, 3.2vw, 40px);
  max-width: 820px;
  animation: wipe 700ms var(--ease-out) 120ms backwards;
  box-shadow: 0 16px 36px -10px rgba(10, 16, 36, 0.35);
}

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.third .label {
  background: var(--night);
  color: var(--text);
  padding: 16px 20px;
  font: 800 14px/1.2 'Archivo', sans-serif;
  font-stretch: 85%;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.third .value {
  background: var(--deep);
  color: var(--flood);
  padding: 14px 22px;
  font: 900 clamp(20px, 3.2vw, 36px)/1 'Archivo', sans-serif;
  font-stretch: 72%;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  user-select: all;
  white-space: nowrap;
  font-family: 'JetBrains Mono', 'Archivo', monospace;
}

.third button {
  appearance: none;
  border: 0;
  background: var(--night);
  color: var(--flood);
  font: 800 15px/1 'Archivo', sans-serif;
  padding: 0 24px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background 140ms;
}

.third button:hover {
  background: #000000;
}

.third button:active {
  transform: scale(0.97);
}

.third button svg {
  width: 18px;
  height: 18px;
}

.after {
  margin-top: 16px;
  font-size: 16px;
  color: var(--night);
}

.after a {
  font-weight: 800;
  color: var(--night);
}

/* =========================================
   STAGE: BREAKING OUT INTO THE NIGHT
   ========================================= */
.stage {
  background: linear-gradient(var(--flood) 0 45%, var(--night) 45% 100%);
  padding-top: clamp(36px, 4vw, 56px);
}

.terminal-viewport {
  background: var(--night-darker);
  border: 2px solid var(--rule);
  border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.8),
    0 15px 30px -10px rgba(10, 16, 36, 0.6);
  overflow: hidden;
}

.terminal-header {
  background: var(--deep);
  border-bottom: 1px solid var(--rule);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-red { width: 12px; height: 12px; border-radius: 50%; background: #FF5F56; }
.dot-yellow { width: 12px; height: 12px; border-radius: 50%; background: #FFBD2E; }
.dot-green { width: 12px; height: 12px; border-radius: 50%; background: #27C93F; }

.terminal-title {
  font: 700 12px/1 'JetBrains Mono', monospace;
  color: var(--haze);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px/1 'JetBrains Mono', monospace;
  color: var(--flood);
}

.terminal-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flood);
  box-shadow: 0 0 8px var(--flood);
}

.terminal-body {
  padding: clamp(20px, 3vw, 36px);
  font: 400 clamp(13px, 1.4vw, 15px)/1.7 'JetBrains Mono', monospace;
  color: #D1D5DB;
  background: #050813;
}

.term-line {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.term-prompt {
  color: var(--flood);
  font-weight: 700;
  user-select: none;
}

.term-accent {
  color: var(--accent-cyan);
}

.term-success {
  color: var(--accent-green);
  font-weight: 600;
}

.term-highlight {
  color: #FFFFFF;
  font-weight: 600;
}

.term-dim {
  color: var(--haze);
}

.stage figcaption {
  color: var(--haze);
  font-size: 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stage figcaption a {
  color: var(--flood);
  font-weight: 700;
  text-decoration: none;
}

.stage figcaption a:hover {
  text-decoration: underline;
}

/* =========================================
   STANDARD SECTIONS
   ========================================= */
section {
  padding: clamp(72px, 9vw, 128px) 0 0;
}

h2 {
  font: 900 clamp(38px, 6vw, 82px)/0.92 'Archivo', sans-serif;
  font-stretch: 70%;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
}

.intro {
  color: var(--haze);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 54ch;
  margin-top: 20px;
  line-height: 1.5;
}

.intro b {
  color: var(--text);
  font-weight: 700;
}

/* =========================================
   STEPS SEQUENCE (Golku Style Scoreboard)
   ========================================= */
ol.steps {
  list-style: none;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}

ol.steps li {
  display: grid;
  grid-template-columns: clamp(60px, 8vw, 110px) 1fr;
  gap: 0 clamp(16px, 3vw, 44px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
}

.n {
  font: 900 clamp(48px, 7vw, 92px)/0.8 'Archivo', sans-serif;
  font-stretch: 62%;
  color: var(--flood);
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
}

ol.steps h3 {
  font: 800 clamp(22px, 2.6vw, 32px)/1.1 'Archivo', sans-serif;
  font-stretch: 78%;
}

ol.steps p {
  color: var(--haze);
  max-width: 64ch;
  margin-top: 10px;
  line-height: 1.6;
}

ol.steps p b {
  color: var(--text);
  font-weight: 600;
}

/* =========================================
   CURRENT PIPELINE / TRANSPARENT DOCK
   (Zero fake apps, pure engineering truth)
   ========================================= */
.dock-card {
  background: var(--deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.dock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--flood);
}

.dock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 207, 51, 0.12);
  border: 1px solid rgba(255, 207, 51, 0.3);
  color: var(--flood);
  padding: 6px 14px;
  border-radius: 4px;
  font: 800 12px/1 'Archivo', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dock-card h3 {
  font: 800 clamp(26px, 3.2vw, 42px)/1.05 'Archivo', sans-serif;
  font-stretch: 78%;
  margin-bottom: 16px;
}

.dock-card p {
  color: var(--haze);
  font-size: 18px;
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 28px;
}

.dock-card p b {
  color: var(--text);
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}

.dock-spec {
  background: var(--night);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 20px;
}

.dock-spec-label {
  font: 700 11px/1 'JetBrains Mono', monospace;
  color: var(--haze);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.dock-spec-val {
  font: 700 16px/1.2 'Archivo', sans-serif;
  color: var(--text);
}

/* =========================================
   WHY SECTION (Feature Grid)
   ========================================= */
ul.why {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(40px, 5vw, 64px);
}

ul.why li {
  background: var(--deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  transition: all 180ms var(--ease-out);
}

ul.why li:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 207, 51, 0.4);
  background: var(--deep-hover);
}

ul.why h3 {
  font: 800 clamp(20px, 2.4vw, 26px)/1.1 'Archivo', sans-serif;
  font-stretch: 80%;
  margin-bottom: 12px;
}

ul.why p {
  color: var(--haze);
  font-size: 16px;
  line-height: 1.6;
}

ul.why p b {
  color: var(--text);
  font-weight: 600;
}

/* =========================================
   FAQ ACCORDION (Golku Native Details)
   ========================================= */
.faq {
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

details {
  border-bottom: 1px solid var(--rule);
  padding: clamp(20px, 2.6vw, 30px) 0;
  transition: background 140ms;
}

summary {
  font: 800 clamp(19px, 2.4vw, 26px)/1.2 'Archivo', sans-serif;
  font-stretch: 80%;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font: 800 28px/1 'Archivo', sans-serif;
  color: var(--flood);
  flex-shrink: 0;
  transition: transform 180ms var(--ease-out);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  color: var(--haze);
  font-size: 17px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 68ch;
}

details p b {
  color: var(--text);
  font-weight: 600;
}

details p a {
  color: var(--flood);
  font-weight: 700;
}

/* =========================================
   BOTTOM FLOOD (Close Banner)
   ========================================= */
.flood.close {
  margin-top: clamp(80px, 11vw, 140px);
  padding: clamp(60px, 8vw, 100px) 0;
}

.flood.close .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.flood.close h2 {
  color: var(--night);
}

.flood.close p {
  color: var(--night);
  font-size: clamp(17px, 1.8vw, 21px);
  max-width: 44ch;
  margin-top: 14px;
  line-height: 1.45;
}

.flood.close .btn {
  background: var(--night);
  color: var(--flood);
  font: 800 18px/1 'Archivo', sans-serif;
  padding: 20px 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 140ms var(--ease-out), box-shadow 140ms;
}

.flood.close .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(10, 16, 36, 0.35);
}

.flood.close .btn:active {
  transform: scale(0.97);
}

.flood.close .btn svg {
  width: 20px;
  height: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--night-darker);
  border-top: 1px solid var(--rule);
  padding: 60px 0 40px;
  font-size: 15px;
  color: var(--haze);
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer nav a {
  color: var(--haze);
  text-decoration: none;
  font-weight: 600;
  transition: color 140ms;
}

footer nav a:hover {
  color: var(--flood);
}

footer .fine {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 78ch;
  color: #64748B;
}

footer .copy {
  margin-top: 12px;
  font-size: 13px;
  color: #64748B;
}

/* Responsive */
@media (max-width: 768px) {
  .third {
    flex-direction: column;
  }
  .third button {
    justify-content: center;
  }
  .flood.close .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  ol.steps li {
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
  }
}
