:root {
  color-scheme: light dark;
  --bg: #edf3f2;
  --surface: #ffffff;
  --surface-alt: #deebea;
  --text: #0f2f33;
  --muted: #3f5f63;
  --primary: #1b8b8f;
  --primary-strong: #22686b;
  --accent: #f5ad2e;
  --border: #bed3d1;
  --danger: #b3261e;
  --shadow: 0 14px 36px rgba(16, 35, 23, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --max-width: 1140px;
  --motion-fast: 220ms;
  --motion-normal: 420ms;
  --motion-slow: 700ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-distance: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -5%, #d6e7e6 0, transparent 42%),
    radial-gradient(circle at 90% 0, #ffefcf 0, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

main {
  padding-block: var(--space-6) var(--space-8);
}

.section {
  padding-block: var(--space-7);
}

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.section-head h1,
.section-head h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface), transparent 7%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.28rem 0.52rem 0.28rem 0.32rem;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(27, 139, 143, 0.2),
    rgba(34, 104, 107, 0.42)
  );
  border: 1px solid rgba(28, 117, 120, 0.7);
  box-shadow:
    0 14px 24px rgba(15, 47, 51, 0.26),
    0 0 0 1px rgba(245, 173, 46, 0.18),
    inset 0 1px 0 rgba(233, 255, 255, 0.58),
    inset 0 -1px 0 rgba(8, 49, 52, 0.3);
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.brand::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(245, 173, 46, 0.34),
    rgba(27, 139, 143, 0.24) 52%,
    transparent 75%
  );
  opacity: 0.9;
  z-index: -1;
  transition: opacity var(--motion-normal) var(--ease-soft);
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 16px 28px rgba(15, 47, 51, 0.26),
    inset 0 1px 0 rgba(233, 255, 255, 0.56),
    inset 0 -1px 0 rgba(8, 49, 52, 0.26);
}

.brand img {
  width: auto;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(160deg, #245f67, #1f4d56 58%, #1a414a);
  border: 1px solid rgba(221, 253, 255, 0.74);
  padding: 3px;
  box-shadow:
    0 12px 22px rgba(15, 47, 51, 0.3),
    0 0 0 1px rgba(245, 173, 46, 0.32),
    0 2px 8px rgba(15, 47, 51, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.brand:hover::before,
.brand:focus-visible::before {
  opacity: 1;
}

.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 14px 24px rgba(15, 47, 51, 0.3),
    0 0 0 1px rgba(245, 173, 46, 0.34),
    0 2px 8px rgba(15, 47, 51, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color var(--motion-fast) var(--ease-standard);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 107, 66, 0.3);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

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

.btn.small {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), var(--primary));
  opacity: 0.18;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.hero p {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  max-width: 50ch;
}

.hero-actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.stat-grid,
.card-grid,
.pricing-grid,
.team-grid,
.feature-grid {
  display: grid;
  gap: var(--space-4);
}

.stat-card,
.card,
.pricing-card,
.testimonial,
.highlight,
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.15;
}

.stat-card span,
.card p,
.team-card p,
.pricing-card p,
.testimonial p,
.highlight p {
  color: var(--muted);
}

.card h3,
.pricing-card h3,
.team-card h3,
.highlight h3 {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: inline-grid;
  place-items: center;
  margin-bottom: var(--space-3);
}

.icon-badge img {
  width: 22px;
}

.testimonial blockquote {
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
}

.kicker {
  margin: 0;
  font-size: 0.9rem;
}

.highlight {
  background: linear-gradient(125deg, #1c868a, #1f4968);
  color: #fff;
  border: 0;
}

.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.metrics {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-3);
}

.metrics li {
  background: rgba(255, 255, 255, 0.13);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--surface-alt);
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1.03rem;
  font-weight: 700;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--muted);
}

.faq-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.contact-grid {
  display: grid;
  gap: var(--space-5);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.field-grid {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: var(--space-2);
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.74rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 18%);
}

textarea {
  resize: vertical;
}

.error-text {
  min-height: 1rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.form-success {
  margin-top: var(--space-4);
  background: #e3f4eb;
  border: 1px solid #7bc49f;
  border-radius: var(--radius-sm);
  color: #0f5a36;
  padding: var(--space-3);
}

.form-note {
  margin-top: var(--space-3);
  font-size: 0.88rem;
  color: var(--muted);
}

.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.media-card img {
  width: 100%;
  object-fit: cover;
}

.cta-band {
  background: linear-gradient(130deg, #1f5960, #248b8f 70%, #f5ad2e);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.cta-band::before {
  width: 220px;
  height: 220px;
  right: -90px;
  top: -100px;
  animation: ctaDrift var(--motion-slow) linear infinite alternate;
}

.cta-band::after {
  width: 130px;
  height: 130px;
  left: -40px;
  bottom: -50px;
  animation: ctaDrift var(--motion-slow) linear infinite alternate-reverse;
}

.cta-band h2 {
  margin-top: 0;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-7);
  background: var(--surface);
}

.footer-wrap {
  padding-block: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

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

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

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081417;
  --surface: #102126;
  --surface-alt: #183238;
  --text: #e6f3f1;
  --muted: #a8c2bf;
  --primary: #47b5b9;
  --primary-strong: #2d8f94;
  --accent: #f3c05a;
  --border: #2b4a51;
  --danger: #ff8d85;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 20% -5%, rgba(24, 72, 78, 0.65) 0, transparent 45%),
    radial-gradient(circle at 90% 0, rgba(124, 99, 42, 0.36) 0, transparent 35%),
    var(--bg);
}

:root[data-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--surface), transparent 14%);
  border-bottom-color: color-mix(in srgb, var(--border), transparent 8%);
}

