/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root { --site-header-height: 61px; --site-header-offset: calc(var(--site-header-height) + env(safe-area-inset-top, 0px)); }

html,
body {
  overscroll-behavior-y: none;
  background-color: #fcfbf8;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--site-header-offset) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  padding-top: var(--site-header-offset);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

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

ul {
  list-style: none;
}

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

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal { opacity: 1; transform: none; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 20px;
  height: 20px;
  position: relative;
  border-radius: 4px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: #555;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
}

.nav-link-dropdown svg {
  width: 11px;
  height: 11px;
  opacity: 0.45;
  margin-top: 1px;
  transition: transform 0.2s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid #dfdbd6;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-login:hover {
  background: #f5f3ef;
  border-color: #d0ccc7;
}

.btn-get-started {
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #1a1a1a;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-get-started:hover {
  background: #303030;
}

/* ===== HERO SECTION ===== */
/* ===== HERO DECORATIONS (3D iridescent floats) ===== */
.hero-decor {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  z-index: 1;
  cursor: pointer;
  scale: 1;
  transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, scale;
}

.hero-decor:hover {
  scale: 1.18;
}

.hero-decor--sparkles-lg {
  width: 150px;
  top: 14%;
  left: 6%;
  animation: hero-float-a 6.5s ease-in-out infinite;
}

.hero-decor--rocket {
  width: 130px;
  bottom: 14%;
  right: 7%;
  animation: hero-float-c 6s ease-in-out infinite;
}

@keyframes hero-float-a {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(-5deg); }
}

@keyframes hero-float-c {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(-16px) rotate(22deg); }
}

/* Keep hero content above decorations */
.hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-decor--sparkles-lg { width: 100px; top: 6%; left: 3%; }
  .hero-decor--rocket { width: 84px; bottom: 16%; right: 4%; }
}

@media (max-width: 600px) {
  .hero-decor--sparkles-lg { width: 58px; top: 4%; left: 4%; }
  /* Hide rocket on mobile — consistently overlaps the company logos row */
  .hero-decor--rocket { display: none; }
}

.hero {
  position: relative;
  min-height: calc(100vh - 60px); /* full viewport minus sticky header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
}

/* ── Aurora background ── */
.aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 20%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

/* Blue blob — top left */
.aurora__blob--1 {
  width: 55%;
  height: 55%;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.7) 0%, rgba(0, 113, 227, 0) 70%);
  animation: aurora-float-1 25s ease-in-out infinite;
}

/* Blue blob — top right */
.aurora__blob--2 {
  width: 45%;
  height: 50%;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(60, 150, 255, 0.5) 0%, rgba(60, 150, 255, 0) 70%);
  animation: aurora-float-2 30s ease-in-out infinite;
}

/* Rose blob — bottom center */
.aurora__blob--3 {
  width: 60%;
  height: 50%;
  bottom: -15%;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 70, 120, 0.55) 0%, rgba(255, 70, 120, 0) 70%);
  animation: aurora-float-3 28s ease-in-out infinite;
}

@keyframes aurora-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(6%, 8%) scale(1.05); }
  66%      { transform: translate(-4%, 4%) scale(0.97); }
}

@keyframes aurora-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-8%, 6%) scale(1.03); }
  66%      { transform: translate(4%, -4%) scale(0.98); }
}

@keyframes aurora-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(8%, -6%) scale(1.06); }
  66%      { transform: translate(-6%, -3%) scale(0.95); }
}

/* Smooth fade at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, #fcfbf8 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin-bottom: 14px;
  color: #1a1a1a;
}

.hero p {
  font-size: 19px;
  color: #777;
  margin-bottom: 44px;
  font-weight: 400;
}

/* ===== FAQ SECTION ===== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 80px 24px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.pricing-section > h2,
.pricing-section > h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1a1a1a;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-subtitle {
  font-size: 16px;
  color: #666;
  margin-top: 14px;
  margin-bottom: 56px;
  letter-spacing: -0.005em;
  line-height: 1.4;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 40px 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 14px;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-login,
  .btn-get-started {
    padding: 7px 11px;
    font-size: 12.5px;
    white-space: nowrap;
    line-height: 1;
  }
  .btn-login {
    /* On very small screens, hide login button to reduce header crowding */
    display: none;
  }
  .logo {
    font-size: 15px;
    gap: 6px;
  }
  .logo-icon {
    width: 18px;
    height: 18px;
  }
  .hero {
    min-height: calc(100vh - 60px);
    padding: 40px 20px 40px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 16px;
  }
  .footer {
    padding: 20px 20px 24px;
  }
  .pricing-section > h2,
.pricing-section > h1 {
    font-size: 28px;
  }
}

/* ===== MOBILE HAMBURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  color: #1a1a1a;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.mobile-menu-toggle svg {
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86%, 360px);
  background: #fcfbf8;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

.mobile-menu-overlay.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu-brand {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.mobile-menu-close {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  color: #1a1a1a;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-footer .btn-login,
.mobile-menu-footer .btn-get-started {
  display: block !important;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  white-space: nowrap;
}

/* Show hamburger / hide regular nav items on tablet + mobile */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header-inner .nav-actions {
    display: none;
  }
}

/* Shared header booking dropdown. Native buttons and links keep keyboard behavior. */
.demo-booking { position: relative; }
.demo-booking > button { border: 0; cursor: pointer; font-family: inherit; }
.demo-booking-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 268px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
  z-index: 210;
}
.demo-booking-popover[hidden] { display: none; }
.demo-booking-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 9px;
  color: #1a1a1a;
}
.demo-booking-person:hover { background: #f5f4f1; }
.demo-booking-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0eeea;
  font-size: 12px;
  font-weight: 700;
}
.demo-booking-person-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.demo-booking-person-copy strong { font-size: 14px; }
.demo-booking-person-copy > span { font-size: 12px; color: #777; }
.demo-booking button:focus-visible,
.demo-booking a:focus-visible { outline: 2px solid #0a66c2; outline-offset: 3px; }
.mobile-menu-footer .demo-booking-popover { top: auto; bottom: calc(100% + 10px); }

/* Shared public-site canvas. One composited layer, behind content and controls.
   Hero's local aurora remains unchanged; these are its colors at 25% strength. */
body { isolation: isolate; --site-atmosphere-intensity: .25; }
body::before {
  content: '';
  position: fixed;
  inset: -4%;
  z-index: -1;
  pointer-events: none;
  opacity: var(--site-atmosphere-intensity);
  background:
    radial-gradient(ellipse 68% 75% at 0% 8%, rgba(0,113,227,.42), transparent 75%),
    radial-gradient(ellipse 62% 68% at 100% 14%, rgba(60,150,255,.30), transparent 76%),
    radial-gradient(ellipse 75% 60% at 52% 100%, rgba(255,70,120,.33), transparent 78%);
  animation: site-atmosphere-drift 48s ease-in-out infinite alternate;
}
body:has(.legal-page, .privacy-page) { --site-atmosphere-intensity: .15; }
/* Only page canvases lose their opaque fill. Cards, forms and popovers retain it. */
body .solution-page { background: transparent; }
.home .hero::after { background: none; }
@keyframes site-atmosphere-drift {
  from { transform: translate3d(-1%, -1%, 0); }
  to { transform: translate3d(1%, 1%, 0); }
}
@media (max-width: 700px) {
  body { --site-atmosphere-intensity: .20; }
  body:has(.legal-page, .privacy-page) { --site-atmosphere-intensity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; transform: none; }
}
