:root {
  --ersel-indigo: #3643B1;
  --ersel-indigo-dark: #262F82;
  --ersel-indigo-deep: #1A2160;
  --ersel-orchid: #DF70F4;
  --ersel-sun: #FCF401;
  --ersel-snow: #FDFCFC;
  --ink: #1E2350;
  --muted: #5B6090;
  --bs-primary: #3643B1;
  --bs-primary-rgb: 54, 67, 177;
  --bs-body-bg: #FDFCFC;
  --bs-body-color: #1E2350;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-link-color: #3643B1;
  --bs-link-hover-color: #262F82;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--ersel-snow); color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--ersel-orchid); outline-offset: 3px;
}

/* ---------- Navbar ---------- */
.ersel-nav { background: rgba(253, 252, 252, .88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(54, 67, 177, .1); }
.ersel-nav .navbar-brand { font-weight: 800; letter-spacing: -.5px; color: var(--ersel-indigo); font-size: 1.4rem; }
.ersel-nav .navbar-brand img { width: 36px; height: 36px; border-radius: 9px; }
.ersel-nav .nav-link { color: var(--ink); font-weight: 600; border-radius: 30px; padding: .45rem 1rem !important; }
.ersel-nav .nav-link:hover, .ersel-nav .nav-link.active { color: var(--ersel-indigo); background: rgba(223, 112, 244, .15); }

/* ---------- Buttons ---------- */
.btn-ersel { --bs-btn-bg: var(--ersel-indigo); --bs-btn-border-color: var(--ersel-indigo); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--ersel-indigo-dark); --bs-btn-hover-border-color: var(--ersel-indigo-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ersel-indigo-deep); --bs-btn-active-border-color: var(--ersel-indigo-deep);
  border-radius: 40px; font-weight: 700; padding: .7rem 1.5rem; }
.btn-sun { --bs-btn-bg: var(--ersel-sun); --bs-btn-border-color: var(--ersel-sun); --bs-btn-color: var(--ersel-indigo-deep);
  --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: var(--ersel-indigo-deep);
  border-radius: 40px; font-weight: 800; padding: .7rem 1.5rem; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 40px; font-weight: 700; padding: .65rem 1.5rem; }
.btn-ghost:hover { background: #fff; color: var(--ersel-indigo); }
.play-badge img { height: 56px; width: auto; transition: transform .2s ease, filter .2s ease; }
.play-badge:hover img { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 85% -10%, rgba(223, 112, 244, .55), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(252, 244, 1, .18), transparent 60%),
              linear-gradient(135deg, var(--ersel-indigo) 0%, var(--ersel-indigo-deep) 100%);
  padding: 7.5rem 0 6rem; }