:root[data-theme="dark"] .menu-toggle {
  background: color-mix(in srgb, var(--surface-alt), black 8%);
  color: var(--text);
}

:root[data-theme="dark"] .brand {
  background: linear-gradient(
    145deg,
    rgba(71, 181, 185, 0.2),
    rgba(34, 104, 107, 0.52)
  );
  border-color: rgba(108, 216, 220, 0.5);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(209, 252, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .brand::before {
  background: radial-gradient(
    circle at 35% 30%,
    rgba(243, 192, 90, 0.35),
    rgba(71, 181, 185, 0.26) 55%,
    transparent 78%
  );
}

:root[data-theme="dark"] .brand img {
  background: linear-gradient(160deg, #245d66, #1a444d 58%, #12343b);
  border-color: rgba(199, 248, 250, 0.62);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(243, 192, 90, 0.33),
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

:root[data-theme="dark"] .btn-ghost {
  background: color-mix(in srgb, var(--surface-alt), black 8%);
}

:root[data-theme="dark"] th {
  background: color-mix(in srgb, var(--surface-alt), black 6%);
}

:root[data-theme="dark"] .faq-question {
  color: var(--text);
}

:root[data-theme="dark"] .highlight {
  background: linear-gradient(125deg, #256f78, #1b3556);
}

:root[data-theme="dark"] .form-success {
  background: #153428;
  border-color: #2f7b57;
  color: #bdeed5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #081417;
    --surface: #102126;
    --surface-alt: #183238;
    --text: #e6f3f1;
    --muted: #a8c2bf;
    --primary: #47b5b9;
    --primary-strong: #2d8f94;
    --accent: #f3c05a;
    --border: #2b4a51;
    --danger: #ff8d85;
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  }

  :root:not([data-theme]) body {
    background:
      radial-gradient(circle at 20% -5%, rgba(24, 72, 78, 0.65) 0, transparent 45%),
      radial-gradient(circle at 90% 0, rgba(124, 99, 42, 0.36) 0, transparent 35%),
      var(--bg);
  }

  :root:not([data-theme]) .site-header {
    background: color-mix(in srgb, var(--surface), transparent 14%);
    border-bottom-color: color-mix(in srgb, var(--border), transparent 8%);
  }

  :root:not([data-theme]) .menu-toggle {
    background: color-mix(in srgb, var(--surface-alt), black 8%);
    color: var(--text);
  }

  :root:not([data-theme]) .brand {
    background: linear-gradient(
      145deg,
      rgba(71, 181, 185, 0.2),
      rgba(34, 104, 107, 0.52)
    );
    border-color: rgba(108, 216, 220, 0.5);
    box-shadow:
      0 14px 24px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(209, 252, 255, 0.26),
      inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  }

  :root:not([data-theme]) .brand::before {
    background: radial-gradient(
      circle at 35% 30%,
      rgba(243, 192, 90, 0.35),
      rgba(71, 181, 185, 0.26) 55%,
      transparent 78%
    );
  }

  :root:not([data-theme]) .brand img {
    background: linear-gradient(160deg, #245d66, #1a444d 58%, #12343b);
    border-color: rgba(199, 248, 250, 0.62);
    box-shadow:
      0 12px 22px rgba(0, 0, 0, 0.44),
      0 0 0 1px rgba(243, 192, 90, 0.33),
      0 2px 8px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.36);
  }

  :root:not([data-theme]) .btn-ghost {
    background: color-mix(in srgb, var(--surface-alt), black 8%);
  }

  :root:not([data-theme]) th {
    background: color-mix(in srgb, var(--surface-alt), black 6%);
  }

  :root:not([data-theme]) .faq-question {
    color: var(--text);
  }

  :root:not([data-theme]) .highlight {
    background: linear-gradient(125deg, #256f78, #1b3556);
  }

  :root:not([data-theme]) .form-success {
    background: #153428;
    border-color: #2f7b57;
    color: #bdeed5;
  }
}

[data-reveal] {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--motion-normal) var(--ease-soft),
    transform var(--motion-normal) var(--ease-soft);
  transition-delay: var(--reveal-delay);
}

[data-reveal="left"] {
  transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(var(--reveal-distance), 0, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes ctaDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(10px, -8px, 0);
  }
}

.hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

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

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

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

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

  .field.full {
    grid-column: 1 / -1;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 76px 1rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .btn {
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
  }

  body.nav-open .site-nav {
    display: flex;
  }
}

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

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

  [data-reveal],
  .btn,
  .brand,
  .brand img,
  .nav-links a {
    transition: none;
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
  }
}
