﻿:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --text: #0c111b;
  --muted: #51607a;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(12, 17, 27, 0.1);
  --accent: #1877f2;
  --accent-soft: #dce9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Heebo", "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at 5% 15%, #eaf2ff 0%, transparent 35%),
    radial-gradient(circle at 95% 85%, #d7ebff 0%, transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite;
}

.blob-a {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 70px;
  background: #a8d1ff;
}

.blob-b {
  width: 300px;
  height: 300px;
  left: -90px;
  top: 280px;
  background: #b7ffe5;
  animation-delay: 1.8s;
}

.blob-c {
  width: 360px;
  height: 360px;
  left: 35%;
  bottom: -150px;
  background: #ffe8bf;
  animation-delay: 3s;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 56px);
  backdrop-filter: blur(18px);
  background: rgba(243, 246, 251, 0.7);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.top-nav nav {
  display: flex;
  gap: 20px;
}

.top-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  opacity: 0.88;
  transition: opacity 200ms ease, transform 200ms ease;
}

.top-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  margin: clamp(28px, 5vw, 64px) 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.hero {
  min-height: min(76vh, 760px);
  display: grid;
  align-content: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(236, 246, 255, 0.9) 100%);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  max-width: 18ch;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  margin-bottom: 8px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.26rem);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.28);
}

.btn-ghost {
  background: var(--accent-soft);
  color: #12315f;
}

.grid {
  display: grid;
  gap: 16px;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(12, 17, 27, 0.07);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  transform-style: preserve-3d;
}

.link-card {
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(12, 17, 27, 0.12);
  border-color: rgba(24, 119, 242, 0.36);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  text-align: center;
  margin-top: 30px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
}

.reveal.visible {
  animation: revealUp 700ms cubic-bezier(0.21, 0.65, 0.21, 1) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -20px, 0) scale(1.05);
  }
}

@media (max-width: 980px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-nav {
    gap: 10px;
    flex-direction: column;
  }

  .top-nav nav {
    gap: 12px;
  }

  .cards-2,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .section {
    border-radius: 20px;
    padding: 20px;
  }
}
