:root {
  --bg: #0e1116;
  --card: #181c23;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(148,163,184,0.18);
  --accent: #38bdf8;
  --accent-2: #bae6fd;
  --max: 980px;
}

* { 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:
    radial-gradient(circle at top left, rgba(56,189,248,0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(148,163,184,0.09), transparent 28%),
    linear-gradient(180deg, #0e1116 0%, #11161d 52%, #0e1116 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

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

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(14,17,22,0.76);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(80px, 9vw, 105px);
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24,28,35,0.76);
}

.control-label {
  display: none;
}

.control-chip {
  padding: 0.45rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.control-chip:hover,
.control-chip:focus-visible {
  color: var(--text);
  border-color: rgba(56,189,248,0.28);
  transform: translateY(-1px);
}

.control-chip.is-active {
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(186,230,253,0.12));
  color: var(--text);
  border-color: rgba(56,189,248,0.34);
}

.hero {
  --hero-copy-height: 32rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 2rem;
  padding: 5.5rem 0 3rem;
}

.hero-copy {
  min-width: 0;
}

.hero-portrait-wrap {
  position: relative;
  justify-self: end;
  width: auto;
  height: min(var(--hero-copy-height), 32rem);
  max-width: min(100%, 360px);
  aspect-ratio: 4 / 5;
}

.hero-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: auto 8% -3% 8%;
  height: 20%;
  border-radius: 999px;
  background: rgba(56,189,248,0.18);
  filter: blur(28px);
  z-index: 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(24,28,35,0.82);
  box-shadow: 0 26px 60px rgba(0,0,0,0.28);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--accent);
  color: #0e1116;
  border-color: transparent;
}

