/* ==========================================================================
   1Tech Apps — Main Stylesheet
   Sections: 1. Variables  2. Base  3. Layout  4. Components
             5. Pages  6. Illustrations & Animations  7. Responsive
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  /* Brand colours */
  --c-bg: #070816;
  --c-bg-2: #0c0e24;
  --c-surface: #12142e;
  --c-surface-2: #1a1d3d;
  --c-border: rgba(255, 255, 255, 0.09);
  --c-border-strong: rgba(255, 255, 255, 0.16);
  --c-text: #eef0ff;
  --c-text-muted: #a3a8cc;
  --c-text-dim: #8a8fb8;
  --c-purple: #8b5cf6;
  --c-violet: #a855f7;
  --c-indigo: #6366f1;
  --c-cyan: #22d3ee;
  --c-pink: #ec4899;
  --c-amber: #fbbf24;
  --c-green: #34d399;
  --c-red: #f87171;

  /* Light section */
  --l-bg: #f6f7fc;
  --l-surface: #ffffff;
  --l-text: #12142e;
  --l-muted: #4d5277;
  --l-border: #e3e5f2;

  /* Gradients */
  --g-brand: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --g-brand-anim: linear-gradient(110deg, #8b5cf6, #6366f1, #22d3ee, #a855f7, #8b5cf6);
  --g-text: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 30%, #67e8f9 100%);

  /* Typography */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radius & shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --sh-md: 0 12px 34px rgba(0, 0, 0, 0.35);
  --sh-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --sh-glow: 0 10px 40px rgba(139, 92, 246, 0.35);

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 var(--s-4); }

a { color: #a5b4fc; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-cyan); }

ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 1000;
  background: var(--c-cyan); color: #000; padding: .6rem 1rem;
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #000; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.gradient-text {
  background: var(--g-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; position: relative; }
.section--tight { padding: var(--s-8) 0; }
.section--alt { background: var(--c-bg-2); }

/* Light variant */
.section--light { background: var(--l-bg); color: var(--l-text); }
.section--light .section-head p,
.section--light p { color: var(--l-muted); }
.section--light h2, .section--light h3 { color: var(--l-text); }
.section--light a { color: var(--c-indigo); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.section-head p { color: var(--c-text-muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #c4b5fd; background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .3);
  padding: .35rem .85rem; border-radius: var(--r-pill); margin-bottom: var(--s-4);
}
.section--light .eyebrow { color: #6d28d9; background: #ede9fe; border-color: #ddd6fe; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split > *, .hero-inner > *, .checkout-layout > *, .contact-layout > *, .policy-layout > *, .auth-layout > * { min-width: 0; }

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(7, 8, 22, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); background: rgba(7, 8, 22, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-5); }

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-text); font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo:hover { color: var(--c-text); }
.logo svg { width: 36px; height: 36px; flex: none; transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.06); }
.logo span b { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

.main-nav ul { display: flex; gap: var(--s-1); }
.main-nav a {
  display: block; padding: .5rem .9rem; border-radius: var(--r-pill);
  color: var(--c-text-muted); font-weight: 500; font-size: .95rem;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--c-text); background: rgba(255, 255, 255, .05); }
.main-nav a.is-active { color: var(--c-text); background: rgba(139, 92, 246, .18); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.nav-mobile-actions { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--c-border);
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--c-text); border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  --btn-pad: .75rem 1.35rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-pad); border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn-primary {
  color: #fff; background: var(--g-brand-anim); background-size: 300% 100%;
  animation: gradientShift 6s linear infinite; box-shadow: var(--sh-glow);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 44px rgba(99, 102, 241, .5); }

.btn-ghost { color: var(--c-text); background: rgba(255, 255, 255, .05); border-color: var(--c-border-strong); }
.btn-ghost:hover { color: var(--c-text); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.btn-light { color: var(--l-text); background: #fff; border-color: var(--l-border); }
.btn-light:hover { color: var(--l-text); border-color: #c7cbe4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18, 20, 46, .1); }

.btn-sm { --btn-pad: .55rem 1.05rem; font-size: .88rem; }
.btn-lg { --btn-pad: 1rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---- Cards ---- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .4); box-shadow: var(--sh-md); }
.card p { color: var(--c-text-muted); margin-bottom: 0; }
.card h3 { margin-bottom: var(--s-2); }

.glass {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
}

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: var(--s-4); color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(34, 211, 238, .25));
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .4s var(--ease);
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }

.section--light .card { background: var(--l-surface); border-color: var(--l-border); box-shadow: 0 1px 2px rgba(18,20,46,.04); }
.section--light .card:hover { box-shadow: 0 18px 40px rgba(18, 20, 46, .1); border-color: #c4b5fd; }
.section--light .card p { color: var(--l-muted); }
.section--light .icon-badge { background: var(--g-brand); border: 0; }

/* ---- Check list ---- */
.check-list li { display: flex; gap: .65rem; align-items: flex-start; padding: .35rem 0; color: var(--c-text-muted); }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: rgba(52, 211, 153, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.check-list li.is-off { opacity: .55; }
.check-list li.is-off::before {
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238a8fb8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 10h8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--light .check-list li { color: var(--l-muted); }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field .label { font-size: .88rem; font-weight: 600; color: var(--c-text); }
.input, .select, .textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--c-border-strong);
  color: var(--c-text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: #7a7fa8; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .26); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-purple); background: rgba(139, 92, 246, .06);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .2);
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a3a8cc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.select option { background: var(--c-surface); color: var(--c-text); }
.textarea { min-height: 140px; resize: vertical; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }
.field-error { font-size: .82rem; color: var(--c-red); min-height: 0; display: none; }
.field.has-error .field-error { display: block; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3rem; }
.input-addon {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 0; color: var(--c-text-muted);
}
.input-addon:hover { color: var(--c-text); background: rgba(255,255,255,.06); }
.input-addon svg { width: 20px; height: 20px; }

.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--c-text-muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-purple); flex: none; }

.form-success {
  display: none; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); color: #a7f3d0;
}
.form-success.is-visible { display: flex; animation: fadeUp .5s var(--ease) both; }
.form-success svg { width: 24px; height: 24px; flex: none; color: var(--c-green); }

