:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #11131a;
  --text-muted: #4b5163;
  --border: #e3e6ee;
  --accent: #3b5bdb;
  --accent-hover: #364fc7;
  --accent-soft: #edf2ff;
  --accent-contrast: #ffffff;
  --accent-text: #364fc7;
  --success: #067647;
  --shadow: 0 1px 2px rgba(17, 19, 26, 0.04), 0 8px 24px rgba(17, 19, 26, 0.06);
  --shadow-hover: 0 2px 4px rgba(17, 19, 26, 0.05), 0 16px 40px rgba(17, 19, 26, 0.1);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-alt: #11141b;
    --surface: #151922;
    --text: #eceef4;
    --text-muted: #a3a9ba;
    --border: #252a36;
    --accent: #748ffc;
    --accent-hover: #91a7ff;
    --accent-soft: #1a2142;
    --accent-contrast: #0b0d12;
    --accent-text: #91a7ff;
    --success: #47cd89;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.accent {
  color: var(--accent-text);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 6px 16px -6px var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding-top: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  order: 3;
  margin-inline: -20px;
  width: calc(100% + 40px);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  padding: 6px 14px;
  white-space: nowrap;
}

.site-nav a {
  display: block;
  padding: 10px 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    height: var(--header-h);
    padding-top: 0;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin: 0 0 0 auto;
    overflow: visible;
  }

  .site-nav ul {
    gap: 8px;
    padding: 0;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 0.9375rem;
  }

  .header-cta {
    order: 1;
    margin-left: 8px;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero h1 .accent {
  display: block;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 36px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.hero-tags li::before {
  content: "/ ";
  color: var(--accent-text);
}

.hero-visual img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  max-width: 520px;
}

@media (min-width: 900px) {
  .hero {
    padding: 96px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

@media (min-width: 900px) {
  .section {
    padding: 112px 0;
  }

  .section-head {
    margin-bottom: 64px;
  }
}

.cards {
  display: grid;
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-hover);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 12px;
  transition: transform 0.25s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.06);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1875rem;
}

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

.card-sub {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.9375rem;
}

.badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }

  .card {
    grid-column: span 2;
  }

  .card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1875rem;
}

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

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    right: -25px;
    width: 26px;
    height: 2px;
    background: var(--border);
  }
}

.ai-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius);
}

.ai-note-icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border-radius: 12px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-note h3 {
  margin-bottom: 6px;
  font-size: 1.1875rem;
}

.ai-note p {
  color: var(--text-muted);
}

.tech-heading {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-main {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.tech-primary {
  padding: 32px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius);
}

.tech-label {
  margin-bottom: 8px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tech-primary h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.tech-primary p:last-child {
  color: var(--text-muted);
}

.tech-groups {
  display: grid;
  gap: 28px;
}

.tech-group h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--text);
}

@media (min-width: 640px) {
  .tech-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }
}

@media (min-width: 1024px) {
  .tech-main {
    gap: 24px;
    margin-bottom: 56px;
  }

  .tech-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reasons {
  display: grid;
  gap: 32px;
}

.reason {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.reason-icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--accent-soft);
  border-radius: 12px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reason h3 {
  margin-bottom: 6px;
  font-size: 1.1875rem;
}

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

@media (min-width: 768px) {
  .reasons {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 56px;
  }
}

.contact-inner {
  max-width: 720px;
  text-align: center;
}

.contact-copy .section-lead {
  max-width: 34em;
  margin-inline: auto;
}

.contact-email {
  margin-top: 40px;
  padding: 32px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-email-label {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}

.email-row[hidden] {
  display: none;
}

.email-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  word-break: break-all;
}

.email-image {
  margin-inline: auto;
}

.email-button svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button.is-copied {
  border-color: var(--success);
  color: var(--success);
}

@media (min-width: 900px) {
  .contact-email {
    padding: 40px;
  }
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .copyright {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
