:root {
  --bg: #f4f7fd;
  --bg-strong: #ffffff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.65);
  --border: rgba(15, 23, 42, 0.06);
  --muted: #65748a;
  --ink: #0f172a;
  --ink-strong: #0b1220;
  --accent: #3aa2ff;
  --accent-2: #33d1b5;
  --accent-3: #ff8b5f;
  --accent-soft: rgba(58, 162, 255, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 15% 22%, rgba(97, 178, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(137, 121, 255, 0.14), transparent 34%),
    radial-gradient(circle at 70% 72%, rgba(72, 214, 191, 0.18), transparent 38%),
    radial-gradient(circle at 24% 78%, rgba(255, 168, 128, 0.12), transparent 42%),
    linear-gradient(180deg, #fdfefe 0%, #f5f7fc 46%, #eef3fb 100%);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.bg-shell {
  position: relative;
  z-index: 1;
}

.bg-shell::before {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 260px 260px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 280px 280px;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

p {
  color: var(--ink);
}

.text-slate-900,
.text-slate-800 {
  color: #0f172a !important;
}

.text-slate-700 {
  color: #1f2937 !important;
}

.text-slate-600 {
  color: #334155 !important;
}

.text-slate-500 {
  color: #475569 !important;
}

.text-slate-400 {
  color: #64748b !important;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.35rem;
  color: #475569;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  height: 2px;
  width: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent), #8c76ff);
  transition: width 0.32s cubic-bezier(0.4, 0.1, 0.2, 1), opacity 0.32s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--ink-strong);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link--active::after {
  width: 1.8rem;
  opacity: 1;
}

.nav-link--active,
.nav-link.is-active {
  color: var(--ink-strong);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

#site-header.is-scrolled > div {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.haze {
  position: absolute;
  width: 480px;
  height: 480px;
  filter: blur(130px);
  opacity: 0.55;
  mix-blend-mode: screen;
  z-index: 0;
  animation: float-haze 24s ease-in-out infinite alternate;
  will-change: transform;
}

.haze-one {
  background: rgba(83, 176, 255, 0.32);
  top: -120px;
  left: -80px;
}

.haze-two {
  background: rgba(141, 132, 255, 0.26);
  right: -120px;
  top: 18%;
}

.haze-three {
  background: rgba(72, 214, 191, 0.26);
  bottom: -140px;
  left: 26%;
}

.glass-panel,
.glass-chip,
.glass-widget,
.card,
.service-card,
.stripe-card,
.timeline-node,
.contact-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  overflow: hidden;
}

.glass-panel::after,
.glass-widget::after,
.card::after,
.service-card::after,
.stripe-card::after,
.timeline-node::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
}

.glass-chip {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.glass-elevated {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 34px 96px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.glass-elevated::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(58, 162, 255, 0.18), rgba(51, 209, 181, 0.18), rgba(140, 118, 255, 0.16));
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.glass-subtle {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.65));
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.1);
}

.glass-panel > *,
.card > *,
.service-card > *,
.stripe-card > *,
.timeline-node > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

.card,
.service-card,
.stripe-card,
.timeline-node,
.contact-card {
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  transform: translateY(var(--stack-offset, 0px));
}

.card:hover,
.service-card:hover,
.stripe-card:hover,
.timeline-node:hover,
.contact-card:hover {
  transform: translateY(calc(var(--stack-offset, 0px) - 4px)) scale(1.01);
  border-color: rgba(58, 162, 255, 0.22);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(58, 162, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7));
}

.metric-chip {
  position: relative;
  overflow: hidden;
  padding-left: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent), #8c76ff);
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(58, 162, 255, 0.25);
}

.metric-chip:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(58, 162, 255, 0.22);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.snapshot-stack {
  gap: 0.75rem;
}

.snapshot-stack .metric-chip {
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
}

.story-badge {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-strong);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-weight: 600;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--ink-strong);
  letter-spacing: 0.08em;
}

.hero-grid {
  position: relative;
  isolation: isolate;
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 120px 120px;
  z-index: 0;
}