/* ---- FAQ accordion ---- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--s-3); }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--r-md); background: rgba(255,255,255,.025); overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item.is-open { border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .06); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; background: none; border: 0; text-align: left;
  font-weight: 600; font-size: 1.02rem; color: var(--c-text);
}
.faq-q .plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(255,255,255,.07); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.35rem 1.2rem; margin: 0; color: var(--c-text-muted); }

.section--light .faq-item { background: #fff; border-color: var(--l-border); }
.section--light .faq-item.is-open { border-color: #c4b5fd; background: #faf8ff; }
.section--light .faq-q { color: var(--l-text); }
.section--light .faq-q .plus { background: #eef0fb; }

/* ---- Tabs (generic) ---- */
.tabs { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--c-border); }
.tab-btn { padding: .55rem 1.2rem; border-radius: var(--r-pill); background: none; border: 0; color: var(--c-text-muted); font-weight: 600; font-size: .93rem; transition: color .2s, background .3s; }
.tab-btn[aria-selected="true"] { color: #fff; background: var(--g-brand); box-shadow: 0 4px 16px rgba(99, 102, 241, .35); }

/* ---- Billing switch ---- */
.billing-switch { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; color: var(--c-text-muted); }
.billing-switch .link-btn { color: var(--c-text-muted); font-size: 1rem; padding: .3rem .2rem; }
.billing-switch .link-btn.on { color: var(--c-text); }
.switch { position: relative; width: 56px; height: 30px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); border: 1px solid var(--c-border-strong); padding: 0; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .35s var(--ease); }
.switch[aria-checked="true"] { background: var(--g-brand); border-color: transparent; }
.switch[aria-checked="true"]::after { transform: translateX(26px); }
.save-pill { font-size: .75rem; padding: .2rem .6rem; border-radius: var(--r-pill); background: rgba(52, 211, 153, .15); color: var(--c-green); border: 1px solid rgba(52,211,153,.3); }

/* ---- Pricing cards ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: var(--s-6) var(--s-6) var(--s-6); }
.price-card .plan-name { font-size: 1.15rem; margin-bottom: .25rem; }
.price-card .plan-desc { font-size: .93rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: .3rem; margin: var(--s-4) 0 .2rem; font-family: var(--f-head); }
.price .amount { font-size: 3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price .currency { font-size: 1.4rem; font-weight: 600; align-self: flex-start; margin-top: .3rem; }
.price .per { color: var(--c-text-muted); font-family: var(--f-body); }
.price-note { font-size: .84rem; color: var(--c-text-dim); min-height: 1.4em; margin-bottom: var(--s-5); }
.price-card .check-list { margin: var(--s-5) 0 var(--s-6); flex: 1; }
.price-card.is-featured {
  border-color: transparent; background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    var(--g-brand) border-box;
  border: 1.5px solid transparent; box-shadow: var(--sh-glow);
}
.section--light .price-card.is-featured { background: linear-gradient(#fff, #fff) padding-box, var(--g-brand) border-box; }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: .3rem .9rem; border-radius: var(--r-pill); background: var(--g-brand); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: var(--sh-glow);
}
.amount.is-changing { animation: priceFlip .45s var(--ease); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; text-align: center; border-bottom: 1px solid var(--c-border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--c-text-muted); }
.compare-table thead th { background: var(--c-surface); font-family: var(--f-head); font-size: 1rem; position: sticky; top: 0; }
.compare-table thead th.hl { color: #c4b5fd; }
.compare-table td.hl { background: rgba(139, 92, 246, .06); }
.compare-table tr.group td { background: rgba(255,255,255,.03); font-weight: 700; color: var(--c-text); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:not(.group):hover td { background: rgba(255,255,255,.025); }
.yes, .no { display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.yes { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7099' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.stat { text-align: center; padding: var(--s-5); border-radius: var(--r-lg); }
.stat .num { font-family: var(--f-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.1; }
.stat .lbl { color: var(--c-text-muted); font-size: .93rem; }

/* ---- Logos/trust strip ---- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-6) var(--s-7); opacity: .7; }
.trust-strip span { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; color: var(--c-text-dim); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip svg { width: 22px; height: 22px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; position: relative; }
.step { text-align: left; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; color: #fff; background: var(--g-brand);
  margin-bottom: var(--s-4); box-shadow: var(--sh-glow);
}

/* ---- Testimonials ---- */
.testimonial { display: flex; flex-direction: column; gap: var(--s-4); }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--c-text); line-height: 1.7; }
.section--light .testimonial blockquote { color: var(--l-text); }
.stars { display: flex; gap: 2px; color: var(--c-amber); }
.stars svg { width: 18px; height: 18px; }
.person { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-family: var(--f-head); color: #fff; font-size: .95rem;
}
.person strong { display: block; font-size: .95rem; }
.person small { color: var(--c-text-muted); font-size: .84rem; }
.section--light .person small { color: var(--l-muted); }

/* ---- CTA banner ---- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--s-8) var(--s-7);
  text-align: center; background: linear-gradient(135deg, #2a1b6b 0%, #1d2a78 50%, #0b4a63 100%);
  border: 1px solid rgba(255,255,255,.12); isolation: isolate;
}
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; }
.cta-banner::before { width: 360px; height: 360px; background: rgba(168, 85, 247, .55); top: -160px; left: -80px; animation: orbFloat 14s ease-in-out infinite; }
.cta-banner::after { width: 320px; height: 320px; background: rgba(34, 211, 238, .45); bottom: -160px; right: -60px; animation: orbFloat 16s ease-in-out infinite reverse; }
.cta-banner p { color: #d4d7f5; max-width: 560px; margin: 0 auto var(--s-6); font-size: 1.08rem; }
.cta-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---- Export badges ---- */
.export-badges { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.export-badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem .55rem .6rem;
  border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid var(--c-border-strong);
  font-weight: 700; font-size: .88rem; letter-spacing: .02em; transition: transform .3s var(--ease), border-color .3s;
}
.export-badge:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .5); }
.export-badge svg { width: 30px; height: 30px; }
.section--light .export-badge { background: #fff; border-color: var(--l-border); color: var(--l-text); }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: var(--s-5); }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 14, .75); backdrop-filter: blur(6px); animation: fadeIn .3s both; }
.modal-dialog {
  position: relative; width: 100%; max-width: 460px; text-align: center;
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-6) var(--s-6); box-shadow: var(--sh-lg); animation: popIn .5s var(--ease) both;
}
.modal-dialog p { color: var(--c-text-muted); }
.modal-icon { width: 76px; height: 76px; margin: 0 auto var(--s-5); border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .14); color: var(--c-green); }
.modal-icon svg { width: 40px; height: 40px; }
.modal-icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .6s .3s var(--ease) forwards; }
.demo-note { font-size: .86rem; padding: .7rem .9rem; border-radius: var(--r-md); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); color: #fde68a !important; margin-bottom: var(--s-5); }

