:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #0ea5a4;
  --primary-dark: #0b8a89;
  --secondary: #1d4ed8;
  --secondary-dark: #1e40af;
  --soft: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.main-site.is-hidden {
  display: none;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(circle at 20% 80%, rgba(14, 165, 164, 0.18), transparent 48%),
    radial-gradient(circle at 85% 12%, rgba(29, 78, 216, 0.15), transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease;
}

.intro-overlay-hide {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  padding: 24px;
}

.intro-butterfly {
  width: min(44vw, 320px);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.15));
  transform: translate(-46vw, 38vh) scale(0.74) rotate(-8deg);
  animation: butterflyEntry 3.8s cubic-bezier(0.2, 0.85, 0.2, 1) forwards,
             butterflyFloat 3.2s ease-in-out 3.8s infinite;
}

.intro-title {
  margin: 20px 0 8px;
  font-size: clamp(28px, 4.2vw, 46px);
}

.intro-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.intro-start {
  min-width: 140px;
}

.intro-start[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.menu {
  display: flex;
  gap: 18px;
}

.menu a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.menu a:hover,
.footer-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}

.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  margin: 8px 0 16px;
}

h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.lead-small {
  color: var(--muted);
  margin: 0 0 16px;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  background: #eef2ff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.section {
  padding: 28px 0 36px;
}

.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
}

.security-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .cards-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }
}

@keyframes butterflyEntry {
  0% {
    transform: translate(-46vw, 38vh) scale(0.74) rotate(-8deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  45% {
    transform: translate(-18vw, 8vh) scale(0.9) rotate(5deg);
  }
  80% {
    transform: translate(2vw, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes butterflyFloat {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(0, -8px) scale(1.02) rotate(1.2deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}
