:root {
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, monospace;
  --transition: 0.28s ease;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.16);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at 10% 10%, #e8f0ff 0%, #f7f8fb 40%, #edf1ff 100%);
  color: #0f172a;
  line-height: 1.65;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
}

body[data-theme="dark"] {
  background: radial-gradient(circle at 10% 10%, #0b1220 0%, #0f172a 45%, #020617 100%);
  color: #e2e8f0;
}

body[data-theme="dark"] .site-header,
body[data-theme="dark"] .site-footer {
  background: rgba(2, 6, 23, 0.82);
  border-color: rgba(148, 163, 184, 0.2);
}

body[data-theme="dark"] .nav-links a,
body[data-theme="dark"] .brand-role {
  color: rgba(226, 232, 240, 0.72);
}

body[data-theme="dark"] .brand-mark {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.brand-mark img {
  border-radius: 50%;
}

body[data-theme="dark"] .button.primary {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #f8fafc;
}

body[data-theme="dark"] .button.secondary {
  background: rgba(148, 163, 184, 0.08);
  color: #bae6fd;
  border-color: rgba(148, 163, 184, 0.28);
}

body[data-theme="dark"] .demo-card,
body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .leadership-card,
body[data-theme="dark"] .experience-card,
body[data-theme="dark"] .ai-card,
body[data-theme="dark"] .article-card,
body[data-theme="dark"] .spotlight-card,
body[data-theme="dark"] .contact.contact-simple {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.42);
}

body[data-theme="dark"] .playground-controls,
body[data-theme="dark"] .playground-preview {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.56);
}

body[data-theme="dark"] .experience-company {
  color: rgba(191, 219, 254, 0.72);
}

body[data-theme="dark"] .experience-tech {
  color: rgba(125, 211, 252, 0.85);
}

body[data-theme="dark"] .contact-meta span {
  color: rgba(191, 219, 254, 0.88);
}

body[data-theme="dark"] .metric-card {
  background: rgba(30, 41, 59, 0.9);
  color: #e0f2fe;
}

body[data-theme="dark"] .section-header p,
body[data-theme="dark"] .demo-copy,
body[data-theme="dark"] .leadership-card p,
body[data-theme="dark"] .leadership-card li,
body[data-theme="dark"] .experience-summary,
body[data-theme="dark"] .experience-points li,
body[data-theme="dark"] .ai-card p,
body[data-theme="dark"] .spotlight-card p,
body[data-theme="dark"] .contact.contact-simple p,
body[data-theme="dark"] .contact-meta {
  color: rgba(226, 232, 240, 0.78);
}

body[data-theme="dark"] .architecture {
  background: rgba(15, 23, 42, 0.64);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .arch-node {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

body[data-theme="dark"] .playground-controls label {
  color: rgba(226, 232, 240, 0.82);
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

a {
  color: #1d4ed8;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

a:hover,
a:focus-visible {
  color: #1e40af;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 28px 100px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  transition: background var(--transition), border-color var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2em;
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand-role {
  font-size: 12px;
  color: rgba(30, 41, 59, 0.64);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 40px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
  flex-shrink: 0;
}

.theme-toggle {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);
  border-radius: 50%;
  box-shadow: inset -4px -4px 8px rgba(15, 23, 42, 0.16);
  transition: filter var(--transition), transform var(--transition);
}

body[data-theme="dark"] .theme-toggle-icon {
  filter: brightness(1.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  font-size: 14px;
  color: rgba(30, 41, 59, 0.7);
  padding: 10px 14px;
  border-radius: 999px;
  text-transform: capitalize;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: stretch;
}

.hero-body h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 14px 0 18px;
  line-height: 1.1;
}

.hero-body .lead {
  font-size: 18px;
  max-width: 560px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(30, 41, 59, 0.56);
}

.hero-metrics {
  margin: 32px 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.metric-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.metric-value {
  font-size: 20px;
  font-weight: 600;
}

.metric-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f8fafc;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.button.secondary {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.16);
}

.button.secondary:hover {
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.3);
  color: rgba(30, 41, 59, 0.7);
}

.button.ghost:hover {
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
}

.hero-side {
  display: flex;
  align-items: stretch;
}

.hero-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

.text-link {
  font-weight: 600;
  color: #2563eb;
}

.section {
  margin-top: 120px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}

.section-header p {
  font-size: 17px;
  color: rgba(30, 41, 59, 0.7);
  max-width: 520px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.demo-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(37, 99, 235, 0.8);
}

.demo-copy {
  margin: 0;
  color: rgba(30, 41, 59, 0.7);
}

#metricsChart {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
}

.metric-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.metric-legend .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.swatch-green { background: #22c55e; }
.swatch-blue { background: #38bdf8; }
.swatch-orange { background: #fb923c; }
.swatch-purple { background: #a855f7; }

.playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: stretch;
}

.playground-controls {
  display: grid;
  gap: 14px;
  font-size: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.playground-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.72);
}

.playground-controls input[type="color"] {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.36);
  padding: 0;
  cursor: pointer;
}

.playground-controls input[type="range"] {
  accent-color: #2563eb;
}

.checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.playground-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  width: 100%;
}

.playground-button {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
  transition: transform var(--transition), box-shadow var(--transition);
}

.playground-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.playground-code {
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.92);
  color: #e0f2fe;
  padding: 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  min-width: 220px;
  width: 100%;
}

.architecture {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}

.arch-layer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.arch-node {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px;
  background: rgba(240, 249, 255, 0.72);
  backdrop-filter: blur(12px);
}

.arch-node h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.arch-edge { background: rgba(37, 99, 235, 0.12); }
.arch-ci { background: rgba(14, 165, 233, 0.12); }
.arch-shell { background: rgba(14, 116, 144, 0.14); }
.arch-flags { background: rgba(99, 102, 241, 0.12); }
.arch-observability { background: rgba(236, 72, 153, 0.12); }

.architecture-notes {
  margin-top: 20px;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
}

.architecture-notes summary {
  cursor: pointer;
  font-weight: 600;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.leadership-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.leadership-card h3 {
  margin-top: 0;
}

.leadership-card ul {
  padding-left: 18px;
  margin: 16px 0 0;
  color: rgba(30, 41, 59, 0.7);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (min-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.experience-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.experience-header h3 {
  margin: 0;
  font-size: 22px;
}

.experience-company {
  margin: 6px 0 0;
  font-size: 15px;
  color: rgba(30, 41, 59, 0.66);
}

.experience-summary {
  margin: 0;
  color: rgba(30, 41, 59, 0.74);
}

.experience-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(30, 41, 59, 0.78);
}

.experience-tech {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.75);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.ai-card {
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.article-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.article-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(37, 99, 235, 0.7);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.spotlight-card {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact.contact-simple {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-meta {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(30, 41, 59, 0.72);
}

.contact-meta span {
  font-weight: 600;
  margin-right: 6px;
}

input,
textarea {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.4);
  border-color: rgba(37, 99, 235, 0.32);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.92);
  padding: 22px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    order: -1;
  }

  .playground {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.98);
    width: 100%;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-soft);
  }

  body[data-theme="dark"] .nav-links {
    background: rgba(2, 6, 23, 0.92);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .page {
    padding-top: 100px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 90px 18px 80px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
