@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300..900&family=Noto+Sans+SC:wght@300..900&family=Plus+Jakarta+Sans:wght@400..800&display=swap');

:root {
  --bg:            oklch(0.985 0.008 285);
  --bg-tint:       oklch(0.97  0.020 285);
  --surface:       oklch(1     0     0);
  --surface-soft:  oklch(0.985 0.012 285);
  --ink:           oklch(0.20  0.040 285);
  --ink-soft:      oklch(0.42  0.045 285);
  --ink-muted:     oklch(0.62  0.030 285);
  --line:          oklch(0.92  0.020 285);
  --line-strong:   oklch(0.85  0.030 285);

  --primary:       oklch(0.62  0.220 285);
  --primary-deep:  oklch(0.50  0.230 285);
  --primary-soft:  oklch(0.94  0.050 285);
  --primary-glow:  oklch(0.78  0.180 285);

  --pink:          oklch(0.78  0.180 25);
  --pink-soft:     oklch(0.95  0.040 25);
  --cyan:          oklch(0.78  0.140 215);
  --cyan-soft:     oklch(0.94  0.040 215);
  --mint:          oklch(0.82  0.150 165);
  --mint-soft:     oklch(0.94  0.040 165);
  --amber:         oklch(0.82  0.150 75);
  --amber-soft:    oklch(0.95  0.045 75);

  --shadow-sm:  0 1px 2px oklch(0.55 0.18 285 / 0.06), 0 1px 1px oklch(0.55 0.18 285 / 0.04);
  --shadow-md:  0 4px 14px oklch(0.55 0.18 285 / 0.08), 0 2px 4px oklch(0.55 0.18 285 / 0.05);
  --shadow-lg:  0 18px 48px oklch(0.55 0.18 285 / 0.14), 0 6px 16px oklch(0.55 0.18 285 / 0.08);
  --shadow-xl:  0 32px 80px oklch(0.55 0.18 285 / 0.20), 0 12px 24px oklch(0.55 0.18 285 / 0.10);
  --shadow-pop: 0 24px 60px oklch(0.55 0.18 285 / 0.28);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --sans:    'Outfit', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --display: 'Outfit', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "ss01", "kern", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--primary); color: white; }

/* ============ BACKDROP BLOBS ============ */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.blobs .b1 {
  width: 620px; height: 620px;
  background: oklch(0.78 0.18 285 / 0.55);
  top: -180px; left: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.blobs .b2 {
  width: 540px; height: 540px;
  background: oklch(0.82 0.14 215 / 0.45);
  top: 25%; right: -160px;
  animation: drift2 26s ease-in-out infinite alternate;
}
.blobs .b3 {
  width: 460px; height: 460px;
  background: oklch(0.85 0.12 25 / 0.35);
  bottom: -120px; left: 35%;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(80px, 60px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-90px, 100px); } }
@keyframes drift3 { from { transform: translate(0,0); } to { transform: translate(120px, -80px); } }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px oklch(0.62 0.22 285 / 0.15);
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto 0;
  max-width: 1200px;
  padding: 0 28px;
}
.nav-wrap {
  background: oklch(1 0 0 / 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid oklch(1 0 0 / 0.8);
  border-radius: var(--radius-pill);
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) { .site-header { padding: 0 16px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 30% 28%, oklch(0.92 0.05 285), oklch(0.62 0.22 285));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 14px oklch(0.55 0.22 285 / 0.35), inset 0 1px 0 oklch(1 0 0 / 0.5);
  position: relative;
}
.brand-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 7px;
  background: linear-gradient(135deg, transparent 50%, oklch(1 0 0 / 0.25));
}
.brand-icon span { position: relative; z-index: 1; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: oklch(0.95 0.02 285); }

