/* public/assets/css/style.css */

:root {
  /* Core Palette */
  --bg: #030406;
  --bg2: #0a0c12;
  --fg: #ffffff;

  /* Accents */
  --accent-cyan: #22d3ee;
  /* Cyan-400 */
  --accent-green: #4ade80;
  /* Green-400 */

  /* Functional Colors */
  --text-main: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.45);

  /* Glass / Surfaces */
  --glass-surface: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);

  /* Dimensions & Effects */
  --max-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --glow-shadow: 0 0 40px -10px rgba(34, 211, 238, 0.15);

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, ui-sans-serif, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --fg: #0f172a;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --glass-surface: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(0, 0, 0, 0.04);

  --accent-cyan: #0284c7;
  --accent-green: #16a34a;
  --glow-shadow: 0 0 30px -10px rgba(2, 132, 199, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Layout */
.container {
  width: min(var(--max-w), 100% - 48px);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-top: 16px;
}

.header-inner {
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  /* Floating pill header */
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .header-inner {
  background: rgba(255, 255, 255, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-main);
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-cyan);
  transition: all 0.2s ease;
  cursor: pointer;
}

.button:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.2);
}

.button-ghost {
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-main);
}

.button-ghost:hover {
  background: var(--glass-surface);
  border-color: var(--text-muted);
  box-shadow: none;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-button:hover {
  background: var(--glass-surface);
  color: var(--text-main);
}

.menu-button {
  display: none;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.eyebrow-text {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.1;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-bullets {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-bullets li::before {
  content: "→";
  color: var(--accent-cyan);
}

/* Hero Diagram / Cards */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-concept {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
}

.muted {
  color: var(--text-dim);
  font-size: 13px;
}

/* Updates to SVG */
.diagram {
  width: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--glass-border);
}

:root[data-theme="light"] .diagram {
  background: linear-gradient(135deg, #f8fafc, #edf1f5);
  border-color: rgba(0, 0, 0, 0.06);
}

.node {
  fill: var(--glass-surface);
  stroke: var(--glass-border);
}

:root[data-theme="light"] .node {
  fill: #ffffff;
  stroke: rgba(0, 0, 0, 0.08);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.03));
}

.node-strong {
  fill: rgba(34, 211, 238, 0.05);
  stroke: rgba(34, 211, 238, 0.3);
}

:root[data-theme="light"] .node-strong {
  fill: #f0f9ff;
  stroke: rgba(2, 132, 199, 0.2);
}

.node-title {
  font-family: var(--font-display);
  fill: var(--text-main);
  font-weight: 700;
  font-size: 20px;
}

.node-sub {
  font-family: var(--font-sans);
  fill: var(--text-muted);
  font-size: 14px;
}

.arrow {
  stroke: var(--text-dim);
}

.arrow-head {
  fill: var(--text-dim);
}

.card-footer {
  margin-top: 20px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini {
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

:root[data-theme="light"] .mini {
  background: rgba(0, 0, 0, 0.02);
}

.mini-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.mini-sub {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

/* Modal */
.modal {
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.modal-inner {
  position: relative;
  width: min(90vw, 1000px);
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.modal[open] {
  display: flex;
}

.icon-sm {
  width: 28px;
  height: 28px;
  padding: 4px;
}

/* Sections */
.section {
  padding: 32px 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.01), transparent);
  border-top: 1px solid var(--glass-border);
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
}

/* Interactive Cards */
.card-box {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  height: 100%;
}

.card-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.card-box h3 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.card-box p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Grid Utils */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 24px;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: var(--radius-md);
}

.step-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
}

/* Links Section */
.link-box {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  cursor: pointer;
}

.link-icon {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.link-box:hover .link-icon {
  background: var(--accent-cyan);
  color: var(--bg);
}

.link-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.link-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.link-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.link-box:hover .link-arrow {
  transform: translateX(4px);
  color: var(--accent-cyan);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
  color: var(--text-dim);
}

/* System Log Component */
.terminal-log {
  background: #0a0c12;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: 'SF Mono', 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.log-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.log-entry {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.log-time {
  color: var(--text-dim);
  min-width: 80px;
}

.log-content {
  color: var(--text-main);
}

.log-type {
  font-weight: bold;
  margin-right: 8px;
}

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

.type-route {
  color: var(--accent-green);
}

.type-action {
  color: #f472b6;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-sep {
  color: var(--glass-border);
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding-top: 40px;
    /* Reduced from 100px for mobile */
  }

  /* Header adjustments */
  .header-cta .button {
    display: none;
  }

  .nav {
    display: none;
  }

  /* Mobile Nav Drawer */
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    margin-top: 8px;
    background: var(--bg2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }

  .mobile-nav-inner .nav-link {
    display: block;
    padding: 12px;
    border-radius: 8px;
  }

  .mobile-nav-inner .nav-link:hover {
    background: var(--glass-surface);
  }

  .mobile-nav-inner .button {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .menu-button {
    display: flex;
    border: none;
    background: transparent;
    color: var(--text-main);
    padding: 8px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    margin-top: 24px;
    text-align: left;
  }

  .hero-bullets li {
    display: block;
    /* Back to block/flow layout */
    position: relative;
    padding-left: 24px;
    /* Space for the bullet */
    line-height: 1.6;
  }

  .hero-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-cyan);
    font-weight: bold;
    line-height: inherit;
  }

  /* Footer Mobile */
  .footer-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}