:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --bg-soft: rgba(244, 244, 245, 0.62);
  --surface: rgba(255, 255, 255, 0.46);
  --surface-strong: rgba(255, 255, 255, 0.74);
  --text: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --border: rgba(24, 24, 27, 0.08);
  --glass-border: rgba(255, 255, 255, 0.68);
  --shadow: 0 8px 32px rgba(24, 24, 27, 0.07);
  --cyan: #22d3ee;
  --cyan-dark: #06b6d4;
  --blue: #60a5fa;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.dark {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: rgba(24, 24, 27, 0.62);
  --surface: rgba(24, 24, 27, 0.48);
  --surface-strong: rgba(39, 39, 42, 0.72);
  --text: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.11);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(6, 182, 212, 0.3);
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.container {
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
}

.narrow {
  max-width: 48rem;
}

.center {
  text-align: center;
}

.page-section {
  scroll-margin-top: 5rem;
}

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

h1,
h2,
h3 {
  color: var(--text);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}

.nav-bar {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
}

.dark .nav-bar {
  background: rgba(9, 9, 11, 0.48);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wordmark span {
  color: var(--cyan);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.language-link {
  margin-right: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 800;
  transition: color 150ms ease;
}

.language-link:hover {
  color: var(--cyan-dark);
}

.icon-button {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease;
}

.icon-button:hover {
  color: var(--cyan-dark);
}

.dark .moon-icon,
html:not(.dark) .sun-icon,
.close-icon {
  display: none;
}

.mobile-menu-toggle,
.mobile-navigation,
#mobile-menu-backdrop {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 12rem 0 8rem;
}

.glow {
  position: absolute;
  width: 37.5rem;
  height: 37.5rem;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(120px);
}

.glow-cyan {
  top: 0;
  right: 0;
  transform: translate(33%, -33%);
  background: rgba(34, 211, 238, 0.2);
}

.glow-blue {
  top: 50%;
  left: 0;
  transform: translate(-33%, -50%);
  background: rgba(96, 165, 250, 0.2);
}

.dark .glow-cyan {
  background: rgba(8, 145, 178, 0.1);
}

.dark .glow-blue {
  background: rgba(37, 99, 235, 0.1);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
}

.button:focus-visible,
.icon-button:focus-visible,
.slider-dots button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 3px;
}

.button-primary {
  border-color: rgba(63, 63, 70, 0.5);
  background: rgba(24, 24, 27, 0.94);
  color: white;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 12px 26px rgba(24, 24, 27, 0.14);
}

.button-primary:hover {
  background: #27272a;
}

.dark .button-primary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.92);
  color: #09090b;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 8px 20px rgba(255, 255, 255, 0.1);
}

.dark .button-primary:hover {
  background: white;
}

.button-secondary {
  border-color: var(--glass-border);
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
}

.button-secondary:hover {
  background: var(--surface-strong);
}

.terminal-card,
.glass-card {
  border: 1px solid var(--glass-border);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.terminal-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.terminal-top div {
  display: flex;
  gap: 0.5rem;
}

.terminal-top i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.8);
}

.terminal-top i:nth-child(2) {
  background: rgba(234, 179, 8, 0.8);
}

.terminal-top i:nth-child(3) {
  background: rgba(34, 197, 94, 0.8);
}

.terminal-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
}

.terminal-body > p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.terminal-body b {
  margin-right: 0.5rem;
  color: var(--cyan);
}

.terminal-body em {
  margin-left: 0.5rem;
  color: #22c55e;
  font-style: normal;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metrics > div {
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  background: var(--surface-strong);
}

.metrics span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--subtle);
  font-size: 0.75rem;
}

.metrics strong {
  color: var(--text);
  font-size: 1.5rem;
}

.metrics div:last-child strong {
  color: var(--cyan-dark);
}

.value-section,
.process-section {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.value-section {
  padding: 6rem 0;
}

.value-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.services-section,
.process-section,
.faq-section,
.contact-section {
  position: relative;
  padding: 6rem 0;
}

.section-header {
  margin: 0 auto 4rem;
  text-align: center;
}

.section-header p {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: 1.5rem;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.service-card:hover {
  transform: translateY(-0.3rem);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 42px rgba(24, 24, 27, 0.1);
}

.dark .service-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

.service-icon,
.process-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: var(--surface-strong);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: transform 400ms ease;
}

.service-card:hover .service-icon,
.process-card:hover .process-icon {
  transform: scale(1.08);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-icon-0 {
  color: #60a5fa;
}

.service-icon-1 {
  color: #22d3ee;
}

.service-icon-2 {
  color: #818cf8;
}

.service-icon-3 {
  color: #c084fc;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.22rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.slider-dots {
  display: none;
}

.process-section {
  overflow: hidden;
}

.process-glow {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 50%;
  background: rgba(96, 165, 250, 0.1);
}

.process-track {
  position: relative;
}

.track-line {
  position: absolute;
  z-index: 0;
  top: 2rem;
  right: 4rem;
  left: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.process-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-icon {
  position: relative;
  border-color: var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.13);
}

.process-icon span {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 800;
}

.process-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

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

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.025);
  backdrop-filter: blur(24px);
  transition: border-color 180ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.34);
}

