:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #171a2b;
  --muted: #69708c;
  --line: #dfe4ef;
  --primary: #6d5dfb;
  --primary-dark: #5143d7;
  --accent: #11b8a5;
  --accent-dark: #078a7d;
  --warning: #ffb547;
  --danger: #d9485f;
  --success: #1f9d73;
  --shadow: 0 24px 70px rgba(22, 29, 58, 0.12);
  --shadow-sm: 0 12px 30px rgba(22, 29, 58, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
img, video, iframe { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(109, 93, 251, 0.2);
  background: rgba(109, 93, 251, 0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.section-copy { margin: 18px 0 0; max-width: 760px; color: var(--muted); font-size: 1.06rem; }
.center { text-align: center; }
.center .section-title, .center .section-copy { margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.88);
  border-bottom: 1px solid rgba(223, 228, 239, 0.8);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-mini { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand-mini .brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: white; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(109, 93, 251, 0.25);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 10px 13px; border-radius: 10px; color: #434a66; font-weight: 700; font-size: 0.92rem; }
.nav a:hover, .nav a.active { color: var(--primary-dark); background: rgba(109, 93, 251, 0.08); }
.nav .locked::after { content: "Paid"; margin-left: 6px; padding: 2px 6px; border-radius: 999px; color: #7a4b00; background: #ffe8bb; font-size: 0.66rem; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--text); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at 12% 15%, rgba(109, 93, 251, 0.16), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(17, 184, 165, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcff, #f6f8fc);
}
.hero::after {
  content: ""; position: absolute; inset: auto -120px -260px auto; width: 520px; height: 520px;
  border-radius: 50%; border: 80px solid rgba(109, 93, 251, 0.04);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }
.hero-logo { width: min(460px, 100%); margin-bottom: 30px; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.3rem); line-height: 0.98; letter-spacing: -0.06em; }
.hero h1 span { color: var(--primary); }
.hero p { margin: 24px 0 0; max-width: 680px; color: var(--muted); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px;
  text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), #7b6dff); box-shadow: 0 12px 24px rgba(109, 93, 251, 0.24); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.btn-secondary { color: var(--text); border-color: var(--line); background: white; }
.btn-secondary:hover { box-shadow: var(--shadow-sm); }
.btn-accent { color: white; background: linear-gradient(135deg, var(--accent), #14cbb6); box-shadow: 0 12px 24px rgba(17, 184, 165, 0.2); }
.btn-block { width: 100%; }
.hero-card { padding: 24px; border-radius: 28px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-card { padding: 20px; min-height: 145px; border-radius: 18px; border: 1px solid var(--line); background: white; }
.mini-card strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.mini-card p { margin: 0; font-size: 0.9rem; }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: rgba(109,93,251,.1); color: var(--primary); font-weight: 900; }

.video-shell { margin-top: 38px; border-radius: 28px; overflow: hidden; background: #0d1020; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.2); }
.video-shell video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0d1020; }
.video-note { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #12162c; color: #dbe1ff; font-size: 0.9rem; }
.video-note span:last-child { color: #9ba6d6; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.price-card { position: relative; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); transform: translateY(-10px); }
.badge { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 999px; color: white; background: var(--primary); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.price-card h3 { margin: 0; font-size: 1.5rem; }
.price { margin: 22px 0 4px; font-size: 3rem; font-weight: 900; letter-spacing: -.04em; }
.price small { font-size: .95rem; font-weight: 700; color: var(--muted); }
.no-trial { display: inline-flex; margin-top: 10px; padding: 6px 10px; border-radius: 999px; color: #8a3b00; background: #fff0d5; font-size: .78rem; font-weight: 800; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; }
.feature-list li { display: flex; gap: 10px; margin: 12px 0; color: #4d5570; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 900; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 44px; }
.flow-step { position: relative; padding: 24px 18px; text-align: center; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--primary); font-size: 1.65rem; font-weight: 900; }
.step-number { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 900; }
.flow-step h3 { margin: 0 0 8px; font-size: 1rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .88rem; }

.domain-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; margin-top: 42px; }
.domain-card, .checklist-card { padding: 30px; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.domain-steps { counter-reset: domain; list-style: none; padding: 0; margin: 0; }
.domain-steps li { counter-increment: domain; position: relative; padding: 0 0 24px 56px; }
.domain-steps li:last-child { padding-bottom: 0; }
.domain-steps li::before { content: counter(domain); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--primary); font-weight: 900; }
.domain-steps li::after { content: ""; position: absolute; left: 17px; top: 39px; width: 2px; height: calc(100% - 40px); background: var(--line); }
.domain-steps li:last-child::after { display: none; }
.domain-steps strong { display: block; margin-bottom: 4px; }
.domain-steps span { color: var(--muted); }
.code-box { padding: 18px; margin-top: 18px; border-radius: 14px; background: #11152b; color: #d7dcf8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; overflow-x: auto; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; margin: 16px 0; color: #4f5874; }
.checklist li::before { content: "✓"; width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; color: var(--success); background: rgba(31,157,115,.1); font-weight: 900; }

.samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 44px; }
.sample-card { overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.sample-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.browser { height: 190px; padding: 14px; background: linear-gradient(135deg, #edf0ff, #eefaf8); }
.browser-top { height: 24px; border-radius: 8px 8px 0 0; background: rgba(255,255,255,.88); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.browser-top i { width: 7px; height: 7px; border-radius: 50%; background: #aab1c8; }
.browser-page { height: 138px; padding: 18px; border-radius: 0 0 8px 8px; background: white; }
.sample-theme-2 .browser { background: linear-gradient(135deg, #fff2e8, #f7e8ff); }
.sample-theme-3 .browser { background: linear-gradient(135deg, #e9f8ff, #edf2ff); }
.sample-theme-4 .browser { background: linear-gradient(135deg, #edf9eb, #fff8df); }
.preview-nav { height: 8px; width: 46%; border-radius: 999px; background: #dfe4ef; }
.preview-hero { height: 52px; margin-top: 14px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .86; }
.preview-lines { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.preview-lines span { height: 27px; border-radius: 7px; background: #edf0f6; }
.sample-info { padding: 20px; }
.sample-info h3 { margin: 0 0 6px; }
.sample-info p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.sample-link { color: var(--primary-dark); font-weight: 800; text-decoration: none; }

.cta { padding: 48px; border-radius: 30px; color: white; background: linear-gradient(135deg, #171a2b, #342f6d 60%, #0d766d); box-shadow: var(--shadow); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.cta p { margin: 14px 0 0; color: #ccd3f5; }

.site-footer { padding: 58px 0 26px; color: #cbd2ef; background: #11152b; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 50px; }
.footer-logo { filter: brightness(0) invert(1); opacity: .95; width: 240px; }
.footer-copy { max-width: 470px; color: #929bc2; }
.site-footer h4 { margin: 0 0 14px; color: white; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #aeb6da; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8790b5; font-size: .9rem; }

.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 58px; height: 58px; border: 0; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 18px 40px rgba(27,34,78,.28); font-size: 1.35rem; }
.chat-panel { position: fixed; right: 24px; bottom: 94px; z-index: 70; width: min(370px, calc(100% - 28px)); max-height: 560px; display: none; overflow: hidden; border-radius: 22px; background: white; box-shadow: 0 28px 80px rgba(17,21,43,.28); border: 1px solid var(--line); }
.chat-panel.open { display: block; animation: chatIn .2s ease both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98);} to { opacity: 1; transform: none;} }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 18px; color: white; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.chat-header strong { display: block; }
.chat-header small { color: #dedbff; }
.chat-close { border: 0; background: transparent; color: white; font-size: 1.2rem; }
.chat-body { height: 320px; overflow-y: auto; padding: 18px; background: #f7f8fc; }
.bubble { max-width: 84%; margin: 10px 0; padding: 11px 13px; border-radius: 14px; font-size: .9rem; }
.bubble.bot { background: white; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.user { margin-left: auto; color: white; background: var(--primary); border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; outline: none; }
.chat-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,93,251,.1); }
.chat-form button { border: 0; border-radius: 11px; padding: 0 14px; color: white; background: var(--primary); font-weight: 800; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; background: radial-gradient(circle at top left, rgba(109,93,251,.18), transparent 32%), #f6f8fc; }
.auth-shell { width: min(980px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.auth-aside { padding: 48px; color: white; background: linear-gradient(145deg, #171a2b, #5c4de0 62%, #0a8c80); }
.auth-aside img { width: 220px; filter: brightness(0) invert(1); }
.auth-aside h1 { margin: 50px 0 16px; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; }
.auth-aside p { color: #d8ddf7; }
.auth-form { padding: 48px; }
.auth-form h2 { margin: 0; font-size: 2rem; }
.auth-form > p { color: var(--muted); }
.form-grid { display: grid; gap: 16px; margin-top: 28px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 800; font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,93,251,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-meta { display: flex; justify-content: space-between; gap: 14px; font-size: .88rem; color: var(--muted); }
.form-meta a { color: var(--primary-dark); font-weight: 800; }
.auth-footer { margin-top: 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-footer a { color: var(--primary-dark); font-weight: 800; }

.content-page { min-height: 100vh; }
.page-hero { padding: 90px 0 58px; background: linear-gradient(135deg, rgba(109,93,251,.12), rgba(17,184,165,.08)); border-bottom: 1px solid var(--line); }
.prose { max-width: 860px; margin: 0 auto; padding: 64px 0 90px; }
.prose h2 { margin-top: 42px; font-size: 1.7rem; }
.prose p, .prose li { color: #555d78; }
.prose ul { padding-left: 20px; }
.notice { padding: 18px; border-left: 4px solid var(--primary); border-radius: 8px; background: rgba(109,93,251,.07); }
.support-status { margin-top: 28px; padding: 18px; border-radius: 14px; background: #fff4dd; color: #7e4d00; }

.checkout-shell { display: grid; grid-template-columns: 1fr .8fr; gap: 28px; margin-top: 36px; }
.order-card { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
.order-card h3 { margin-top: 0; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-total { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 1.25rem; font-weight: 900; }

@media (max-width: 980px) {
  .hero-grid, .domain-grid, .auth-shell, .checkout-shell { grid-template-columns: 1fr; }
  .hero-card { max-width: 680px; }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-step:not(:last-child)::after { display: none; }
  .samples-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 18px; right: 18px; top: 74px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .hero { padding-top: 62px; }
  .hero-grid { gap: 42px; }
  .hero-card-grid, .pricing-grid, .samples-grid, .flow, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .cta { padding: 34px 24px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .auth-aside, .auth-form { padding: 34px 24px; }
  .auth-aside h1 { margin-top: 34px; }
  .section { padding: 68px 0; }
  .video-note { flex-direction: column; gap: 3px; }
}