.button.secondary {
  color: var(--accent-2);
  background: rgba(56,189,248,0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 2rem 0 4rem;
}

.card {
  grid-column: span 4;
  background: rgba(24,28,35,0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.3rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

section {
  padding: 1rem 0 4rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.section-text {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.panel {
  background: rgba(24,28,35,0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
}

.experience-shell {
  display: grid;
  gap: 1.2rem;
}

.experience-topbar {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 1rem;
}

.experience-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-heading {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.15;
}

.experience-summary {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.experience-current-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience-summary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.experience-current-title {
  color: var(--accent-2);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.experience-counter {
  min-width: 4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24,28,35,0.74);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.experience-stage {
  position: relative;
  padding-inline: 5.6rem;
}

.experience-stage-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 5.4rem;
  border: 1px solid rgba(56,189,248,0.16);
  border-radius: 1.55rem;
  background: rgba(24,28,35,0.9);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  transform: translateY(-50%);
}

.experience-stage-arrow:hover,
.experience-stage-arrow:focus-visible {
  border-color: rgba(56,189,248,0.32);
  background: rgba(24,28,35,0.98);
  box-shadow: 0 20px 44px rgba(0,0,0,0.3);
  color: var(--accent);
  transform: translateY(-50%) scale(1.04);
}

.experience-stage-arrow-left {
  left: 0;
}

.experience-stage-arrow-right {
  right: 0;
}

.experience-stage-chevron {
  display: block;
  width: 1.55rem;
  height: 2.5rem;
  background: currentColor;
  clip-path: polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%, 42% 50%);
}

.experience-stage-arrow-left .experience-stage-chevron {
  transform: rotate(180deg);
}

.experience-panels {
  position: relative;
}

.experience-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.3rem;
}

.experience-dot {
  width: 0.78rem;
  height: 0.78rem;
  padding: 0;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 999px;
  background: rgba(148,163,184,0.18);
  cursor: pointer;
  transition: width 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.experience-dot:hover,
.experience-dot:focus-visible {
  border-color: rgba(56,189,248,0.42);
  background: rgba(56,189,248,0.22);
  transform: translateY(-1px);
}

.experience-dot.is-active {
  width: 2.6rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.92), rgba(186,230,253,0.76));
  border-color: transparent;
}

.experience-panel {
  display: grid;
  gap: 1rem;
  animation: experience-fade 220ms ease;
}

.experience-panel[hidden],
.experience-story[hidden] {
  display: none;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.experience-label {
  margin: 0 0 0.55rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-story-toggle {
  justify-self: start;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24,28,35,0.82);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.experience-story-toggle:hover,
.experience-story-toggle:focus-visible {
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,0.36);
  transform: translateY(-1px);
}

.experience-story {
  background:
    linear-gradient(135deg, rgba(56,189,248,0.08), rgba(186,230,253,0.04)),
    rgba(24,28,35,0.82);
}

.experience-story p {
  margin: 0;
  color: var(--muted);
}

.experience-story p + p {
  margin-top: 0.9rem;
}

.experience-story code {
  color: var(--text);
  font-size: 0.95em;
}

@keyframes experience-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.muted {
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.2rem 1.15rem 0;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 0 1.15rem;
}

.faq-answer p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.cta {
  text-align: center;
  padding-bottom: 5rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.legal-main {
  padding: 4.5rem 0 5rem;
}

.legal-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.legal-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-main h1 {
  max-width: none;
  margin-bottom: 1rem;
}

.legal-main h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-note {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 18px;
  background: rgba(56,189,248,0.06);
}

.legal-note strong {
  color: var(--text);
}

.legal-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.6rem 0;
}

.legal-card + .legal-card {
  margin-top: 0;
}

.legal-list {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-list li + li {
  margin-top: 0.55rem;
}

.legal-card code {
  color: var(--text);
  font-size: 0.95em;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(100,116,139,0.18);
  --accent: #2563eb;
  --accent-2: #1d4ed8;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(100,116,139,0.08), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #f8fafc 52%, #f1f5f9 100%);
}

html[data-theme="light"] header {
  background: rgba(248,250,252,0.84);
}

html[data-theme="light"] .brand img {
  filter: brightness(0) saturate(100%) opacity(0.9);
}

html[data-theme="light"] .control-group,
html[data-theme="light"] .button.secondary,
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .experience-counter,
html[data-theme="light"] .experience-story-toggle,
html[data-theme="light"] .experience-dot {
  background: rgba(255,255,255,0.92);
}

html[data-theme="light"] .button.primary {
  color: #f8fafc;
}

html[data-theme="light"] .experience-stage-arrow {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.16), rgba(96,165,250,0.12)),
    rgba(255,255,255,0.98);
  box-shadow: 0 16px 34px rgba(15,23,42,0.12);
  color: var(--text);
}

html[data-theme="light"] .experience-stage-arrow:hover,
html[data-theme="light"] .experience-stage-arrow:focus-visible {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.22), rgba(96,165,250,0.16)),
    rgba(255,255,255,1);
}

html[data-theme="light"] .experience-story {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.06), rgba(96,165,250,0.04)),
    rgba(255,255,255,0.9);
}

html[data-theme="light"] .experience-dot.is-active {
  background: linear-gradient(135deg, rgba(37,99,235,0.92), rgba(96,165,250,0.76));
}

html[data-theme="light"] .legal-note {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.16);
}

@media (max-width: 820px) {
  .card { grid-column: span 12; }
  .two-col { grid-template-columns: 1fr; }
  .experience-summary-row { justify-content: center; }
  .experience-stage { padding-inline: 0; }
  .experience-stage-arrow {
    top: auto;
    bottom: calc(100% + 0.9rem);
    width: 3rem;
    height: 4.2rem;
    transform: none;
  }
  .experience-stage-arrow:hover,
  .experience-stage-arrow:focus-visible {
    transform: scale(1.04);
  }
  .experience-stage-arrow-left { left: 0; }
  .experience-stage-arrow-right { right: 0; }
  .experience-grid { grid-template-columns: 1fr; }
  .nav-right { flex-direction: column; align-items: end; }
  .site-controls { flex-wrap: wrap; justify-content: end; }
  .nav-links { display: none; }
  .footer-meta { align-items: start; flex-direction: column; }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .hero-portrait-wrap {
    justify-self: center;
    width: min(100%, 280px);
    max-width: 280px;
    height: auto;
    order: 0;
  }
  .hero-copy {
    width: 100%;
  }
  h1 {
    max-width: none;
  }
  .lead {
    max-width: none;
    margin-bottom: 1.4rem;
  }
  .actions {
    gap: 0.75rem;
  }
  .button {
    width: 100%;
  }
  section {
    padding-bottom: 3rem;
  }
}