.hero h1 { font-weight: 800; letter-spacing: -2px; line-height: 1.05; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero h1 em { font-style: normal; color: var(--ersel-sun); }
.hero .lead { color: rgba(255, 255, 255, .85); max-width: 520px; }
.pill-tag { display: inline-block; background: rgba(252, 244, 1, .15); color: var(--ersel-sun); border: 1px solid rgba(252, 244, 1, .45);
  border-radius: 30px; padding: .35rem .9rem; font-size: .78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.hero .ring { position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; pointer-events: none; }
.hero .ring.r1 { width: 640px; height: 640px; right: -200px; top: -240px; }
.hero .ring.r2 { width: 780px; height: 780px; right: -270px; top: -300px; }

.phone { position: relative; width: 270px; margin: auto; background: #0E1240; border-radius: 38px; padding: 12px;
  box-shadow: 0 40px 70px rgba(10, 13, 60, .55), 0 0 0 2px rgba(255, 255, 255, .08); animation: float 6s ease-in-out infinite; }
.phone .screen { background: var(--ersel-snow); border-radius: 28px; padding: 18px 16px 20px; color: var(--ink); min-height: 470px; }
.phone .notch { width: 70px; height: 6px; background: #0E1240; border-radius: 6px; margin: -6px auto 14px; }
.phone h6 { font-weight: 800; color: var(--ersel-indigo); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.phone h6 img { width: 24px; border-radius: 6px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #E6E7F5; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: .85rem; }
.toggle { width: 42px; height: 24px; border-radius: 20px; background: var(--ersel-indigo); position: relative; }
.toggle:after { content: ""; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; right: 3px; }
.mini-card { background: #fff; border: 1px solid #E6E7F5; border-radius: 14px; padding: 11px 13px; margin-top: 10px; font-size: .78rem; }
.mini-card small { color: var(--muted); display: block; }
.mini-card code { color: var(--ersel-indigo); font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #20C46B; margin-right: 6px; box-shadow: 0 0 0 4px rgba(32, 196, 107, .2); animation: pulse 2s infinite; }
.badge-float { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: .6rem .9rem; font-size: .8rem; font-weight: 700;
  box-shadow: 0 18px 34px rgba(10, 13, 60, .35); animation: float 5s ease-in-out infinite; }
.badge-float.b1 { left: -30px; top: 70px; animation-delay: -1s; }
.badge-float.b2 { right: -34px; bottom: 90px; background: var(--ersel-sun); animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(32, 196, 107, 0); } }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
.eyebrow { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; color: var(--ersel-indigo); }
.section-title { font-weight: 800; letter-spacing: -1.4px; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.1; }
.section-title em { font-style: normal; background: linear-gradient(transparent 62%, rgba(252, 244, 1, .85) 62%); }
.muted { color: var(--muted); }
.feature { height: 100%; background: #fff; border: 1px solid #E6E7F5; border-radius: 22px; padding: 1.7rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(54, 67, 177, .14); border-color: var(--ersel-orchid); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ersel-indigo), var(--ersel-orchid)); color: #fff; }
.feature h3 { font-size: 1.15rem; font-weight: 800; }
.feature p { color: var(--muted); margin: 0; }
.band { background: linear-gradient(180deg, #F3F3FD, var(--ersel-snow)); }

/* ---------- Plans ---------- */
.plan { height: 100%; position: relative; background: #fff; border: 2px solid #E6E7F5; border-radius: 26px; padding: 2rem; }
.plan.featured { background: linear-gradient(160deg, var(--ersel-indigo), var(--ersel-indigo-deep)); color: #fff; border-color: transparent; box-shadow: 0 28px 50px rgba(54, 67, 177, .35); }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -1.5px; }
.plan .price small { font-size: 1rem; font-weight: 600; opacity: .7; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.plan li { padding: .4rem 0 .4rem 1.8rem; position: relative; }
.plan li:before { content: "\2713"; position: absolute; left: 0; color: var(--ersel-orchid); font-weight: 800; }
.plan.featured li:before { color: var(--ersel-sun); }
.plan .ribbon { position: absolute; top: -14px; right: 24px; background: var(--ersel-sun); color: var(--ersel-indigo-deep); font-weight: 800; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; padding: .4rem .9rem; border-radius: 20px; }

/* ---------- CTA + Footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--ersel-indigo), var(--ersel-orchid)); color: #fff; border-radius: 32px; padding: 3.5rem 2rem; position: relative; overflow: hidden; }
.cta-band:after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(252, 244, 1, .2); right: -80px; top: -120px; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
footer.site-footer { background: var(--ersel-indigo-deep); color: rgba(255, 255, 255, .75); padding: 3rem 0 2rem; }
footer.site-footer a { color: #fff; text-decoration: none; }
footer.site-footer a:hover { color: var(--ersel-sun); }

/* ---------- Animated tour ---------- */
.tour-wrap { max-width: 1120px; margin: auto; }
.film { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ersel-indigo), var(--ersel-indigo-deep)); border-radius: 30px; min-height: 560px; color: #fff; box-shadow: 0 30px 60px rgba(38, 47, 130, .3); }
.film:before, .film:after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; pointer-events: none; }
.film:before { width: 560px; height: 560px; right: -150px; top: -210px; }
.film:after { width: 680px; height: 680px; right: -210px; top: -270px; }
.scene { position: absolute; inset: 0; padding: 60px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; visibility: hidden; }
.scene .copy { z-index: 2; }
.scene .step-eyebrow { font-size: .75rem; letter-spacing: 2px; font-weight: 800; color: var(--ersel-sun); text-transform: uppercase; margin-bottom: 22px; }
.scene h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.07; letter-spacing: -2px; font-weight: 800; margin: 0 0 20px; }
.scene h2 em { font-style: normal; color: var(--ersel-orchid); }
.scene p { font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 380px; margin: 0; }
.art { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 380px; min-width: 0; }
.panel { width: 100%; max-width: 380px; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 26px 50px rgba(8, 10, 50, .4); }
.panel .mh { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .9rem; margin-bottom: 16px; color: var(--ersel-indigo); }
.panel .tag { font-size: .62rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.row-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ECEDF8; padding: 12px 0; font-size: .82rem; }
.row-item:last-of-type { border-bottom: 0; }
.row-item b { color: var(--ersel-indigo); }
.chip { display: inline-block; background: #F0F1FC; color: var(--ersel-indigo); border-radius: 18px; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; margin: 3px 2px; }
.chip.ok { background: #DDF8E9; color: #107A42; }
.chip.warn { background: #FFFBB8; color: #6B6400; }
.plan-opt { border: 2px solid #E6E7F5; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.plan-opt.sel { border-color: var(--ersel-indigo); background: #F3F4FF; }
.plan-opt strong { display: block; }
.plan-opt small { color: var(--muted); }
.fake-btn { background: var(--ersel-indigo); color: #fff; text-align: center; border-radius: 12px; padding: 12px; font-weight: 800; font-size: .85rem; margin-top: 14px; }
.fake-btn.sun { background: var(--ersel-sun); color: var(--ersel-indigo-deep); }
.floating { position: absolute; right: -8px; bottom: 6px; background: var(--ersel-sun); color: var(--ersel-indigo-deep); padding: 12px 18px; border-radius: 14px; font-weight: 800; font-size: .8rem; box-shadow: 0 14px 28px rgba(8, 10, 50, .35); }
.terminal { background: #0E1240; color: #D9DBFF; border-radius: 14px; padding: 14px; font: 600 .72rem/1.7 ui-monospace, Consolas, monospace; overflow: hidden; white-space: pre-wrap; word-break: break-all; }
.terminal .k { color: var(--ersel-orchid); } .terminal .s { color: var(--ersel-sun); } .terminal .g { color: #5FE3A1; }
.keybox { background: #F3F4FF; border: 1px dashed var(--ersel-indigo); border-radius: 12px; padding: 12px; font: 700 .76rem ui-monospace, Consolas, monospace; color: var(--ersel-indigo); word-break: break-all; margin-top: 10px; }
.bubble { background: #F0F1FC; border-radius: 16px 16px 16px 4px; padding: 11px 14px; font-size: .82rem; margin-bottom: 10px; max-width: 92%; }
.bubble .st { display: block; font-size: .66rem; color: #107A42; font-weight: 800; margin-top: 4px; }
.done { text-align: center; }
.done .check { width: 64px; height: 64px; background: #20C46B; color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin: 4px auto 12px; }
.note { position: absolute; left: 56px; bottom: 16px; z-index: 3; font-size: .68rem; color: rgba(255, 255, 255, .6); }
.controls { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.control { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D6D8F0; background: #fff; color: var(--ersel-indigo); font-weight: 800; flex-shrink: 0; }
.control:hover { background: var(--ersel-indigo); color: #fff; }
.seek { flex: 1; accent-color: var(--ersel-indigo); min-width: 40px; cursor: pointer; }
.timer { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
.chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; }
.chapter { background: transparent; border: 0; border-top: 3px solid #DADCF2; text-align: left; padding: 12px 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.chapter span { display: block; font-size: .66rem; margin-bottom: 5px; }
.chapter.active { color: var(--ersel-indigo); border-color: var(--ersel-orchid); font-weight: 800; }
/* ---------- Privacy page ---------- */
.legal-hero { background: linear-gradient(135deg, var(--ersel-indigo), var(--ersel-indigo-deep)); color: #fff; padding: 7rem 0 3.5rem; }
.legal-hero h1 { font-weight: 800; letter-spacing: -1.5px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2.6rem; color: var(--ersel-indigo); letter-spacing: -.5px; }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin-top: 1.4rem; }
.legal p, .legal li { line-height: 1.75; color: #2F3466; }
.legal table { font-size: .92rem; }
.legal thead th { background: #F0F1FC; color: var(--ersel-indigo); }
.toc { background: #F3F4FF; border-radius: 18px; padding: 1.3rem 1.6rem; border-left: 5px solid var(--ersel-orchid); }
.toc a { text-decoration: none; font-weight: 600; }
.callout { background: #FFFEC2; border-left: 5px solid var(--ersel-sun); border-radius: 12px; padding: 1rem 1.3rem; }

@media (max-width: 767px) {
  .hero { padding: 5.5rem 0 4rem; }
  section { padding: 3.5rem 0; }
  .film { min-height: 780px; }
  .scene { grid-template-columns: 1fr; padding: 34px 24px 50px; gap: 8px; align-content: start; }
  .scene h2 { font-size: 2.1rem; letter-spacing: -1.2px; margin-bottom: 10px; }
  .scene p { font-size: .95rem; max-width: 100%; }
  .art { height: 340px; margin-top: 10px; }
  .panel { max-width: 330px; padding: 18px; }
  .note { left: 24px; }
  .chapter { font-size: .66rem; }
  .badge-float.b1 { left: -8px; } .badge-float.b2 { right: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .badge-float, .status-dot { animation: none; }
}
