:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #0e0e0e;
  --surface-2: #151515;
  --surface-3: #1c1c1c;
  --text: #f3f3f1;
  --muted: #aaa9a5;
  --muted-2: #858581;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.28);
  --accent: #f3f3f1;
  --accent-strong: #d8d8d4;
  --focus: #ffffff;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}
a:hover {
  color: #ffffff;
}
img {
  display: block;
  max-width: 100%;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #080808;
  transform: translateY(-160%);
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}
.brand-copy strong {
  font-size: 15px;
}
.brand-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #c7c7c3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: #ffffff;
}

main {
  min-height: calc(100vh - 154px);
}
main section[id] {
  scroll-margin-top: 96px;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.042em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #d5d5d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.lede {
  max-width: 700px;
  margin-bottom: 30px;
  color: #b1b1ad;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
}

.accent {
  color: #ffffff;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  color: #080808;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  border-color: #d9d9d5;
  background: #d9d9d5;
  color: #080808;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: #292927;
  background: #1c1c1b;
  color: #ededeb;
}

.button.secondary:hover {
  border-color: #373735;
  background: #282827;
  color: #ffffff;
}

.section {
  padding: 104px 0;
}
.section.compact {
  padding: 50px 0;
}
.section-header {
  max-width: 820px;
  margin-bottom: 38px;
}
.section-header > p {
  color: var(--muted);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.62fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.split-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}
.split-heading > p {
  margin: 0 0 7px;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card,
.policy-section,
.support-card,
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card {
  padding: 24px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .muted {
  color: var(--muted);
}

/* Portfolio */

.hero.portfolio-hero {
  display: block;
}

.portfolio-hero .hero-copy {
  max-width: 980px;
}

.portfolio-hero h1 {
  max-width: 980px;
  font-size: clamp(58px, 8.4vw, 104px);
}

.hero-link {
  min-height: 48px;
  padding-inline: 10px 4px;
  color: #d1d1cd;
}

.experience-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  gap: 24px;
  align-items: start;
}

.experience-feature {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.experience-feature h3 {
  margin-bottom: 4px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.experience-company {
  color: #d6d6d2;
  font-weight: 750;
}

.experience-feature > p:last-child {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.background-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.background-card .eyebrow {
  margin-bottom: 18px;
}
.background-card dl {
  margin: 0;
}

.background-card dl div {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.background-card dt {
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.background-card dd {
  margin: 0;
  color: #d6d6d2;
  font-size: 14px;
  line-height: 1.5;
}

.tools-section {
  padding-bottom: 82px;
}

.product-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 58px;
  align-items: center;
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: #0c0c0c;
  box-shadow: var(--shadow);
}

.product-feature-copy,
.control-preview {
  position: relative;
  z-index: 1;
}

.product-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.product-kicker img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 17px;
}

.product-kicker div {
  display: grid;
}
.product-kicker span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-kicker h3 {
  margin: 3px 0 0;
  font-size: 22px;
}

.product-feature .product-statement {
  max-width: 610px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

.product-feature-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}
.product-feature-copy > .actions {
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  color: #c7c7c3;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: #ffffff;
}

.control-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #080808;
}

.preview-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.preview-bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #343432;
}
.preview-bar > span:nth-child(2) {
  background: #6b6b67;
}
.preview-bar > span:nth-child(3) {
  background: #d6d6d2;
}
.preview-bar strong {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.preview-screen {
  padding: clamp(24px, 4vw, 40px);
}
.preview-label {
  color: #8c8c88;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.speed-readout {
  display: block;
  margin: 16px 0 26px;
  color: #f3f3f1;
  font-size: clamp(58px, 7vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.speed-readout span {
  font-size: 0.48em;
}

.speed-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}

.speed-scale i {
  height: 3px;
  border-radius: 999px;
  background: #272725;
}
.speed-scale i.active {
  background: #f3f3f1;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preset-row span {
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #989894;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.preset-row .selected {
  border-color: #d0d0cc;
  background: #f3f3f1;
  color: #080808;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #92928e;
  font-size: 10px;
}

.preview-note .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3f3f1;
}
.preview-note .status-dot::before {
  display: none;
}

.contact-section {
  padding-top: 50px;
  padding-bottom: 92px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(30px, 5vw, 54px);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.contact-panel h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}
.contact-panel .eyebrow {
  margin-bottom: 10px;
}

/* Product and policy pages */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: #c0c0bc;
  font-size: 11px;
  font-weight: 750;
}

.badge.success::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #f3f3f1;
  content: "";
}

.product-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 72px 0 48px;
}

.product-hero > img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--border);
  border-radius: 22px;
}

.product-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 64px);
}

.feature-list,
.policy-list,
.steps {
  margin: 0;
  padding-left: 22px;
}

.feature-list li,
.policy-list li,
.steps li {
  margin: 8px 0;
}

.feature-list li::marker,
.policy-list li::marker,
.steps li::marker {
  color: #f3f3f1;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
}
.side-nav a {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.side-nav a:hover {
  background: var(--surface-2);
  color: #ffffff;
}

.policy-stack,
.support-stack {
  display: grid;
  gap: 16px;
}
.policy-section,
.support-card {
  padding: 26px;
}
.policy-section p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}
.policy-section p,
.support-card p {
  color: #b2b2ae;
}

.callout {
  padding: 18px 20px;
  border-left: 3px solid #f3f3f1;
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}
.callout p {
  margin: 0;
  color: #b6b6b2;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
}

details {
  overflow: hidden;
}
details + details {
  margin-top: 12px;
}

summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}
summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--muted);
  content: "+";
  font-size: 23px;
  line-height: 1;
  transform: translateY(-50%);
}
details[open] summary::after {
  content: "−";
}
details p {
  margin: 0;
  padding: 0 20px 20px;
  color: #b2b2ae;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
}

code {
  padding: 0.14em 0.38em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #050505;
  color: #f3f3f1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.footer-brand p {
  display: grid;
}
.footer-brand strong {
  color: #e0e0dc;
  font-size: 12px;
}
.footer-brand span {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10px;
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
  text-align: center;
}
.not-found .card {
  max-width: 620px;
}
.not-found h1 {
  font-size: clamp(48px, 10vw, 96px);
}

@media (max-width: 960px) {
  .hero,
  .split-heading,
  .resume-layout,
  .product-feature,
  .content-layout {
    grid-template-columns: 1fr;
  }
  .side-nav {
    position: static;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .control-preview {
    max-width: 640px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0;
  }
  main section[id] {
    scroll-margin-top: 132px;
  }
  .section {
    padding: 76px 0;
  }
  .split-heading {
    gap: 20px;
    margin-bottom: 34px;
  }
  .product-feature {
    gap: 34px;
    padding: 26px;
  }
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
  }
  .product-hero > img {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: clamp(43px, 13vw, 60px);
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .background-card,
  .card,
  .policy-section,
  .support-card {
    padding: 20px;
  }
  .preset-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
