:root {
  --color-bg: #0b1220;
  --color-bg-alt: #111a2e;
  --color-surface: #16213a;
  --color-surface-alt: #1c2a47;
  --color-border: #263457;
  --color-text: #e7ecf7;
  --color-text-muted: #9fb0cc;
  --color-accent: #22d3ee;
  --color-accent-2: #6366f1;
  --color-accent-gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --radius: 14px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  flex-shrink: 0;
}

.tagline {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.logo-text .dot { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-accent-gradient);
  color: #071021 !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--color-text);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-accent);
  background: var(--color-surface);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 780px;
}

.hero h1 span {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 0 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--color-accent-gradient);
  color: #071021;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.5);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

/* Sections */
section { padding: 80px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card a.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.stat { text-align: center; }

.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.step .step-num {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h4 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}

.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: var(--color-text-muted); margin: 0 0 28px; }

/* Page header (inner pages) */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--color-accent); }

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-muted);
}

.list-check li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Forms */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info .item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .item h4 { margin: 0 0 4px; }
.contact-info .item p { margin: 0; color: var(--color-text-muted); }
.contact-info .item a { color: var(--color-accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
  background: var(--color-bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--color-text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--color-accent); }

.footer-about p { color: var(--color-text-muted); font-size: 0.92rem; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Motion & scroll-reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal.in-view {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body { animation: fadeIn 0.4s ease; }

.hero {
  isolation: isolate;
}

.hero::before {
  animation: floatBlob 16s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -220px;
  left: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
  pointer-events: none;
  animation: floatBlob 20s ease-in-out infinite reverse;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}

.btn-primary,
.nav-cta {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

.hero h1 span {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* Animated nav underline */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent-gradient);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after {
  width: 100%;
}

/* Button shine sweep */
.btn { position: relative; overflow: hidden; }

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::before { left: 130%; }

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
}

/* Smoother, springier card/step motion */
.card,
.step,
.stat {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  box-shadow: 0 20px 40px -20px rgba(34, 211, 238, 0.25);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--color-accent-gradient);
}

.card-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}

.step:hover,
.stat:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

/* Sticky header gains depth once page scrolls */
.site-header.scrolled {
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-5, .steps, .stats, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

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

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .grid-3, .grid-2, .grid-5, .steps, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .form-card { padding: 28px 20px; }
}
