:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft-bg: #f5f7fa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #072540;
  --muted: #5d6b7c;
  --line: rgba(7, 37, 64, 0.1);
  --primary: #0f4c81;
  --primary-dark: #072540;
  --primary-light: #00bfd6;
  --button: #00aeef;
  --lime: #b7e60c;
  --success: #9bd40a;
  --shadow: 0 18px 54px rgba(7, 37, 64, 0.12);
  --radius: 14px;
  --header-h: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #030507;
  --soft-bg: #07111d;
  --surface: rgba(8, 18, 28, 0.88);
  --surface-strong: #09131f;
  --text: #f2f8ff;
  --muted: #afbdcb;
  --line: rgba(225, 239, 255, 0.13);
  --primary: #00bfd6;
  --primary-dark: #f2f8ff;
  --primary-light: #31d9e8;
  --button: #00aeef;
  --lime: #c8f20a;
  --success: #c8f20a;
  --shadow: 0 18px 58px rgba(0, 174, 239, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(183, 230, 12, 0.1), transparent 20rem),
    radial-gradient(circle at 86% 10%, rgba(0, 174, 239, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--soft-bg));
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(15, 76, 129, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  display: block;
}

.shell {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #ffffff;
  left: 16px;
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 174, 239, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button,
.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-button {
  display: none;
}

.menu-button svg,
.theme-toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .moon,
[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--button) 78%, #ffffff);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--button), var(--primary-light));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 174, 239, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 174, 239, 0.28);
}

.button-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.button-large {
  min-height: 56px;
  margin-top: 10px;
  padding-inline: 24px;
  font-size: 1rem;
}

.button-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: none;
}

.button-ghost:hover {
  border-color: color-mix(in srgb, var(--lime) 55%, var(--line));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 72px 0 82px;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--primary-dark);
  font-family:
    Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.25rem, 7vw, 5.9rem);
  line-height: 0.94;
  font-weight: 900;
}

.hero h2 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.4vw, 3.15rem);
  line-height: 1.06;
  font-weight: 800;
}

.section-heading h2,
.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 850;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-text,
.section-heading p,
.panel p,
.contact-copy p,
.service-card p,
.process-card p,
.testimonial-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 1.16rem;
}

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

.hero-visual {
  perspective: 1200px;
}

.tech-illustration {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(183, 230, 12, 0.18), transparent 15rem),
    linear-gradient(135deg, rgba(0, 174, 239, 0.13), transparent 42%),
    linear-gradient(180deg, var(--surface-strong), color-mix(in srgb, var(--soft-bg) 74%, var(--bg)));
  box-shadow: var(--shadow);
  transform: rotateX(3deg) rotateY(-6deg);
  animation: float 7s ease-in-out infinite;
}

.logo-showcase {
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 2;
  width: 172px;
  height: 172px;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 34px rgba(0, 174, 239, 0.24))
    drop-shadow(0 0 18px rgba(183, 230, 12, 0.16));
}

.code-window,
.dashboard-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: 0 18px 46px rgba(7, 37, 64, 0.12);
}

.code-window {
  left: 32px;
  right: 178px;
  top: 50px;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-light) 56%, var(--line));
}

.window-bar strong {
  margin-left: 10px;
  font-size: 0.82rem;
}

pre {
  margin: 0;
  padding: 22px;
  color: var(--primary-dark);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.dashboard-card {
  left: 108px;
  right: 30px;
  bottom: 54px;
  padding: 20px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
}

.chart-head strong {
  color: var(--lime);
  font-size: 1.9rem;
}

.dashboard-card svg {
  width: 100%;
  height: 150px;
  margin-top: 10px;
}

.dashboard-card path:first-child {
  fill: none;
  stroke: var(--button);
  stroke-width: 6;
  stroke-linecap: round;
}

.dashboard-card path:last-child {
  fill: rgba(0, 174, 239, 0.11);
}

.tech-chip {
  position: absolute;
  display: grid;
  min-width: 64px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(7, 37, 64, 0.1);
}

.chip-a {
  top: 172px;
  right: 44px;
}

.chip-b {
  top: 236px;
  left: 32px;
}

.chip-c {
  right: 54px;
  bottom: 32px;
}

.chip-b,
.chip-c {
  border-color: rgba(183, 230, 12, 0.34);
  color: color-mix(in srgb, var(--lime) 72%, var(--primary));
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}

.panel,
.service-card,
.process-card,
.tech-card,
.testimonial-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(7, 37, 64, 0.07);
}

.panel {
  padding: 34px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.36);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 174, 239, 0.1);
  color: var(--primary);
}

.icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results {
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(0, 174, 239, 0.08));
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: center;
}

.differentials-grid span {
  position: relative;
  min-height: 52px;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 750;
}

.differentials-grid span::before {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--success);
  color: #07111d;
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.process-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
}

.process-card:not(:last-child)::after {
  position: absolute;
  right: -14px;
  top: 50%;
  color: var(--primary-light);
  content: "→";
  font-size: 1.4rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.process-card span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 174, 239, 0.12);
  color: var(--primary);
  font-weight: 900;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tech-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--primary-dark);
  font-weight: 850;
  text-align: center;
}

.tech-card::before {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--lime);
  content: "";
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  padding: 26px;
}

.testimonial-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--lime);
  letter-spacing: 0.06em;
}

.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.04rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 30px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 118px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--button);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.13);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 24px;
  background: var(--surface-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer p,
.copyright {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer address {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.94rem;
}

.footer address a:hover {
  color: var(--primary);
}

.copyright {
  margin-top: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: rotateX(3deg) rotateY(-6deg) translateY(0);
  }
  50% {
    transform: rotateX(3deg) rotateY(-6deg) translateY(-10px);
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 28px, 760px);
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-h) - 4px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .nav-actions .button {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .tech-illustration {
    min-height: 470px;
    transform: none;
  }

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

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

  .process-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 76px 0;
  }

  .tech-illustration {
    min-height: 440px;
    border-radius: 20px;
  }

  .code-window {
    left: 16px;
    right: 24px;
    top: 28px;
  }

  .logo-showcase {
    display: none;
  }

  .dashboard-card {
    left: 24px;
    right: 16px;
    bottom: 40px;
  }

  .chip-a {
    right: 112px;
    top: 224px;
  }

  .chip-b {
    left: 18px;
    top: 236px;
  }

  .chip-c {
    right: 28px;
    bottom: 12px;
  }

  .service-grid,
  .differentials-grid,
  .process-grid,
  .tech-grid,
  .testimonial-grid,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 20px;
  }
}
