:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #f1f4f7;
  --text: #1b2430;
  --muted: #5f6a77;
  --border: #d9e0e8;
  --accent: #1f4b7a;
  --accent-strong: #16385c;
  --shadow: 0 18px 40px rgba(15, 23, 32, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Optima", "Candara", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbfd 0%, #f2f5f8 100%);
  min-height: 100vh;
}

body.preload {
  opacity: 0;
}

body.page-ready {
  opacity: 1;
  transition: opacity 0.8s ease;
}

section {
  scroll-margin-top: 96px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(249, 251, 253, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 32, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.logo {
  font-family: "Palatino Linotype", "Book Antiqua", "Palatino", "Georgia", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.nav {
  display: none;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding: 6px 0;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

.nav-panel {
  display: grid;
  gap: 16px;
  padding: 0 4% 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  background: rgba(249, 251, 253, 0.98);
}

.site-header.open .nav-panel {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

.nav-panel a {
  color: var(--muted);
}

.nav-panel a.btn {
  color: #fff;
  text-align: center;
}

.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero .container,
.hero .client-strip {
  position: relative;
  z-index: 1;
}

.top-rgb {
  position: absolute;
  top: -140px;
  left: -10%;
  right: -10%;
  height: 500px;
  background: linear-gradient(
    110deg,
    rgba(244, 186, 232, 0.85),
    rgba(196, 220, 255, 0.8),
    rgba(208, 190, 255, 0.82),
    rgba(190, 236, 255, 0.78),
    rgba(196, 246, 232, 0.78),
    rgba(248, 210, 240, 0.78)
  );
  background-size: 220% 220%;
  filter: blur(42px);
  opacity: 0.7;
  transform: translateZ(0);
  animation: rgbFlow 40s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.2) 78%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.2) 78%, rgba(0, 0, 0, 0) 100%);
}

@keyframes rgbFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: "Palatino Linotype", "Book Antiqua", "Palatino", "Georgia", serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 75, 122, 0.18);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card-inner {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.hero-stat {
  display: grid;
  gap: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  font-weight: 600;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.client-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section.muted {
  background: var(--surface-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 32, 0.05);
}

.glow-card {
  position: relative;
  z-index: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--radius) + 5px);
  background:
    radial-gradient(90% 90% at 12% 12%, rgba(244, 150, 226, 0.94) 0%, rgba(244, 150, 226, 0.62) 14%, transparent 28%),
    radial-gradient(90% 90% at 12% 90%, rgba(150, 214, 255, 0.92) 0%, rgba(150, 214, 255, 0.56) 14%, transparent 30%),
    radial-gradient(90% 90% at 92% 10%, rgba(178, 154, 255, 0.94) 0%, rgba(178, 154, 255, 0.6) 14%, transparent 30%),
    radial-gradient(90% 90% at 92% 90%, rgba(144, 206, 255, 0.9) 0%, rgba(144, 206, 255, 0.54) 16%, transparent 32%),
    radial-gradient(120% 60% at 50% 6%, rgba(186, 164, 255, 0.74) 0%, rgba(186, 164, 255, 0.44) 16%, transparent 34%),
    radial-gradient(120% 60% at 50% 94%, rgba(156, 206, 255, 0.72) 0%, rgba(156, 206, 255, 0.42) 16%, transparent 34%),
    radial-gradient(60% 120% at 6% 50%, rgba(224, 156, 238, 0.74) 0%, rgba(224, 156, 238, 0.4) 16%, transparent 34%),
    radial-gradient(60% 120% at 94% 50%, rgba(146, 210, 255, 0.72) 0%, rgba(146, 210, 255, 0.4) 16%, transparent 34%),
    radial-gradient(110% 100% at 50% 100%, rgba(176, 198, 255, 0.76) 0%, rgba(176, 198, 255, 0.46) 18%, transparent 34%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -2;
  pointer-events: none;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 32, 0.05);
  z-index: -1;
  pointer-events: none;
  transition: box-shadow 0.45s ease;
}

.glow-card:hover::before,
.glow-card:focus-within::before {
  opacity: 1;
}

.glow-card:hover::after,
.glow-card:focus-within::after {
  box-shadow: 0 18px 36px rgba(15, 23, 32, 0.08);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2f6;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}

.bullet-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
}

.step-grid {
  display: grid;
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card.glow-card,
.step.glow-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.step-index {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}

.use-case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.use-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-details .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-details a {
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 28px rgba(15, 23, 32, 0.05);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-size: 0.9rem;
  color: var(--text);
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fbfcfe;
}

input::placeholder,
textarea::placeholder {
  color: #9aa5b1;
}

.error {
  color: #b23a48;
  font-size: 0.82rem;
  min-height: 1em;
}

.form-success {
  color: #1e6f5c;
  margin: 8px 0 0;
  min-height: 1.2em;
}

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: #f9fbfd;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .nav-panel {
    display: none;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .card-grid,
  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 96px 0 48px;
  }

  .section {
    padding: 88px 0;
  }

  .hero-card-inner {
    padding: 32px;
  }

  .contact-form {
    padding: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
