/* ===== Base ===== */
:root {
  --bg: #f6f5ff;
  --surface: #ffffff;
  --ink: #1c1633;
  --muted: #5b5773;
  --brand: #6c4cf1;
  --brand-2: #f4508a;
  --accent: #20c0a0;
  --ring: rgba(108, 76, 241, 0.18);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(28, 22, 51, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 22, 51, 0.06);
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-link:hover {
  background: var(--ring);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 9vh 5vw;
  background:
    radial-gradient(60% 80% at 15% 10%, rgba(108, 76, 241, 0.16), transparent 60%),
    radial-gradient(50% 70% at 90% 20%, rgba(244, 80, 138, 0.14), transparent 60%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  background: linear-gradient(100deg, var(--ink), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.8s var(--ease) both;
}

.hero p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 30px;
  animation: rise 0.8s var(--ease) 0.12s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.8s var(--ease) 0.24s both;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(108, 76, 241, 0.35);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(108, 76, 241, 0.45); }

.btn-ghost {
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-ghost:hover { background: var(--ring); transform: translateY(-3px); }

/* Deck visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 26px;
  background: linear-gradient(160deg, #211644, #140e2c);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(28, 22, 51, 0.4);
  transform: rotate(-3deg);
  animation: float 5s ease-in-out infinite;
}

.deck-key {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.35);
}

.key-a { background: linear-gradient(160deg, #ff5f7a, #c8284f); }
.key-b { background: linear-gradient(160deg, #ffb64f, #e6831f); }
.key-c { background: linear-gradient(160deg, #35d0a4, #0f9d7e); }
.key-d { background: linear-gradient(160deg, #58a6ff, #2f6fe0); }
.key-e { background: linear-gradient(160deg, #a878ff, #6c3ce0); }
.key-f { background: linear-gradient(160deg, #e85bff, #a11fc9); }

/* ===== Sections ===== */
.section {
  padding: 80px 5vw;
}

.section-alt { background: #ffffff; }

.section-head {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

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

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(28, 22, 51, 0.06);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(28, 22, 51, 0.15);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

/* ===== Split layout ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.split-text h3 {
  margin: 24px 0 8px;
  font-size: 1.25rem;
}

.split-text h3:first-child { margin-top: 0; }

.split-text p { color: var(--muted); margin: 0 0 8px; }

.split-card {
  background: linear-gradient(160deg, var(--brand), #4b2ee0);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.split-card h3 { margin: 0 0 16px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(28, 22, 51, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(28, 22, 51, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq-item[open] { box-shadow: 0 18px 44px rgba(108, 76, 241, 0.16); }

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 20px 24px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  background: #171026;
  color: #d8d3ea;
  padding: 60px 5vw 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand p {
  color: #a89fc6;
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.footer-col h3 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: #a89fc6;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-col h3 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #a89fc6;
}

/* ===== Animations ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-14px); }
}

/* ===== Reveal on scroll ===== */
.card, .split-card, .faq-item {
  animation: rise 0.7s var(--ease) both;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 14px 5vw;
    box-shadow: 0 20px 40px rgba(28, 22, 51, 0.14);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .deck-key { width: 56px; height: 56px; }
  .section { padding: 56px 5vw; }
}