/* ---- Page hero (inner pages) ---- */
.page-hero { position: relative; padding: var(--s-9) 0 var(--s-8); text-align: center; overflow: hidden; isolation: isolate; }
.page-hero p { color: var(--c-text-muted); font-size: 1.12rem; max-width: 680px; margin: 0 auto; }
.page-hero h1 { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---- Background orbs ---- */
.bg-orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.orb-1 { width: 520px; height: 520px; background: #6d28d9; top: -180px; left: -120px; animation: orbFloat 18s ease-in-out infinite; }
.orb-2 { width: 440px; height: 440px; background: #0e7490; top: 10%; right: -140px; animation: orbFloat 22s ease-in-out infinite reverse; }
.orb-3 { width: 360px; height: 360px; background: #be185d; bottom: -160px; left: 35%; opacity: .3; animation: orbFloat 20s ease-in-out infinite; }
.bg-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---- Footer ---- */
.site-footer { background: #05060f; border-top: 1px solid var(--c-border); padding: var(--s-8) 0 var(--s-5); color: var(--c-text-muted); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.footer-brand p { margin: var(--s-4) 0; max-width: 320px; }
.footer-col h4 { color: var(--c-text); font-size: .95rem; margin-bottom: var(--s-4); }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--c-text-muted); }
.footer-col a:hover { color: var(--c-text); }
.footer-address { display: flex; gap: .6rem; align-items: flex-start; font-style: normal; color: var(--c-text-muted); line-height: 1.6; margin-bottom: var(--s-4); }
.footer-address svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c-cyan); }
.footer-address strong { color: var(--c-text); font-weight: 600; }
.about-address { display: flex; gap: .75rem; align-items: flex-start; font-style: normal; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: #fff; border: 1px solid var(--l-border); color: var(--l-muted); line-height: 1.6; margin-bottom: var(--s-4); }
.about-address svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--c-indigo); }
.about-address strong { color: var(--l-text); }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-text); font-weight: 500; }
.footer-mail svg { width: 18px; height: 18px; color: var(--c-cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-border); font-size: .87rem; }
.footer-bottom .links { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.footer-bottom a { color: var(--c-text-dim); }
.footer-bottom a:hover { color: var(--c-text); }

/* ==========================================================================
   5. PAGES
   ========================================================================== */

/* ---- Home hero ---- */
.hero { position: relative; padding: var(--s-8) 0 var(--s-9); overflow: hidden; isolation: isolate; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.08fr; gap: var(--s-7); align-items: center; }
.hero-copy p.lead { font-size: 1.15rem; color: var(--c-text-muted); max-width: 540px; margin-bottom: var(--s-6); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-6); }
.hero-meta { display: flex; gap: var(--s-5); flex-wrap: wrap; font-size: .9rem; color: var(--c-text-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--c-green); }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .4rem; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--c-border-strong); font-size: .86rem; color: var(--c-text-muted); margin-bottom: var(--s-5); }
.hero-badge svg { width: 16px; height: 16px; }
.hero-badge b { padding: .15rem .55rem; border-radius: var(--r-pill); background: var(--g-brand); color: #fff; font-size: .75rem; }

/* ---- Template cards ---- */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.template-card { padding: 0; overflow: hidden; }
.template-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--c-border); }
.template-info { padding: var(--s-4) var(--s-5); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.template-info h3 { font-size: 1.02rem; margin: 0; }
.template-info small { color: var(--c-text-muted); }
.tag { font-size: .74rem; font-weight: 600; padding: .2rem .6rem; border-radius: var(--r-pill); background: rgba(34, 211, 238, .12); color: #67e8f9; border: 1px solid rgba(34,211,238,.25); white-space: nowrap; }
.tag--pro { background: rgba(168, 85, 247, .14); color: #d8b4fe; border-color: rgba(168,85,247,.3); }

/* ---- Feature detail (features page) ---- */
.feature-detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-detail p.lead { color: var(--c-text-muted); font-size: 1.06rem; }
.section--light .feature-detail p.lead { color: var(--l-muted); }
.illus-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(139,92,246,.28), transparent 60%), radial-gradient(circle at 80% 90%, rgba(34,211,238,.2), transparent 55%), var(--c-surface);
  border: 1px solid var(--c-border-strong); box-shadow: var(--sh-lg); display: grid; place-items: center;
}
.section--light .illus-frame { box-shadow: 0 30px 60px rgba(18,20,46,.18); border-color: transparent; }

.compare-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.compare-strip .card h3 { display: flex; align-items: center; justify-content: space-between; }

/* ---- Pricing extras ---- */
.guarantee { display: flex; gap: var(--s-5); align-items: center; padding: var(--s-6); border-radius: var(--r-xl); }
.guarantee svg { width: 64px; height: 64px; flex: none; }
.guarantee p { margin: 0; color: var(--c-text-muted); }

/* ---- Checkout ---- */
.checkout-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--s-6); align-items: start; }
.panel { background: rgba(255,255,255,.03); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: var(--s-6); }
.panel + .panel { margin-top: var(--s-5); }
.panel-title { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; margin-bottom: var(--s-5); }
.panel-title .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--g-brand); font-size: .85rem; color: #fff; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-5); }
.pay-method { position: relative; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method label {
  display: flex; align-items: center; gap: .7rem; padding: .95rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--c-border-strong); cursor: pointer; font-weight: 600; transition: border-color .2s, background .2s;
}
.pay-method label svg { width: 26px; height: 26px; flex: none; }
.pay-method label .dot { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-text-dim); transition: border-color .2s, box-shadow .2s; }
.pay-method input:checked + label { border-color: var(--c-purple); background: rgba(139, 92, 246, .08); }
.pay-method input:checked + label .dot { border-color: var(--c-purple); box-shadow: inset 0 0 0 4px var(--c-surface), inset 0 0 0 10px var(--c-purple); }
.pay-method input:focus-visible + label { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.pay-panel[hidden] { display: none; }
.card-brand { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 46px; height: 30px; pointer-events: none; transition: opacity .2s; }
.card-brand svg { width: 100%; height: 100%; }
.card-brands-row { display: flex; gap: .4rem; }
.card-brands-row svg { width: 40px; height: 26px; }

.paypal-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem; border-radius: var(--r-pill); border: 0; background: #ffc439;
  transition: filter .2s, transform .2s; color: #003087; font-weight: 700;
}
.paypal-btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.paypal-btn svg { height: 26px; width: auto; }
.paypal-note { font-size: .88rem; color: var(--c-text-muted); text-align: center; margin-top: var(--s-3); }

.summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary-plan { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4); border-radius: var(--r-lg); background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.25); margin-bottom: var(--s-5); }
.summary-plan .plan-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--g-brand); display: grid; place-items: center; flex: none; }
.summary-plan .plan-icon svg { width: 28px; height: 28px; color: #fff; }
.summary-plan h3 { margin: 0; font-size: 1.1rem; }
.summary-plan small { color: var(--c-text-muted); }
.summary-row { display: flex; justify-content: space-between; padding: .55rem 0; color: var(--c-text-muted); font-size: .95rem; }
.summary-row b { color: var(--c-text); font-weight: 600; }
.summary-row.discount b { color: var(--c-green); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-4); margin-top: var(--s-3); border-top: 1px dashed var(--c-border-strong); font-family: var(--f-head); }
.summary-total span { font-weight: 600; }
.summary-total strong { font-size: 1.8rem; }
.switcher-label { font-size: .85rem; font-weight: 600; color: var(--c-text-muted); margin: 0 0 .5rem; display: block; }
.plan-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: var(--s-4); }
.plan-switch button, .cycle-switch button {
  padding: .55rem .4rem; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong); background: transparent; color: var(--c-text-muted); font-weight: 600; font-size: .88rem; transition: all .2s;
}
.plan-switch button[aria-pressed="true"], .cycle-switch button[aria-pressed="true"] { border-color: var(--c-purple); color: #fff; background: rgba(139,92,246,.2); }
.cycle-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: var(--s-5); }
.secure-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-5); }
.secure-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--c-border); font-size: .78rem; font-weight: 600; color: var(--c-text-muted); }
.secure-badge svg { width: 16px; height: 16px; color: var(--c-green); }
.trial-note { font-size: .84rem; color: var(--c-text-dim); margin-top: var(--s-4); }