.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease) !important;
}
.nav-cta:hover {
  background: var(--primary) !important;
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 22px 0 24px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(115deg, oklch(0.62 0.22 285), oklch(0.70 0.20 320), oklch(0.78 0.16 215));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(17px, 1.4vw, 19.5px);
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px oklch(0.20 0.04 285 / 0.30);
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px oklch(0.62 0.22 285 / 0.40);
}
.btn-ghost {
  background: oklch(1 0 0 / 0.7);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: white;
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; }

.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-muted);
  font-size: 13.5px;
}
.hero-trust .stars { color: var(--amber); letter-spacing: 1px; font-size: 16px; }
.hero-trust .sep { width: 4px; height: 4px; background: var(--line-strong); border-radius: 50%; }

/* ============ PHONE MOCK ============ */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.phone-bg-orb {
  position: absolute;
  inset: 10% -10% 10% -10%;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.85 0.13 285 / 0.6), transparent 60%),
    radial-gradient(circle at 75% 70%, oklch(0.82 0.12 215 / 0.5), transparent 60%);
  filter: blur(40px);
  border-radius: 50%;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 580px;
  background: linear-gradient(165deg, oklch(0.30 0.04 285), oklch(0.18 0.04 285));
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 50px 100px oklch(0.20 0.06 285 / 0.4),
    0 20px 40px oklch(0.20 0.06 285 / 0.2),
    inset 0 0 0 2px oklch(0.45 0.04 285 / 0.4),
    inset 0 0 0 4px oklch(0.18 0.04 285);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: oklch(0.10 0.02 285);
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, oklch(0.22 0.05 285), oklch(0.14 0.04 285));
  border-radius: 36px;
  padding: 56px 16px 18px;
  overflow: hidden;
  position: relative;
  color: white;
}

.bubble {
  max-width: 80%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 500;
}
.bubble.ai {
  background: oklch(0.30 0.04 285 / 0.8);
  border: 1px solid oklch(1 0 0 / 0.06);
}
.bubble.me {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}
.bubble.ai { border-bottom-left-radius: 6px; }
.bubble.q {
  background: oklch(0.32 0.06 285 / 0.85);
  font-family: 'Plus Jakarta Sans', var(--sans);
  font-size: 11px;
  line-height: 1.5;
}
.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: oklch(0.62 0.22 285 / 0.18);
  color: oklch(0.85 0.14 285);
  border: 1px solid oklch(0.62 0.22 285 / 0.25);
}

