:root {
  --brand: #5B21B6; --ink: #2E1065; --ui: #7C3AED; --lav: #A78BFA;
  --lav-bg: #F5F3FF; --orange: #F97316; --text: #1C1917; --muted: #78716C;
  --border: #E7E5E4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text); line-height: 1.6; background: #FFFFFF; overflow-x: hidden;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; }
.glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(167,139,250,.28), rgba(167,139,250,.10) 55%, transparent);
}
header { padding: 40px 0 10px; }
.headrow { display: flex; align-items: center; justify-content: space-between; }
.logo { width: 260px; height: auto; display: block; }
.brand { display: inline-block; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.topnav a:hover { color: var(--brand); }
.topnav .navbtn {
  background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 10px;
  font-weight: 600; box-shadow: 0 6px 20px rgba(91,33,182,.25);
  transition: transform .15s ease;
}
.topnav .navbtn:hover { color: #fff; transform: translateY(-1px); }

.hero { padding: 64px 0 44px; text-align: center; animation: rise .7s ease-out both; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand);
  border: 1px solid var(--lav); border-radius: 999px; padding: 7px 18px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 26px;
  box-shadow: 0 4px 18px rgba(91,33,182,.10);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  animation: pulse 1.6s ease-in-out infinite; }
.hero h1 { font-size: 56px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.06; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--ui) 20%, var(--orange) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 19.5px; color: var(--muted); margin: 22px auto 0; max-width: 560px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding: 26px 0 10px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; text-align: left; transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .7s ease-out both; animation-delay: .1s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(46,16,101,.10); }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--lav-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }


.pricing {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--ink), #3B1580 75%);
  border-radius: 26px; color: #fff; padding: 48px 32px; text-align: center;
  margin: 40px 0 56px; box-shadow: 0 24px 60px rgba(46,16,101,.30);
}
.pricing h2 { font-size: 27px; font-weight: 650; margin-bottom: 4px; }
.pricing .free { color: var(--orange); font-weight: 700; }
.pricing p { color: rgba(255,255,255,.72); font-size: 15.5px; }
.pricing .price { font-size: 40px; font-weight: 700; margin: 14px 0 2px; letter-spacing: -1px; }
.pricing .per { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.6); }
.spark { position: absolute; border-radius: 50%; background: rgba(167,139,250,.25); filter: blur(2px); }
.s1 { width: 130px; height: 130px; top: -40px; right: -30px; }
.s2 { width: 90px; height: 90px; bottom: -30px; left: -20px; background: rgba(249,115,22,.18); }

footer { border-top: 1px solid var(--border); background: #FAFAF9; }
.footgrid { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(150px, 1fr)); gap: 24px;
  padding: 40px 24px 26px; }
.fcol { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.fcol h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.fcol a { color: var(--text); text-decoration: none; white-space: nowrap; }
.fcol a:hover { color: var(--brand); }
.fbrand p { color: var(--muted); font-size: 13.5px; max-width: 240px; }
.flogo { width: 150px; height: auto; display: block; margin-bottom: 6px; }
.fmuted { color: var(--muted); white-space: nowrap; }
.fbottom { padding: 0 24px 30px; font-size: 12.5px; color: var(--muted); }

.legal { padding: 24px 0 60px; max-width: 720px; }
.legal h1 { font-size: 30px; margin: 18px 0 8px; }
.legal h2 { font-size: 19px; margin: 26px 0 6px; }
.legal p, .legal li { font-size: 15px; color: #44403C; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal .note { background: var(--lav-bg); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.legal img.op { max-width: 340px; width: 100%; border: 1px solid var(--border); border-radius: 10px; }
a.back { color: var(--brand); text-decoration: none; font-weight: 500; font-size: 14.5px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .cards { grid-template-columns: 1fr; }
  .logo { width: 180px; }
  .topnav { gap: 16px; }
  .footgrid { grid-template-columns: 1fr 1fr; }
}

.modal-backdrop {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(28,25,23,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 50; padding: 20px;
}
.modal-backdrop.show { display: flex; animation: fadein .18s ease-out; }
.modal {
  position: relative; background: #fff; border-radius: 20px; padding: 30px 28px 26px;
  width: 100%; max-width: 420px; box-shadow: 0 30px 80px rgba(46,16,101,.35);
  animation: rise .22s ease-out;
}
.modal h3 { font-size: 21px; font-weight: 650; }
.modal-sub { font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.modal-x {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal form { display: flex; flex-direction: column; gap: 10px; }
.modal input, .modal textarea {
  font: inherit; font-size: 14.5px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; outline: none; resize: vertical;
}
.modal input:focus, .modal textarea:focus { border-color: var(--brand); }
.modal .hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
.modal .submit {
  font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--orange);
  border: 0; border-radius: 10px; padding: 13px; cursor: pointer; margin-top: 4px;
}
.modal .submit:disabled { opacity: .6; }
.form-done { text-align: center; font-weight: 600; padding: 18px 0; }
.form-done small { font-weight: 400; color: var(--muted); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