/* ---- Auth (login) ---- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-side { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: var(--s-8); background: linear-gradient(160deg, #1b1250 0%, #0f1a4d 55%, #08334a 100%); }
.auth-side h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.auth-side p { color: #c9cdf0; max-width: 440px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--s-8) var(--s-5); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .tabs { width: 100%; margin-bottom: var(--s-6); }
.auth-card .tab-btn { flex: 1; }
.auth-form { display: grid; gap: var(--s-4); }
.auth-form[hidden] { display: none; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: #a5b4fc; font-weight: 600; font-size: .9rem; }
.link-btn:hover { color: var(--c-cyan); }
.divider { display: flex; align-items: center; gap: var(--s-3); color: var(--c-text-dim); font-size: .85rem; margin: var(--s-2) 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border-strong); }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .75rem; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--c-border-strong); font-weight: 600; font-size: .93rem; transition: background .2s, border-color .2s, transform .2s; }
.social-btn:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.social-btn svg { width: 20px; height: 20px; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .3rem; }
.strength span { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); transition: background .3s; }
.strength-label { font-size: .8rem; color: var(--c-text-dim); }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--c-red); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--c-amber); }
.strength[data-score="3"] span:nth-child(-n+3) { background: #a3e635; }
.strength[data-score="4"] span { background: var(--c-green); }
.reset-box { padding: var(--s-5); border-radius: var(--r-lg); background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.25); display: grid; gap: var(--s-3); }
.reset-box[hidden] { display: none; }
.reset-box h3 { font-size: 1.05rem; margin: 0; }
.reset-box p { font-size: .9rem; color: var(--c-text-muted); margin: 0; }
.auth-points { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.auth-points li { display: flex; gap: .7rem; align-items: center; color: #dfe2ff; }
.auth-points svg { width: 22px; height: 22px; color: var(--c-cyan); flex: none; }

/* ---- Policies ---- */
.policy-layout { display: grid; grid-template-columns: 270px 1fr; gap: var(--s-7); align-items: start; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.policy-nav ul { display: grid; gap: .3rem; padding: var(--s-3); border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid var(--c-border); }
.policy-nav a { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: var(--r-md); color: var(--c-text-muted); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.policy-nav a svg { width: 18px; height: 18px; flex: none; }
.policy-nav a:hover { color: var(--c-text); background: rgba(255,255,255,.05); }
.policy-nav a[aria-selected="true"] { color: #fff; background: rgba(139, 92, 246, .2); }
.policy-panel { animation: fadeUp .45s var(--ease) both; }
.policy-panel[hidden] { display: none; }
.policy-panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.policy-panel h3 { font-size: 1.15rem; margin-top: var(--s-6); }
.policy-panel p, .policy-panel li { color: #c3c7e6; }
.policy-panel ul { list-style: disc; padding-left: 1.3rem; margin-bottom: var(--s-4); }
.policy-panel li { margin-bottom: .4rem; }
.updated { display: inline-block; font-size: .85rem; color: var(--c-text-dim); padding: .3rem .8rem; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--c-border); margin-bottom: var(--s-5); }
.policy-content { padding: var(--s-6) var(--s-7); border-radius: var(--r-xl); background: rgba(255,255,255,.02); border: 1px solid var(--c-border); }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: start; }
.contact-info { display: grid; gap: var(--s-4); }
.info-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.info-item .icon-badge { margin: 0; width: 46px; height: 46px; }
.info-item .icon-badge svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1rem; margin-bottom: .2rem; }
.info-item p { margin: 0; color: var(--c-text-muted); font-size: .94rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

/* ==========================================================================
   6. ILLUSTRATIONS & ANIMATIONS
   ========================================================================== */

/* ---- Hero editor mockup ---- */
.editor-wrap { position: relative; perspective: 1600px; }
.editor {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #0d0f26; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(139,92,246,.15), 0 0 80px rgba(99,102,241,.2);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease);
  font-size: 11px; color: var(--c-text-muted);
}
.editor-wrap:hover .editor { transform: rotateY(-3deg) rotateX(2deg); }
.ed-titlebar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #15183a; border-bottom: 1px solid rgba(255,255,255,.07); }
.ed-titlebar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.ed-titlebar i:nth-child(1) { background: #ff5f57; } .ed-titlebar i:nth-child(2) { background: #febc2e; } .ed-titlebar i:nth-child(3) { background: #28c840; }
.ed-titlebar .ed-file { margin: 0 auto; font-size: 11px; color: #9ea3cc; }
.ed-toolbar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: #111432; border-bottom: 1px solid rgba(255,255,255,.06); }
.ed-tool { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #9ea3cc; }
.ed-tool svg { width: 15px; height: 15px; }
.ed-tool.is-on { background: rgba(139,92,246,.3); color: #fff; }
.ed-toolbar .sep { width: 1px; height: 18px; background: rgba(255,255,255,.1); margin: 0 4px; }
.ed-toolbar .ed-render { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: var(--g-brand); color: #fff; font-weight: 600; font-size: 10px; }
.ed-body { display: grid; grid-template-columns: 112px 1fr 104px; height: 250px; }
.ed-layers, .ed-props { background: #101330; padding: 8px; }
.ed-layers { border-right: 1px solid rgba(255,255,255,.06); }
.ed-props { border-left: 1px solid rgba(255,255,255,.06); }
.ed-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f74a1; margin-bottom: 6px; }
.ed-layer { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 5px; margin-bottom: 2px; font-size: 10.5px; color: #b9bde0; white-space: nowrap; }
.ed-layer i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ed-layer.is-sel { background: rgba(139,92,246,.22); color: #fff; }
.ed-prop { margin-bottom: 8px; }
.ed-prop span { display: block; font-size: 9.5px; color: #7c81ad; margin-bottom: 3px; }
.ed-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.ed-bar b { display: block; height: 100%; border-radius: 3px; background: var(--g-brand); transform-origin: left; animation: barPulse 4s ease-in-out infinite; }
.ed-swatches { display: flex; gap: 4px; }
.ed-swatches i { width: 14px; height: 14px; border-radius: 4px; display: block; }

.ed-canvas { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 120%, rgba(99,102,241,.25), transparent 60%), linear-gradient(180deg, #171a44, #0f1235); }
.ed-canvas::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 16px 16px; opacity: .5; }
.ed-ground { position: absolute; left: 10%; right: 10%; bottom: 32px; height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; }
.ed-ball {
  position: absolute; left: 22%; bottom: 34px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fde68a, #f59e0b 55%, #b45309);
  animation: ballBounce 1.4s cubic-bezier(.5,0,.5,1) infinite; transform-origin: 50% 100%;
}
.ed-shadow { position: absolute; left: calc(22% + 3px); bottom: 28px; width: 28px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.45); animation: shadowPulse 1.4s cubic-bezier(.5,0,.5,1) infinite; }
.ed-blob {
  position: absolute; right: 18%; top: 26px; width: 64px; height: 64px;
  background: linear-gradient(135deg, #a855f7, #22d3ee); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 6s ease-in-out infinite, floatY 5s ease-in-out infinite; box-shadow: 0 0 40px rgba(168,85,247,.5);
}
.ed-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-path path { stroke-dasharray: 5 5; animation: dashMove 2s linear infinite; }
.ed-select { position: absolute; right: calc(18% - 6px); top: 20px; width: 76px; height: 76px; border: 1px dashed rgba(34,211,238,.8); animation: floatY 5s ease-in-out infinite; }
.ed-select::before, .ed-select::after { content: ""; position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid var(--c-cyan); }
.ed-select::before { left: -4px; top: -4px; } .ed-select::after { right: -4px; bottom: -4px; }
.ed-char { position: absolute; left: 48%; bottom: 34px; width: 30px; height: 56px; animation: walk 7s linear infinite; }
.ed-char .head { position: absolute; top: 0; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: #f9a8d4; }
.ed-char .body { position: absolute; top: 17px; left: 8px; width: 14px; height: 22px; border-radius: 6px; background: #ec4899; }
.ed-char .leg { position: absolute; top: 37px; width: 5px; height: 18px; border-radius: 3px; background: #be185d; transform-origin: top center; }
.ed-char .leg.l { left: 9px; animation: legSwing .5s ease-in-out infinite alternate; }
.ed-char .leg.r { left: 16px; animation: legSwing .5s ease-in-out infinite alternate-reverse; }
.ed-cube-mini { position: absolute; left: 12%; top: 22px; width: 30px; height: 30px; perspective: 300px; }

.ed-timeline { background: #0b0d22; border-top: 1px solid rgba(255,255,255,.07); padding: 6px 10px 10px; }
.ed-tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ed-play { width: 20px; height: 20px; border-radius: 50%; background: var(--g-brand); display: grid; place-items: center; }
.ed-play svg { width: 9px; height: 9px; color: #fff; }
.ed-time { font-variant-numeric: tabular-nums; font-size: 10px; color: #b9bde0; }
.ed-ruler { flex: 1; height: 10px; background-image: linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 10% 100%; opacity: .7; }
.ed-tracks { position: relative; display: grid; gap: 5px; }
.ed-track { position: relative; height: 14px; border-radius: 4px; background: rgba(255,255,255,.04); }
.ed-clip { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; opacity: .55; }
.ed-key { position: absolute; top: 50%; width: 8px; height: 8px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); border-radius: 1.5px; box-shadow: 0 0 6px rgba(255,255,255,.6); animation: keyBlink 2.8s ease-in-out infinite; }
/* Playhead: a full-width transparent layer translated by its own width, so the line spans the whole timeline using transform only */
.ed-playhead { position: absolute; top: -4px; bottom: -4px; left: 0; width: 100%; pointer-events: none; animation: playhead 5.6s linear infinite; }
.ed-playhead::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); }
.ed-playhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 8px; background: var(--c-cyan); clip-path: polygon(0 0, 100% 0, 50% 100%); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: .55rem; padding: .6rem .85rem; border-radius: var(--r-md);
  font-size: .82rem; font-weight: 600; color: var(--c-text); box-shadow: var(--sh-md); z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.float-chip svg { width: 20px; height: 20px; }
.float-chip.c1 { left: -28px; bottom: 54px; }
.float-chip.c2 { right: -18px; top: -16px; animation-delay: -3s; }
.float-chip .prog { width: 70px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.float-chip .prog b { display: block; height: 100%; background: var(--g-brand); animation: renderProg 3.5s ease-in-out infinite; transform-origin: left; }

/* ---- 3D cube ---- */
.scene-3d { width: 160px; height: 160px; perspective: 800px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cubeSpin 12s linear infinite; }
.cube .face {
  position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,92,246,.65), rgba(34,211,238,.45));
  box-shadow: inset 0 0 40px rgba(255,255,255,.12);
}
.cube .f1 { transform: translateZ(80px); }
.cube .f2 { transform: rotateY(180deg) translateZ(80px); background: linear-gradient(135deg, rgba(236,72,153,.6), rgba(139,92,246,.5)); }
.cube .f3 { transform: rotateY(90deg) translateZ(80px); background: linear-gradient(135deg, rgba(99,102,241,.7), rgba(34,211,238,.4)); }
.cube .f4 { transform: rotateY(-90deg) translateZ(80px); background: linear-gradient(135deg, rgba(34,211,238,.6), rgba(99,102,241,.5)); }
.cube .f5 { transform: rotateX(90deg) translateZ(80px); background: linear-gradient(135deg, rgba(168,85,247,.7), rgba(236,72,153,.4)); }
.cube .f6 { transform: rotateX(-90deg) translateZ(80px); }
.scene-3d.sm { width: 30px; height: 30px; perspective: 200px; }
.scene-3d.sm .cube .face { border-radius: 4px; }
.scene-3d.sm .f1 { transform: translateZ(15px); } .scene-3d.sm .f2 { transform: rotateY(180deg) translateZ(15px); }
.scene-3d.sm .f3 { transform: rotateY(90deg) translateZ(15px); } .scene-3d.sm .f4 { transform: rotateY(-90deg) translateZ(15px); }
.scene-3d.sm .f5 { transform: rotateX(90deg) translateZ(15px); } .scene-3d.sm .f6 { transform: rotateX(-90deg) translateZ(15px); }
.scene-3d.sm .cube { animation-duration: 8s; }

/* 3D illustration (features page) */
.illus-3d { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.illus-3d .floor { position: absolute; bottom: 14%; left: 50%; width: 70%; height: 40%; transform: translateX(-50%) rotateX(72deg); background-image: linear-gradient(rgba(34,211,238,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.35) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); }
.illus-3d .sphere { position: absolute; width: 70px; height: 70px; border-radius: 50%; right: 16%; top: 18%; background: radial-gradient(circle at 30% 28%, #fff 0%, #f0abfc 12%, #a855f7 45%, #3b0764 100%); box-shadow: 0 20px 40px rgba(168,85,247,.45); animation: floatY 4s ease-in-out infinite; }
.illus-3d .pyramid { position: absolute; left: 14%; bottom: 26%; width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid #22d3ee; filter: drop-shadow(0 10px 20px rgba(34,211,238,.4)); animation: floatY 5s ease-in-out infinite -1.5s; }
.illus-3d .pyramid::after { content: ""; position: absolute; left: 0; top: 0; border-left: 0 solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid rgba(8, 51, 74, .55); }
.render-label { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); font-size: .78rem; padding: .35rem .8rem; border-radius: var(--r-pill); white-space: nowrap; display: flex; gap: .5rem; align-items: center; }
.render-label .live { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); animation: pulseDot 1.5s ease-in-out infinite; }

/* Tools illustration */
.illus-tools { position: relative; width: 82%; height: 74%; border-radius: var(--r-lg); background: #0d0f26; border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.illus-tools .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; background: #15183a; display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; }
.illus-tools .rail i { display: block; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.07); }
.illus-tools .rail i.is-on { background: var(--g-brand); }
.illus-tools .cursor { position: absolute; width: 22px; height: 22px; color: #fff; animation: cursorMove 6s ease-in-out infinite; z-index: 3; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.illus-tools .drag-shape { position: absolute; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #f472b6, #a855f7); animation: shapeDrag 6s ease-in-out infinite; box-shadow: 0 10px 30px rgba(236,72,153,.4); }
.illus-tools .ghost { position: absolute; left: 90px; top: 50px; width: 60px; height: 60px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.2); }
.illus-tools .snap-line { position: absolute; top: 0; bottom: 0; left: 220px; width: 1px; background: var(--c-pink); opacity: 0; animation: snapLine 6s ease-in-out infinite; }

/* Templates illustration (stack) */
.illus-stack { position: relative; width: 70%; height: 66%; }
.illus-stack .tcard { position: absolute; inset: 0; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.15); box-shadow: var(--sh-md); overflow: hidden; animation: cardCycle 9s ease-in-out infinite; }
.illus-stack .tcard:nth-child(1) { background: linear-gradient(135deg, #f97316, #ec4899); animation-delay: 0s; }
.illus-stack .tcard:nth-child(2) { background: linear-gradient(135deg, #6366f1, #22d3ee); animation-delay: -3s; }
.illus-stack .tcard:nth-child(3) { background: linear-gradient(135deg, #10b981, #3b82f6); animation-delay: -6s; }
.illus-stack .tcard span { position: absolute; left: 14px; bottom: 14px; font-weight: 700; font-family: var(--f-head); color: #fff; font-size: 1rem; }
.illus-stack .tcard i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); }

/* Export illustration */
.illus-export { width: 80%; display: grid; gap: 14px; }
.export-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.export-row svg { width: 32px; height: 32px; flex: none; }
.export-row .meta { flex: 1; min-width: 0; }
.export-row .meta b { display: block; font-size: .85rem; }
.export-row .meta small { color: var(--c-text-dim); font-size: .75rem; }
.export-row .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 6px; }
.export-row .bar b { display: block; height: 100%; background: var(--g-brand); transform-origin: left; animation: renderProg 4s ease-in-out infinite; }
.export-row:nth-child(2) .bar b { animation-delay: -1.3s; }
.export-row:nth-child(3) .bar b { animation-delay: -2.6s; }

/* Cloud illustration */
.illus-cloud { position: relative; width: 100%; height: 100%; }
.illus-cloud .cloud-svg { position: absolute; left: 50%; top: 22%; width: 46%; transform: translateX(-50%); animation: floatY 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(99,102,241,.45)); }
.illus-cloud .device { position: absolute; bottom: 14%; width: 22%; aspect-ratio: 4/3; border-radius: 10px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.illus-cloud .device.d1 { left: 12%; } .illus-cloud .device.d2 { left: 39%; aspect-ratio: 3/4; width: 16%; } .illus-cloud .device.d3 { right: 12%; }
.illus-cloud .packet { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 12px var(--c-cyan); }
.illus-cloud .p1 { left: 23%; animation: packetUp 2.4s ease-in infinite; }
.illus-cloud .p2 { left: 47%; animation: packetUp 2.4s ease-in infinite -.8s; }
.illus-cloud .p3 { right: 23%; animation: packetUp 2.4s ease-in infinite -1.6s; }

/* Collaboration illustration */
.illus-collab { position: relative; width: 84%; height: 72%; border-radius: var(--r-lg); background: #0d0f26; border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.illus-collab .avatars { position: absolute; top: 12px; right: 12px; display: flex; }
.illus-collab .avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #0d0f26; margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.illus-collab .cur { position: absolute; display: flex; align-items: flex-start; gap: 2px; }
.illus-collab .cur svg { width: 18px; height: 18px; }
.illus-collab .cur em { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; color: #fff; margin-top: 12px; }
.illus-collab .cur.a { animation: collabA 7s ease-in-out infinite; color: #ec4899; }
.illus-collab .cur.a em { background: #ec4899; }
.illus-collab .cur.b { animation: collabB 8s ease-in-out infinite; color: #22d3ee; }
.illus-collab .cur.b em { background: #0891b2; }
.illus-collab .cmt { position: absolute; left: 14px; bottom: 14px; max-width: 64%; padding: 8px 10px; border-radius: 10px 10px 10px 2px; background: rgba(255,255,255,.08); font-size: 11px; color: #dfe2ff; animation: cmtPop 7s ease-in-out infinite; }
.illus-collab .shape { position: absolute; left: 34%; top: 32%; width: 80px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, #8b5cf6, #22d3ee); }

/* Template thumbnails (unique compositions) */
.tpl { position: absolute; inset: 0; }
.tpl-1 { background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.tpl-1 .sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; left: 50%; top: 22%; margin-left: -35px; background: radial-gradient(circle, #fde68a, #f97316); box-shadow: 0 0 50px #f97316; animation: sunRise 5s ease-in-out infinite; }
.tpl-1 .hill { position: absolute; bottom: -40%; width: 120%; height: 80%; border-radius: 50%; }
.tpl-1 .h1 { left: -40%; background: #312e81; } .tpl-1 .h2 { right: -50%; background: #1e1b4b; }
.tpl-1 .bird { position: absolute; top: 24%; width: 18px; height: 8px; border-top: 2px solid #fff; border-radius: 50% 50% 0 0; animation: flyAcross 7s linear infinite; }

.tpl-2 { background: #0f172a; display: grid; place-items: center; }
.tpl-2 .bars { display: flex; align-items: flex-end; gap: 8px; height: 56%; }
.tpl-2 .bars i { display: block; width: 18px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #22d3ee, #6366f1); transform-origin: bottom; animation: barGrow 2.4s ease-in-out infinite alternate; }
.tpl-2 .bars i:nth-child(1) { height: 40%; } .tpl-2 .bars i:nth-child(2) { height: 75%; animation-delay: -.4s; } .tpl-2 .bars i:nth-child(3) { height: 55%; animation-delay: -.8s; } .tpl-2 .bars i:nth-child(4) { height: 90%; animation-delay: -1.2s; } .tpl-2 .bars i:nth-child(5) { height: 65%; animation-delay: -1.6s; }

.tpl-3 { background: linear-gradient(135deg, #fdf2f8, #fae8ff); display: grid; place-items: center; }
.tpl-3 .ring { position: absolute; border-radius: 50%; border: 3px solid; animation: ringPulse 3s ease-out infinite; }
.tpl-3 .ring:nth-child(1) { width: 40px; height: 40px; border-color: #ec4899; }
.tpl-3 .ring:nth-child(2) { width: 40px; height: 40px; border-color: #a855f7; animation-delay: -1s; }
.tpl-3 .ring:nth-child(3) { width: 40px; height: 40px; border-color: #6366f1; animation-delay: -2s; }
.tpl-3 .heart { width: 30px; height: 30px; color: #ec4899; animation: heartBeat 1.2s ease-in-out infinite; position: relative; z-index: 1; }

.tpl-4 { background: linear-gradient(160deg, #022c22, #065f46); overflow: hidden; }
.tpl-4 .logo-rev { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: .08em; animation: logoReveal 4s var(--ease) infinite; white-space: nowrap; }
.tpl-4 .wipe { position: absolute; inset: 0; background: #34d399; animation: wipe 4s var(--ease) infinite; }

.tpl-5 { background: #18181b; }
.tpl-5 .dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 50%; margin-top: -7px; animation: dotWave 1.4s ease-in-out infinite; }
.tpl-5 .dot:nth-child(1) { left: calc(50% - 52px); background: #f43f5e; }
.tpl-5 .dot:nth-child(2) { left: calc(50% - 25px); background: #f59e0b; animation-delay: .15s; }
.tpl-5 .dot:nth-child(3) { left: calc(50% + 2px); background: #22c55e; animation-delay: .3s; }
.tpl-5 .dot:nth-child(4) { left: calc(50% + 29px); background: #3b82f6; animation-delay: .45s; }
.tpl-5 .line { position: absolute; left: 20%; right: 20%; bottom: 22%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.tpl-5 .line b { display: block; height: 100%; width: 40%; background: #fff; animation: slideBar 2s ease-in-out infinite; }

.tpl-6 { background: radial-gradient(circle at 50% 50%, #312e81, #020617); overflow: hidden; }
.tpl-6 .orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); transform: translate(-50%, -50%); }
.tpl-6 .o1 { width: 90px; height: 90px; } .tpl-6 .o2 { width: 150px; height: 150px; }
.tpl-6 .planet { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b); box-shadow: 0 0 30px #f59e0b; }
.tpl-6 .moon { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; }
.tpl-6 .m1 { background: #22d3ee; animation: orbit1 4s linear infinite; }
.tpl-6 .m2 { background: #f472b6; width: 14px; height: 14px; margin: -7px; animation: orbit2 7s linear infinite; }

/* Login side illustration */
.auth-illus { position: relative; height: 230px; margin-bottom: var(--s-6); }
.auth-illus .panel-card { position: absolute; border-radius: var(--r-lg); padding: 14px; }
.auth-illus .pc1 { left: 0; top: 10px; width: 62%; height: 150px; animation: floatY 6s ease-in-out infinite; }
.auth-illus .pc2 { right: 0; bottom: 0; width: 46%; height: 120px; animation: floatY 7s ease-in-out infinite -2s; }
.auth-illus .mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-top: 14px; }
.auth-illus .mini-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #a78bfa, #6366f1); transform-origin: bottom; animation: barGrow 2.4s ease-in-out infinite alternate; }
.auth-illus .mini-bars i:nth-child(2) { animation-delay: -.6s; } .auth-illus .mini-bars i:nth-child(3) { animation-delay: -1.2s; } .auth-illus .mini-bars i:nth-child(4) { animation-delay: -1.8s; } .auth-illus .mini-bars i:nth-child(5) { animation-delay: -.9s; }
.auth-illus .bouncer { position: relative; height: 60px; margin-top: 10px; }
.auth-illus .bouncer i { position: absolute; left: 40%; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b); animation: ballBounceSm 1.2s cubic-bezier(.5,0,.5,1) infinite; }
.auth-illus .tline { height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); margin-bottom: 6px; }
.auth-illus .tline.s { width: 60%; }

/* Contact illustration (mail) */
.mail-illus { width: 100%; max-width: 280px; margin: 0 auto; animation: floatY 6s ease-in-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Page load */
.page-enter > * { animation: fadeUp .9s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: .08s; }
.page-enter > *:nth-child(3) { animation-delay: .16s; }
.page-enter > *:nth-child(4) { animation-delay: .24s; }
.page-enter > *:nth-child(5) { animation-delay: .32s; }

/* ---- Keyframes ---- */
@keyframes gradientShift { to { background-position: 300% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ballBounce {
  0%, 100% { transform: translateY(0) scale(1.18, .82); }
  12% { transform: translateY(-20px) scale(.92, 1.1); }
  50% { transform: translateY(-120px) scale(1, 1); }
  88% { transform: translateY(-20px) scale(.92, 1.1); }
}
@keyframes ballBounceSm { 0%, 100% { transform: translateY(0) scale(1.15, .85); } 50% { transform: translateY(-40px) scale(1); } }
@keyframes shadowPulse { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(.4); opacity: .2; } }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg); }
  33% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }
  66% { border-radius: 28% 72% 38% 62% / 60% 33% 67% 40%; transform: rotate(120deg); }
}
@keyframes dashMove { to { stroke-dashoffset: -20; } }
@keyframes walk { 0% { transform: translateX(-60px); } 50% { transform: translateX(60px); } 50.01% { transform: translateX(60px) scaleX(-1); } 100% { transform: translateX(-60px) scaleX(-1); } }
@keyframes legSwing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes keyBlink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes barPulse { 0%, 100% { transform: scaleX(.45); } 50% { transform: scaleX(.9); } }
@keyframes renderProg { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
@keyframes cubeSpin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@keyframes priceFlip { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes cursorMove { 0%, 100% { transform: translate(110px, 70px); } 25% { transform: translate(120px, 85px); } 60%, 85% { transform: translate(225px, 115px); } }
@keyframes shapeDrag { 0%, 25% { transform: translate(90px, 50px); } 60%, 85% { transform: translate(190px, 80px); } 100% { transform: translate(90px, 50px); } }
@keyframes snapLine { 0%, 50% { opacity: 0; } 58%, 75% { opacity: .9; } 85%, 100% { opacity: 0; } }
@keyframes cardCycle {
  0% { transform: translate(0, 0) rotate(-6deg) scale(.92); z-index: 1; opacity: .7; }
  33% { transform: translate(0, 0) rotate(3deg) scale(.96); z-index: 2; opacity: .85; }
  66% { transform: translate(0, -6px) rotate(0deg) scale(1); z-index: 3; opacity: 1; }
  100% { transform: translate(0, 0) rotate(-6deg) scale(.92); z-index: 1; opacity: .7; }
}
@keyframes packetUp { 0% { bottom: 30%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { bottom: 58%; opacity: 0; } }
@keyframes collabA { 0%, 100% { transform: translate(40px, 60px); } 50% { transform: translate(170px, 40px); } }
@keyframes collabB { 0%, 100% { transform: translate(220px, 120px); } 50% { transform: translate(90px, 110px); } }
@keyframes cmtPop { 0%, 20% { opacity: 0; transform: translateY(8px); } 30%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sunRise { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(-6px); } }
@keyframes flyAcross { from { left: -10%; } to { left: 110%; } }
@keyframes barGrow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes ringPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes wipe { 0% { transform: translateX(-100%); } 35% { transform: translateX(0); } 55% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@keyframes logoReveal { 0%, 40% { opacity: 0; letter-spacing: .5em; } 60%, 90% { opacity: 1; letter-spacing: .08em; } 100% { opacity: 0; } }
@keyframes dotWave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes slideBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes orbit1 { from { transform: rotate(0deg) translateX(45px); } to { transform: rotate(360deg) translateX(45px); } }
@keyframes orbit2 { from { transform: rotate(0deg) translateX(75px); } to { transform: rotate(-360deg) translateX(75px); } }

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav a { padding: .5rem .65rem; }
  .header-actions .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-chip.c1 { left: -8px; }
  .float-chip.c2 { right: -6px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .section { padding: var(--s-8) 0; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(7, 8, 22, .98); padding: var(--s-5);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: var(--s-1); }
  .main-nav a { font-size: 1.1rem; padding: .9rem 1rem; border-radius: var(--r-md); }
  .nav-mobile-actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
  body.nav-open { overflow: hidden; }

  .hero-inner, .split, .checkout-layout, .contact-layout, .auth-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .hero { padding-top: var(--s-7); }
  .hero-copy { text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .editor { transform: none; }
  .grid-3, .grid-4, .template-grid, .pricing-grid, .compare-strip, .values { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .policy-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .policy-nav { position: sticky; top: var(--header-h); z-index: 5; margin: 0 calc(var(--s-5) * -1); padding: var(--s-2) var(--s-5); background: rgba(7,8,22,.92); backdrop-filter: blur(10px); }
  .policy-nav ul { display: flex; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .policy-nav ul::-webkit-scrollbar { display: none; }
  .policy-nav a { white-space: nowrap; }
  .summary { position: static; }
  .auth-side { padding: var(--s-7) var(--s-5); order: 2; }
  .auth-layout { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 var(--s-4); }
  .section { padding: var(--s-7) 0; }
  .grid-2, .grid-3, .grid-4, .template-grid, .compare-strip, .values, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .stat { padding: var(--s-4) var(--s-2); }
  .card { padding: var(--s-5); }
  .ed-body { grid-template-columns: 1fr; height: 220px; }
  .ed-layers, .ed-props { display: none; }
  .float-chip { display: none; }
  .cta-banner { padding: var(--s-7) var(--s-5); }
  .guarantee { flex-direction: column; text-align: center; }
  .panel { padding: var(--s-5); }
  .policy-content { padding: var(--s-5); }
  .pay-methods, .social-btns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-actions .btn-ghost { display: none; }
  .hero-meta { gap: var(--s-3); }
  .policy-nav { margin: 0 calc(var(--s-4) * -1); padding: var(--s-2) var(--s-4); }
}

/* Reduced motion: disable heavy animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .editor { transform: none; }
}