.floater {
  position: absolute;
  border-radius: 18px;
  padding: 12px 16px;
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid oklch(1 0 0 / 0.5);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.floater .ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 16px;
}
.floater.f1 {
  top: 8%;
  left: -6%;
  animation: float1 6s ease-in-out infinite;
}
.floater.f2 {
  bottom: 16%;
  right: -8%;
  animation: float2 7s ease-in-out infinite;
}
.floater.f3 {
  top: 46%;
  right: -14%;
  animation: float1 5.5s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@media (max-width: 920px) {
  .phone-stage { min-height: 540px; }
  .floater.f3 { display: none; }
}

/* ============ STATS STRIP ============ */
.stats {
  padding: 28px 0;
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: oklch(1 0 0 / 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid oklch(1 0 0 / 0.8);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}
.stat .num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num span { color: var(--primary); font-size: 22px; }
.stat .label { font-size: 13px; color: var(--ink-muted); margin-top: 4px; font-weight: 500; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; }
  .stat .num { font-size: 28px; }
}

/* ============ SECTION TITLES ============ */
.section {
  padding: 110px 0;
  position: relative;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  margin-top: 18px;
  letter-spacing: -0.035em;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
}

/* ============ HOW IT WORKS — 3 cards ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.step-card .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 8px 18px oklch(0.62 0.22 285 / 0.30);
}
.step-card:nth-child(1) .step-icon { background: linear-gradient(140deg, oklch(0.72 0.20 285), oklch(0.55 0.24 295)); }
.step-card:nth-child(2) .step-icon { background: linear-gradient(140deg, oklch(0.78 0.16 215), oklch(0.62 0.20 230)); box-shadow: 0 8px 18px oklch(0.62 0.20 215 / 0.35); }
.step-card:nth-child(3) .step-icon { background: linear-gradient(140deg, oklch(0.82 0.16 165), oklch(0.65 0.18 175)); box-shadow: 0 8px 18px oklch(0.65 0.18 165 / 0.35); }

.step-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.step-card .num-bg {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 64px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', var(--sans);
  color: var(--ink);
  opacity: 0.05;
  line-height: 1;
}

/* ============ FEATURE ROW (alternating big sections) ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-text h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
}
.feature-text p {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 480px;
}
.feature-text .check-list {
  list-style: none;
  margin-top: 28px;
}
.feature-text .check-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.feature-text .check-list li::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6.5L5 9L9.5 3.5' stroke='%235b3fd1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .feature-row.reverse { direction: ltr; }
}

/* feature visual card (illustration replacement) */
.feature-visual {
  position: relative;
  padding: 50px 36px;
  border-radius: var(--radius-xl);
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.feature-visual.bg-violet { background: linear-gradient(140deg, oklch(0.94 0.04 285), oklch(0.86 0.10 285)); }
.feature-visual.bg-cyan { background: linear-gradient(140deg, oklch(0.94 0.04 215), oklch(0.86 0.08 215)); }
.feature-visual.bg-pink { background: linear-gradient(140deg, oklch(0.95 0.04 25), oklch(0.88 0.08 25)); }

.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(0.55 0.18 285 / 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: -1;
}

/* Mini chat preview inside a feature visual */
.chat-card {
  width: 100%;
  max-width: 340px;
  background: white;
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-card .mini-q {
  background: oklch(0.96 0.02 285);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  border-left: 3px solid var(--primary);
}
.chat-card .bubble { max-width: 88%; }

/* Records card visual */
.record-card {
  width: 100%;
  max-width: 360px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
}
.record-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.record-stat {
  background: oklch(0.96 0.025 285);
  border-radius: 16px;
  padding: 14px 16px;
}
.record-stat .n { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.record-stat .l { font-size: 11.5px; color: var(--ink-muted); font-weight: 500; margin-top: 2px; }
.record-stat:nth-child(2) { background: oklch(0.95 0.04 165); }
.record-stat:nth-child(2) .n { color: oklch(0.45 0.16 165); }

.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.record-row {
  background: oklch(0.97 0.02 285);
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  font-size: 12.5px;
}
.record-row .t { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.record-row .m { color: var(--ink-muted); font-size: 10.5px; display: flex; gap: 8px; align-items: center; }
.record-row .tag { background: var(--amber-soft); color: oklch(0.45 0.14 75); padding: 2px 7px; border-radius: 999px; font-weight: 600; font-size: 10px; }
.record-row:nth-child(2) { border-left-color: oklch(0.65 0.18 165); }
.record-row:nth-child(2) .tag { background: var(--mint-soft); color: oklch(0.40 0.16 165); }

/* Review card visual */
.review-card {
  background: white;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-xl);
  max-width: 340px;
  width: 100%;
}
.review-card h4 { font-size: 16px; margin-bottom: 14px; }
.review-step {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.review-step:last-child { border-bottom: none; }
.review-step .n {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.review-step.done .n { background: var(--mint-soft); color: oklch(0.40 0.16 165); }
.review-step .t { color: var(--ink-soft); line-height: 1.55; }
.review-step .t b { color: var(--ink); font-weight: 700; }

/* ============ GRADE CARDS ============ */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .grades-grid { grid-template-columns: 1fr; } }
.grade-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.grade-card .badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.grade-card.violet .badge { background: var(--primary-soft); color: var(--primary-deep); }
.grade-card.cyan .badge { background: var(--cyan-soft); color: oklch(0.45 0.14 215); }
.grade-card.amber .badge { background: var(--amber-soft); color: oklch(0.45 0.14 75); }

.grade-card h3 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.grade-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.grade-card .levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.grade-card .lv {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: oklch(0.96 0.02 285);
  color: var(--ink-soft);
}

/* ============ CTA BLOCK ============ */
.cta-block {
  position: relative;
  padding: 80px 0 120px;
}
.cta-card {
  background: linear-gradient(135deg, oklch(0.55 0.24 285), oklch(0.45 0.22 295) 60%, oklch(0.42 0.18 320));
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 32px 80px oklch(0.55 0.22 285 / 0.35);
}
.cta-card::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(1 0 0 / 0.15), transparent 60%);
  top: -200px; right: -150px;
  border-radius: 50%;
}
.cta-card::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, oklch(0.82 0.15 25 / 0.25), transparent 60%);
  bottom: -200px; left: -100px;
  border-radius: 50%;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  color: white;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.cta-card p {
  color: oklch(1 0 0 / 0.85);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 40px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-actions .btn-primary {
  background: white;
  color: var(--ink);
  box-shadow: 0 14px 30px oklch(0.20 0.06 285 / 0.4);
}
.cta-actions .btn-primary:hover { background: oklch(0.95 0.04 285); color: var(--primary-deep); }
.cta-actions .btn-ghost {
  background: oklch(1 0 0 / 0.12);
  color: white;
  border-color: oklch(1 0 0 / 0.25);
}
.cta-actions .btn-ghost:hover { background: oklch(1 0 0 / 0.2); }

@media (max-width: 720px) { .cta-card { padding: 56px 28px; } }

/* ============ FOOTER ============ */
.site-footer {
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { font-size: 22px; margin-bottom: 16px; }
.footer-brand .brand-icon { width: 44px; height: 44px; border-radius: 14px; }
.footer-brand p { font-size: 14.5px; max-width: 360px; color: var(--ink-soft); line-height: 1.6; }

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============ LEGAL PAGES ============ */
.legal-hero {
  padding: calc(56px + env(safe-area-inset-top, 0px)) 0 50px;
  position: relative;
}
.legal-hero h1 {
  font-size: clamp(42px, 6.5vw, 84px);
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
  background: linear-gradient(115deg, var(--ink) 30%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-hero p { font-size: 17px; color: var(--ink-soft); max-width: 600px; }
.legal-meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 22px 28px;
  background: oklch(1 0 0 / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.legal-meta div {
  display: flex;
  flex-direction: column;
}
.legal-meta dt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.legal-meta dd {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 600;
}

.legal-body {
  padding: 40px 0 100px;
  position: relative;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .legal-layout { grid-template-columns: 1fr; gap: 32px; } }

.legal-toc {
  position: sticky;
  top: 110px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
}
.legal-toc h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li {
  counter-increment: toc;
  padding: 7px 0;
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  border-radius: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  transition: background 0.2s;
}
.legal-toc li:hover { background: var(--primary-soft); }
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.legal-toc a {
  color: var(--ink-soft);
  font-weight: 500;
  flex: 1;
}
@media (max-width: 980px) { .legal-toc { position: static; } }

.legal-content {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 760px;
}
.legal-content section {
  margin-bottom: 56px;
  scroll-margin-top: 120px;
}
.legal-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  letter-spacing: -0.02em;
}
.legal-content h2 .ord {
  font-size: 0.6em;
  color: var(--primary);
  font-weight: 700;
}
.legal-content h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 28px 0 10px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 14px 0 18px 22px; }
.legal-content li { margin-bottom: 8px; padding-left: 6px; }
.legal-content li::marker { color: var(--primary); }
.legal-content strong { color: var(--ink); font-weight: 700; }

.callout {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid oklch(0.62 0.22 285 / 0.18);
}
.callout strong { color: var(--primary-deep); }

.legal-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  font-size: 14px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.legal-content th, .legal-content td {
  text-align: left;
  padding: 13px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-content tr:last-child td { border-bottom: none; }
.legal-content thead th {
  background: oklch(0.97 0.02 285);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .blobs .blob, .phone, .floater { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

