:root {
  color-scheme: light;
  --navy: #071A35;
  --royal: #0A84FF;
  --slate: #0B0B0B;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --line: rgba(7, 26, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  background: radial-gradient(circle at top left, #ffffff 0%, var(--surface) 44%, #eef5ff 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  /* Gradient text for all headings */
  background: linear-gradient(90deg, #ff7864 0%, #00dac2 45%, #4464ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Reset gradient for elements inside the site header (top navigation) */
header,
header a,
header .text-xl,
header h1,
header h2,
header h3,
header h4 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--navy) !important;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

::selection {
  background: rgba(10, 132, 255, 0.2);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(10, 132, 255, 0.32), transparent 40%), linear-gradient(135deg, #071A35 0%, #102c4f 50%, #091426 100%);
  transition: opacity 0.6s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-ring {
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--royal), #7dd3fc);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.12);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(10, 132, 255, 0.4);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.hero-orb {
  position: absolute;
  filter: blur(40px);
  opacity: 0.7;
  border-radius: 999px;
}

.hero-orb-a {
  top: -120px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: rgba(10, 132, 255, 0.32);
}

.hero-orb-b {
  bottom: -40px;
  right: -40px;
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.16);
}

.floating-card {
  animation: bob 3.6s ease-in-out infinite;
}

.apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apple-button:hover {
  transform: none;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.apple-button-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  color: var(--navy);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.apple-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-panel h1 {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.hero-figure img {
  box-shadow: 0 30px 90px rgba(7, 26, 53, 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.gradient-heading {
  background: linear-gradient(90deg, #ff7864 0%, #00dac2 45%, #4464ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(59, 130, 246, 0.2));
  color: #0b1f38;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid rgba(10, 132, 255, 0.14);
}

.stat-card,
.faq-card,
.proof-pill,
article,
section > div > div > div,
section > div > div {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.reveal {
  opacity: 1;
  transform: none;
}

section {
  position: relative;
}

section > div {
  position: relative;
  z-index: 1;
}

img,
a,
button,
summary,
article,
section > div {
  will-change: transform, opacity;
}

.rounded-\[2rem\], .rounded-\[1\.5rem\], .rounded-\[2\.5rem\] {
  border-color: rgba(7, 26, 53, 0.08);
}

@keyframes bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-panel, .hero-figure {
  will-change: transform, opacity;
}

.reveal {
  opacity: 1;
  transform: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  color: white;
  box-shadow: 0 14px 34px rgba(7, 26, 53, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@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;
  }
}