.faq-item summary {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary svg {
  flex: 0 0 auto;
  margin-left: 1rem;
  color: var(--subtle);
  transition: transform 250ms ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item > div {
  animation: reveal 180ms ease-out;
}

.faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.35rem;
  line-height: 1.7;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
}

.contact-section {
  overflow: hidden;
  padding-top: 7rem;
}

.contact-glow {
  right: -15rem;
  bottom: -18rem;
  background: rgba(34, 211, 238, 0.12);
}

.contact-grid {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  text-align: center;
}

.contact-copy h2 {
  max-width: 34rem;
  margin-inline: auto;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.contact-copy > p {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.contact-links {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  text-align: left;
}

.contact-links > div {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
}

.contact-links > div > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--surface);
  color: #38bdf8;
}

.contact-links small {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--subtle);
}

.contact-links a {
  color: var(--text);
  font-weight: 700;
  transition: color 150ms ease;
}

.contact-links a:hover {
  color: var(--cyan-dark);
}

.not-found-main {
  position: relative;
  min-height: calc(100vh - 5.2rem);
  overflow: hidden;
}

.not-found-main {
  display: grid;
  min-height: calc(100vh - 5.2rem);
  padding-top: 5rem;
  place-items: center;
}

.not-found-copy {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  padding-block: 5rem;
  text-align: center;
}

.not-found-code {
  margin-bottom: 1rem;
  font-size: clamp(6rem, 18vw, 9rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.not-found-copy h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.not-found-copy > p:not(.not-found-code) {
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 1023px) {
  .hero {
    padding-top: 10rem;
  }

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

  .terminal-card {
    display: none;
  }

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

}

@media (max-width: 767px) {
  .container {
    width: min(100% - 2rem, 80rem);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-grid;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
  }

  .mobile-menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
  }

  #mobile-menu-backdrop {
    position: fixed;
    inset: 5rem 0 0;
    z-index: 40;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(9, 9, 11, 0.1);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(6px);
    transition: opacity 300ms ease;
  }

  #mobile-menu-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-navigation {
    position: absolute;
    inset: 5rem 0 auto;
    z-index: 50;
    display: flex;
    max-height: calc(100vh - 5rem);
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem) scaleY(0.96);
    transform-origin: top;
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    transition: opacity 300ms ease, transform 300ms ease;
  }

  .dark .mobile-navigation {
    background: rgba(9, 9, 11, 0.64);
  }

  .mobile-navigation.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
  }

  .mobile-navigation .nav-link {
    color: var(--text);
    font-size: 1.1rem;
  }

  .mobile-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .mobile-tools .language-link {
    display: inline-grid;
    height: 2rem;
    place-items: center;
    margin: 0;
    padding-inline: 0.55rem;
    border-radius: 0.4rem;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 1rem;
  }

  .mobile-theme-button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
  }

  .hero {
    padding: 8.5rem 0 5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero-copy > p {
    font-size: 1.08rem;
  }

  .button {
    padding-inline: 1.5rem;
  }

  .value-section,
  .services-section,
  .process-section,
  .faq-section,
  .contact-section {
    padding-block: 5rem;
  }

  .section-header {
    margin-bottom: 2.75rem;
    text-align: left;
  }

  .narrow .section-header {
    text-align: center;
  }

  .card-slider {
    display: flex;
    gap: 1.5rem;
    margin-inline: -1rem;
    padding: 0.5rem 1rem 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .card-slider::-webkit-scrollbar {
    display: none;
  }

  .service-card,
  .process-card {
    width: 75vw;
    max-width: 22rem;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .slider-dots button {
    width: 0.4rem;
    height: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d4d4d8;
    cursor: pointer;
    transition: width 250ms ease, background-color 250ms ease;
  }

  .dark .slider-dots button {
    background: #3f3f46;
  }

  .slider-dots button[aria-current="true"] {
    width: 1.5rem;
    background: var(--cyan);
  }

  .track-line {
    display: none;
  }

  .process-card {
    min-height: 14rem;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: left;
    backdrop-filter: blur(24px);
  }

  .process-icon {
    border-radius: 1rem;
    background: var(--surface-strong);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

}

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