.hero-window {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.92));
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.14);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-window::after {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: rotate(8deg);
  opacity: 0.35;
  pointer-events: none;
  animation: sheen-sweep 11s ease-in-out infinite;
}

.hero-title {
  background: linear-gradient(120deg, #1d4ed8, #0ea5e9, #14b8a6);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.hero-title .bg-gradient-to-r {
  background-image: linear-gradient(120deg, var(--accent-2), var(--accent), #8c76ff) !important;
  text-shadow: none;
}

.hero-body {
  margin-top: 0.4rem;
}

.stripe-card {
  --stripe-accent: var(--accent);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  padding: 1.4rem;
}

.stripe-card.tone-blue {
  --stripe-accent: #3aa2ff;
}

.stripe-card.tone-orange {
  --stripe-accent: var(--accent-3);
}

.stripe-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stripe-accent), var(--accent-2), #8c76ff);
  opacity: 0.9;
  border-radius: 22px 22px 0 0;
  pointer-events: none;
}

.stripe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stripe-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.split-view::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: 2px;
  background: linear-gradient(180deg, rgba(58, 162, 255, 0.2), rgba(140, 118, 255, 0.12), rgba(51, 209, 181, 0.2));
  opacity: 0.6;
  filter: blur(0.2px);
  pointer-events: none;
}

.pill-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-strong);
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.service-card {
  --tile-accent: var(--accent);
  border-radius: 18px;
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tile-accent), var(--accent-2), rgba(140, 118, 255, 0.7));
  opacity: 0.75;
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.service-card p.text-xs {
  color: #64748b !important;
  font-style: italic;
  letter-spacing: 0.01em;
}

.service-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent), #8c76ff);
  box-shadow: 0 0 0 6px rgba(58, 162, 255, 0.18);
}

.card {
  border-radius: 18px;
  padding: 1.25rem;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(58, 162, 255, 0.12), rgba(255, 255, 255, 0.8));
  color: var(--ink-strong);
  font-weight: 700;
  margin-bottom: 0.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timeline {
  display: grid;
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: none;
}

.timeline-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #e0f8ff, var(--accent));
  box-shadow: 0 0 0 5px rgba(58, 162, 255, 0.18);
}

.timeline-node .step {
  margin: 0;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: stretch;
}

.contact-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  border-radius: 18px;
}

.contact-card:nth-child(2) {
  --stack-offset: 8px;
}

.contact-card:nth-child(3) {
  --stack-offset: 14px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.95rem 1rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
  color: var(--ink-strong);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: rgba(58, 162, 255, 0.35);
}

.footer-dock {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 255, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  overflow: hidden;
}

.footer-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  opacity: 0.6;
  pointer-events: none;
}

.footer-dock::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  opacity: 0.8;
}

.will-reveal,
.is-visible {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.will-reveal {
  opacity: 0;
  transform: translateY(calc(var(--stack-offset, 0px) + 16px));
}

.is-visible {
  opacity: 1;
  transform: translateY(var(--stack-offset, 0px));
}

@media (max-width: 1024px) {
  .grid-overlay {
    background-size: 220px 220px;
    opacity: 0.14;
  }

  .hero-window {
    border-radius: 22px;
  }

  .glass-panel,
  .card,
  .service-card,
  .stripe-card,
  .timeline-node,
  .contact-card {
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
  }

  .haze {
    filter: blur(110px);
    opacity: 0.5;
  }
}

@media (max-width: 640px) {
  .grid-overlay {
    display: none;
  }

  .hero-window {
    border-radius: 18px;
  }

  .glass-panel,
  .card,
  .service-card,
  .stripe-card,
  .timeline-node,
  .contact-card {
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
  }

  .hero-grid::before {
    background-size: 100px 100px;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

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

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

@keyframes sheen-sweep {
  0% {
    transform: translateX(-20%) rotate(8deg);
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
  100% {
    transform: translateX(25%) rotate(8deg);
    opacity: 0.12;
  }
}

@keyframes float-haze {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, -16px, 0) scale(1.03);
  }
}
