:root {
  --bg: #f9fbff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: #ffffff;
  --text: #121a2a;
  --muted: #4f5d76;
  --line: rgba(146, 165, 199, 0.34);
  --accent: #0f6fff;
  --accent-2: #00b894;
  --radius: 20px;
  --shadow: 0 18px 44px rgba(25, 47, 87, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #f8fbff 0%, #f4f8ff 52%, #f7fdf9 100%);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -40vh -30vw;
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 111, 255, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 75% 15%, rgba(0, 184, 148, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 60% 75%, rgba(111, 111, 255, 0.08) 0%, transparent 36%);
  z-index: -2;
  animation: driftMesh 20s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(86, 107, 141, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 107, 141, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  box-shadow: 0 0 22px rgba(15, 111, 255, 0.45);
  transition: width 0.08s linear;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.bg-orb--one {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -70px;
  background: rgba(15, 111, 255, 0.2);
  animation: floatOne 10s ease-in-out infinite;
}

.bg-orb--two {
  width: 350px;
  height: 350px;
  bottom: -160px;
  left: -120px;
  background: rgba(0, 184, 148, 0.18);
  animation: floatTwo 12s ease-in-out infinite;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92%);
}

.section {
  padding: 84px 0;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-photo-wrap {
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(
    130deg,
    rgba(15, 111, 255, 0.68),
    rgba(0, 184, 148, 0.55) 45%,
    rgba(15, 111, 255, 0.28)
  );
  box-shadow: 0 30px 50px rgba(34, 67, 125, 0.2), 0 0 55px rgba(15, 111, 255, 0.16);
  transform: rotate(1.6deg);
  animation: floatCard 6s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  filter: saturate(1.04) contrast(1.02);
}

.hero-photo-wrap:hover {
  box-shadow: 0 35px 62px rgba(34, 67, 125, 0.24), 0 0 60px rgba(15, 111, 255, 0.24);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 20% 6% auto auto;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(15, 111, 255, 0.24);
  border-radius: 44px;
  transform: rotate(20deg);
  animation: spinFrame 18s linear infinite;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.7rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.1rem;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
}

p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(95deg, var(--accent), #1f93ff 48%, var(--accent-2));
  background-size: 190% 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
  box-shadow: 0 12px 30px rgba(15, 111, 255, 0.26);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45), transparent 65%);
  transform: translateX(-140%);
  transition: transform 0.55s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 35px rgba(15, 111, 255, 0.3);
  background-position: 100% 0;
}

.btn:hover::after {
  transform: translateX(140%);
}

.btn:active {
  transform: translateY(0);
}

.btn--secondary {
  margin-top: 18px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.card,
.focus-item {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::after,
.focus-item::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 100%;
  top: 0;
  left: -150%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5), transparent 80%);
  transition: left 0.6s ease;
}

.card:hover,
.focus-item:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(15, 111, 255, 0.4);
  box-shadow: 0 22px 35px rgba(42, 70, 120, 0.16);
}

.card:hover::after,
.focus-item:hover::after {
  left: 120%;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.section--manifest {
  position: relative;
}

.section--manifest::before {
  content: "";
  position: absolute;
  inset: 20px 0;
  background: linear-gradient(120deg, rgba(15, 111, 255, 0.1), rgba(0, 184, 148, 0.08));
  border-top: 1px solid rgba(15, 111, 255, 0.18);
  border-bottom: 1px solid rgba(15, 111, 255, 0.18);
  z-index: -1;
}

.manifest {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #1f2f47;
}

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

a:hover {
  color: #0a54c2;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes driftMesh {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, -3%, 0) scale(1.08);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, 22px);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(28px, -18px);
  }
}

@keyframes spinFrame {
  to {
    transform: rotate(380deg);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: rotate(1.6deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-10px);
  }
}

@media (max-width: 920px) {
  body::after {
    background-size: 28px 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-photo-wrap {
    width: min(86vw, 360px);
    transform: none;
    animation: floatCardMobile 5.5s ease-in-out infinite;
  }

  .cards-grid,
  .focus-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero::after {
    width: 170px;
    height: 170px;
    right: 2%;
  }

  .section {
    padding: 68px 0;
  }
}

@keyframes floatCardMobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

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