/* iClare typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  scroll-behavior: smooth;
  color-scheme: light;
  --brand-navy: #10255f;
  --brand-blue: #176fc1;
  --brand-cyan: #18b9c7;
  --brand-ink: #0b1736;
  --brand-border: #e6ebf2;
}

html { scroll-padding-top: 88px; }

body {
  font-family: 'Inter', sans-serif;
  background: #f7f9fc;
  color: #17213a;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 { letter-spacing: -0.035em; }

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ambient motion */
@keyframes spin-slow-clockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-slow-counter {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes orbit-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

.animate-spin-slow {
  transform-origin: center;
  animation: spin-slow-clockwise 25s linear infinite;
}

.animate-spin-slow-reverse {
  transform-origin: center;
  animation: spin-slow-counter 35s linear infinite;
}

.animate-orbit-pulse {
  animation: orbit-pulse 4s ease-in-out infinite;
}

/* Glassmorphism utility */
.glass-premium {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(230, 235, 242, 0.9);
}

.site-header {
  box-shadow: 0 1px 0 rgba(15, 36, 85, 0.04);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 184px;
  height: 72px;
  overflow: visible;
}

.brand-logo {
  display: block;
  width: 184px;
  height: 116px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.08);
  transform-origin: left center;
}

.footer-brand {
  width: 168px;
  height: 64px;
  overflow: visible;
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 175px;
  height: 118px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.06);
  transform-origin: left center;
}

.hero-section {
  background:
    radial-gradient(circle at 82% 20%, rgba(24, 185, 199, 0.11), transparent 25%),
    radial-gradient(circle at 65% 58%, rgba(23, 111, 193, 0.08), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: linear-gradient(rgba(16, 37, 95, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 37, 95, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.eyebrow { box-shadow: 0 10px 30px rgba(15, 36, 85, 0.06); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 5px rgba(24, 185, 199, 0.11);
}

.hero-gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  box-shadow: 0 12px 28px rgba(23, 111, 193, 0.22);
}
.primary-button:hover { box-shadow: 0 16px 34px rgba(23, 111, 193, 0.3); }
.secondary-button { border: 1px solid var(--brand-border); background: rgba(255,255,255,0.72); }

.dashboard-shell {
  box-shadow: 0 32px 80px rgba(15, 36, 85, 0.16), 0 8px 28px rgba(15, 36, 85, 0.08);
}

.dashboard-shell::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), transparent 45%, rgba(24,185,199,0.18));
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

section[id] { position: relative; }
article, #ethernia-content, #booking-demo .bg-white {
  box-shadow: 0 1px 2px rgba(15, 36, 85, 0.03), 0 12px 35px rgba(15, 36, 85, 0.05);
}

.final-cta {
  background: linear-gradient(135deg, #071127 0%, #10255f 58%, #0d506f 100%);
}

.glass-dark {
  background: rgba(29, 29, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Timeline Custom Lines */
.timeline-line-gradient {
  background: linear-gradient(to bottom, #5662f3 0%, #8383ff 100%);
}

/* CSS transition helper */
.transition-all-custom {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text glow for active elements */
.text-glow-blue {
  text-shadow: 0 0 12px rgba(86, 98, 243, 0.3);
}

/* Smooth step transition for booking widget */
.booking-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.booking-step-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
  width: 100%;
}

@media (max-width: 767px) {
  .brand-lockup { width: 158px; height: 70px; }
  .brand-logo { width: 158px; height: 106px; transform: scale(1.04); }
  .hero-section { min-height: auto; }
  .dashboard-shell { border-radius: 22px; }
}

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