:root {
  --bg: #08111f;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --bg-soft-2: rgba(255, 255, 255, 0.06);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.72);
  --muted-2: rgba(244, 247, 251, 0.54);
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #79e2f2;
  --green: #8ff0c7;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

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

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
  z-index: -3;
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: -2;
}

.glow-1 {
  width: 340px;
  height: 340px;
  background: rgba(0, 255, 255, 0.12);
  top: -40px;
  left: -40px;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: rgba(88, 101, 242, 0.16);
  top: 120px;
  right: -60px;
}

.glow-3 {
  width: 280px;
  height: 280px;
  background: rgba(31, 203, 140, 0.12);
  bottom: 40px;
  left: 28%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 17, 31, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(121, 226, 242, 0.32), rgba(143, 240, 199, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  color: var(--muted-2);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  padding: 0.7rem;
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.section {
  padding: 5.6rem 0;
}

.section-last {
  padding-bottom: 6.5rem;
}

.hero {
  padding-top: 4.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.badge {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 240, 199, 0.22);
  background: rgba(143, 240, 199, 0.08);
  color: #c6ffe7;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.hero-text,
.section-head p,
.positioning-card p,
.contact-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-tags,
.pill-row,
.needs-list,
.positioning-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags span,
.pill-row span,
.needs-list span,
.positioning-points span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.2rem;
  border-radius: 18px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: #09111e;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  overflow: hidden;
}

.panel-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.95rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8ff0c7, #56d4a7);
  box-shadow: 0 0 18px rgba(143, 240, 199, 0.5);
}

.yaml-block {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.yaml-block span {
  color: #b7fae0;
}

.stats-grid,
.feature-grid,
.impact-grid,
.work-grid,
.stack-grid {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid,
.impact-grid,
.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.impact-card,
.work-card,
.stack-card,
.timeline-item,
.positioning-card,
.contact-card {
  padding: 1.6rem;
}

.stat-card h3,
.feature-card h3,
.work-card h3,
.stack-card h3,
.timeline-item h3,
.positioning-card h2,
.contact-card h2,
.dual-section h2 {
  margin-bottom: 0.85rem;
}

.stat-card p,
.feature-card p,
.work-card p,
.timeline-item li,
.work-card li,
.contact-links span,
.timeline-role,
.timeline-period,
.stat-card p,
.impact-card span,
.section-head p,
.positioning-card p,
.contact-card p {
  color: var(--muted);
}

.section-head {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.75rem;
}

.section-head.compact h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.left-aligned {
  margin-bottom: 1.4rem;
}

.muted-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.impact-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
  color: #c9f5ff;
}

.card-label {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(121, 226, 242, 0.2);
  background: rgba(121, 226, 242, 0.08);
  color: #c9f5ff;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.95rem;
}

.work-card ul,
.timeline-item ul,
.principles-list {
  margin: 1.1rem 0 0;
  padding-left: 1.15rem;
}

.work-card li,
.timeline-item li,
.principles-list li {
  margin: 0.55rem 0;
}

.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.principles-list li::marker {
  color: #8ff0c7;
}

.needs-list {
  gap: 0.8rem;
}

.timeline {
  display: grid;
  gap: 1.15rem;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.timeline-role {
  color: #c9f5ff;
  margin-bottom: 0;
}

.timeline-period {
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.positioning-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.contact-links {
  display: grid;
  gap: 1rem;
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  padding: 1.05rem 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.contact-links strong {
  display: block;
  margin-bottom: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .hero-grid,
  .positioning-card,
  .contact-card,
  .dual-grid,
  .work-grid,
  .feature-grid,
  .impact-grid,
  .stats-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(8, 17, 31, 0.95);
    border: 1px solid var(--line);
    border-radius: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .timeline-top,
  .footer-wrap {
    flex-direction: column;
  }

  .section {
    padding: 4.4rem 0;
  }

  .hero {
    padding-top: 3.2rem;
  }

  h1 {
    max-width: none;
  }
}
