:root {
  --bg: #07101a;
  --bg-2: #0b1625;
  --surface: rgba(12, 24, 39, 0.78);
  --surface-strong: rgba(11, 22, 37, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --border: rgba(129, 212, 250, 0.14);
  --border-strong: rgba(129, 212, 250, 0.24);
  --text: #edf6ff;
  --muted: #aebfd2;
  --heading: #fbfdff;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --shadow: 0 22px 60px rgba(2, 8, 20, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.11), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(56, 189, 248, 0.12), transparent 22%),
    linear-gradient(180deg, #06101a 0%, #09131f 55%, #07101a 100%);
}

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

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

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

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(7, 16, 26, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(2, 8, 20, 0.18);
  transition: padding 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.topbar.is-condensed {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-color: var(--border);
  background: rgba(7, 16, 26, 0.92);
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 4rem;
}

.brand,
.hero h1,
.section-heading h2,
.about-card h2,
.contact-card h2,
.service-card h3,
.why-card h3,
.panel-title {
  font-family: "Orbitron", sans-serif;
}

.brand-logo {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: 300px;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--heading);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  margin: 0.13rem 0;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 18px;
  background: transparent;
  transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease, padding 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topbar.nav-open .nav {
  max-height: 18rem;
  margin-top: 0.8rem;
  padding: 0.35rem;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.nav a {
  padding: 0.8rem 0.95rem;
  color: var(--muted);
  font-family: "Roboto", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--heading);
  background: rgba(129, 212, 250, 0.08);
  transform: translateY(-1px);
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding-top: 2.25rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.2rem;
  min-height: calc(100vh - 120px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-card h2,
.contact-card h2 {
  margin: 0;
  color: var(--heading);
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 8vw, 5.2rem);
}

.hero-text,
.problem-card p,
.service-card p,
.why-card p,
.about-card p,
.contact-text {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-text {
  max-width: 60ch;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #021019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 34px rgba(34, 211, 238, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 22px 40px rgba(34, 211, 238, 0.28);
}

.button-secondary {
  color: var(--heading);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--border-strong);
  background: rgba(129, 212, 250, 0.08);
}

.hero-panel,
.problem-card,
.service-card,
.why-card,
.about-card,
.contact-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 24, 39, 0.88), rgba(8, 18, 31, 0.72));
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-panel-inner {
  padding: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 35%),
    linear-gradient(180deg, rgba(10, 22, 37, 0.94), rgba(8, 18, 31, 0.9));
}

.panel-title {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.04em;
}

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

.signal-item {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: var(--surface-soft);
}

.signal-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #ddf7ff;
  font-family: "Roboto", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.section-heading.narrow {
  max-width: 680px;
}

.problem-card,
.about-card,
.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.services-grid,
.why-grid {
  display: grid;
  gap: 1rem;
}

.service-card,
.why-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.service-card:focus-within,
.why-card:hover,
.why-card:focus-within,
.problem-card:hover,
.about-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.card-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-card h3,
.why-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--heading);
}

.about-card h2,
.contact-card h2,
.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.about-card p:last-child,
.problem-card p,
.contact-text {
  margin: 1rem 0 0;
}

.contact-card {
  display: grid;
  gap: 1.5rem;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  color: #9cecff;
  font-weight: 700;
}

.footer {
  display: grid;
  gap: 0.7rem;
  padding: 0 0 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-name {
  margin: 1.4rem 0 0.35rem;
  color: var(--heading);
  font-weight: 700;
}

.footer p {
  margin: 0;
}

.reveal,
.reveal-on-load {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (min-width: 760px) {
  .page-shell {
    width: min(calc(100% - 2rem), var(--container));
  }

  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo {
    height: 3.45rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-height: none;
    padding: 0.3rem;
    opacity: 1;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
  }

  .nav a {
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    gap: 2.5rem;
  }

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

  .contact-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .footer {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-on-load {
    opacity: 1;
    transform: none;
  }
}
