/* styles.css */

:root {
  color-scheme: light dark;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --bg: #0b0f14;
  --bg-elev: #121822;
  --bg-soft: #18202c;
  --text: #f4f7fb;
  --text-muted: #a9b3c2;
  --accent: #63f5d3;
  --accent-strong: #23d6b5;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #edf1f7;
  --text: #0f141c;
  --text-muted: #465262;
  --accent: #1a6ddc;
  --accent-strong: #0d56b3;
  --border: rgba(15, 20, 28, 0.1);
  --shadow: 0 20px 50px rgba(15, 20, 28, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

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

a:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* A11y helpers */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite;
}

.orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 245, 211, 0.5), rgba(99, 245, 211, 0));
  top: -180px;
  right: -140px;
}

.orb-b {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(99, 131, 245, 0.55), rgba(99, 131, 245, 0));
  bottom: -180px;
  left: -120px;
  animation-delay: -6s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), transparent 65%);
  opacity: 0.7;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 8vw 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  z-index: 10;
}

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

.sig {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

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

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.toggle-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toggle-track {
  width: 42px;
  height: 22px;
  background: var(--bg-soft);
  border-radius: 999px;
  position: relative;
  border: 1px solid var(--border);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.25s ease;
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(20px);
}

.toggle-state {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Main layout */
main {
  padding: 64px 8vw 80px;
  display: grid;
  gap: 120px;
}

/* HERO LAYOUT (your requested change) */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Make hero-copy span full width, then put panel below */
.hero-copy {
  grid-column: 1 / -1;
}

.hero h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 78ch;
}

/* Cards side-by-side */
.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-elev);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.15rem;
  margin: 12px 0;
  line-height: 1.35;
}

.card-body {
  color: var(--text-muted);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  display: grid;
  gap: 32px;
}

.section-head h3 {
  font-size: 1.8rem;
}

.section-head p {
  color: var(--text-muted);
}

.split {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.list {
  display: grid;
  gap: 16px;
  padding-left: 18px;
}

.panel {
  background: var(--bg-elev);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.panel-value {
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.timeline-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  font-weight: 600;
}

.timeline-title span {
  color: var(--text-muted);
  font-weight: 400;
}

/* Footer */
.site-footer {
  padding: 40px 8vw 60px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(16px) scale(1.05);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 6vw 0;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  main {
    padding: 48px 6vw 80px;
    gap: 80px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    width: 100%;
    justify-content: space-between;
  }
}
