@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root {
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.42);
  --surface-strong: rgba(24, 24, 27, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-soft: #71717a;
  --white-soft: rgba(255, 255, 255, 0.92);
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --accent-3: #67e8f9;
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1280px;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
  --sans: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

body::selection {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

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

canvas {
  display: block;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb,
.ambient-grid,
.scene-layer {
  position: absolute;
  inset: 0;
}

.ambient-orb {
  filter: blur(120px);
}

.ambient-orb.top {
  top: -22%;
  left: -10%;
  width: 62%;
  height: 62%;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
}

.ambient-orb.bottom {
  top: auto;
  left: auto;
  bottom: -24%;
  right: -12%;
  width: 62%;
  height: 62%;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
}

.ambient-grid {
  background-size: 40px 40px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  mask-image: linear-gradient(to bottom, white, transparent);
}

.scene-layer {
  opacity: 0.72;
}

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

.split-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.main-narrow,
.article-shell,
.page-shell {
  width: min(100%, 680px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #09090b;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  padding: 0 1rem;
  z-index: 50;
  background: transparent;
}

.header-row {
  min-height: 72px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: 28px;
  background: rgba(9, 9, 11, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #09090b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.14);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav > a:not(.nav-cta) {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav > a:not(.nav-cta):hover,
.nav > a:not(.nav-cta):focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-1px);
}

.nav a:hover,
.nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-cta,
.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
  font-size: 0.84rem;
  font-weight: 500;
}

.nav-cta,
.button {
  background: #fff;
  color: #09090b;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.nav-cta:hover,
.button:hover,
.button:focus-visible {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.16);
}

.button-secondary,
.button-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button-ghost:hover,
.button-secondary:focus-visible,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 10;
}

section {
  padding: 7rem 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.page-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
}

.page-shell {
  padding-top: 0;
}

.eyebrow,
.kicker,
.breadcrumb,
.meta,
.post-index,
.timeline-index,
.stat-label,
.footer-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #d4d4d8;
  font-weight: 300;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.7);
}

.hero-copy h1,
.page-hero h1,
.article h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
  background: linear-gradient(180deg, #fafafa 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.article h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.lead,
.page-hero p,
.section-header p,
.card p,
.post-card p,
.article p,
.article li,
.faq-item p,
.timeline-item p,
.stat p,
.footer-copy,
.contact-item p,
.lede {
  color: var(--muted);
  font-weight: 300;
}

.lead,
.page-hero p {
  font-size: 1.08rem;
  line-height: 1.85;
}

.cta-row,
.inline-chip-row,
.post-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.inline-chip-row {
  margin-top: 1.8rem;
}

.hero-code {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.kicker {
  color: #d4d4d8;
  font-weight: 300;
}

.code-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.code-line:last-child {
  border-bottom: 0;
}

.code-line strong {
  color: #fff;
  font-weight: 500;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 300;
}

.glass-panel,
.card,
.post-card,
.faq-item,
.timeline-item,
.callout,
.contact-item,
.metric-card,
.article-shell {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.glass-panel,
.callout,
.article-shell {
  border-radius: 24px;
}

.card,
.post-card,
.faq-item,
.timeline-item,
.contact-item,
.metric-card {
  border-radius: 18px;
}

.glass-panel,
.callout,
.article-shell,
.card,
.post-card,
.faq-item,
.timeline-item,
.contact-item,
.metric-card {
  position: relative;
  overflow: hidden;
}

.glass-panel::before,
.callout::before,
.article-shell::before,
.card::before,
.post-card::before,
.faq-item::before,
.timeline-item::before,
.contact-item::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.glass-panel,
.article-shell,
.callout {
  padding: 2rem;
}

.card,
.post-card,
.faq-item,
.timeline-item,
.contact-item,
.metric-card {
  padding: 1.35rem;
}

.hero-layout,
.section-grid,
.footer-grid,
.service-grid,
.metric-grid,
.faq-grid,
.blog-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: center;
}

.hero-aside {
  justify-self: end;
  width: min(100%, 420px);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2,
.section-header h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

.service-grid,
.metric-grid,
.faq-grid,
.blog-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card-index,
.post-index {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: #d4d4d8;
}

.card h3,
.post-card h3,
.faq-item h3,
.timeline-item h3,
.contact-item h3,
.metric-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: #fff;
}

.timeline {
  position: relative;
  margin-left: 0.85rem;
  padding-left: 1.8rem;
  border-left: 1px solid var(--line);
}

.timeline-item {
  margin-bottom: 1rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-index {
  position: absolute;
  left: -0.82rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d4d8;
}

.timeline-item.active .timeline-index {
  background: #fff;
  border-color: #fff;
  color: #09090b;
}

.scroll-note {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.56;
}

.scroll-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-note .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #a1a1aa, transparent);
}

.post-meta,
.breadcrumb {
  color: var(--muted-soft);
  font-weight: 300;
}

.post-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-shell {
  padding: 2.25rem;
}

.article {
  max-width: 760px;
}

.article h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.article ul,
.article ol {
  padding-left: 1.25rem;
}

.article .lead {
  color: #d4d4d8;
}

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line-soft);
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 4rem 0 2rem;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: start;
}

.footer-title {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer-links {
  flex-direction: column;
  gap: 0.55rem;
}

.seo-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-soft);
  font-size: 0.86rem;
}

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

.form-note {
  color: var(--muted-soft);
  font-size: 0.9rem;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  margin-bottom: 0.75rem;
}

.hidden-mobile {
  display: inline-flex;
}

@media (max-width: 980px) {
  .hero-layout,
  .section-grid,
  .service-grid,
  .metric-grid,
  .faq-grid,
  .blog-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .site-header {
    top: 0.75rem;
    padding: 0 0.75rem;
  }

  .header-row {
    min-height: 68px;
    border-radius: 24px;
  }

  .hero-aside {
    justify-self: start;
    width: 100%;
  }

  .nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.65rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem;
    background: rgba(24, 24, 27, 0.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .nav > a:not(.nav-cta) {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hidden-mobile {
    display: none;
  }
}

@media (max-width: 680px) {
  section {
    padding: 5rem 0;
  }

  .glass-panel,
  .callout,
  .article-shell {
    padding: 1.4rem;
  }

  .card,
  .post-card,
  .faq-item,
  .timeline-item,
  .contact-item,
  .metric-card {
    padding: 1.15rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .article h1 {
    font-size: 2.7rem;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}
