/* My Schoolguru ERP — website styles */
:root {
  --bg: #0B0E22;
  --bg-2: #10143A;
  --card: #151A44;
  --card-2: #1B2050;
  --frame: #2B3175;
  --line: rgba(139, 92, 246, .22);
  --line-soft: rgba(195, 200, 236, .10);
  --text: #FFFFFF;
  --muted: #C3C8EC;
  --dim: #8C92C4;
  --brand: #8B5CF6;
  --brand-2: #A78BFA;
  --pink: #EC4899;
  --cyan: #22D3EE;
  --blue: #3B82F6;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --grad: linear-gradient(90deg, #A78BFA 0%, #EC4899 55%, #F59E0B 100%);
  --grad-btn: linear-gradient(135deg, #8B5CF6, #EC4899);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  --glow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(139, 92, 246, .55);
  --header-bg: rgba(11, 14, 34, .78);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F7FD;
  --bg-2: #EEEFFB;
  --card: #FFFFFF;
  --card-2: #F4F2FF;
  --frame: #DCD8F5;
  --line: rgba(124, 58, 237, .18);
  --line-soft: rgba(20, 22, 58, .08);
  --text: #14163A;
  --muted: #474C74;
  --dim: #767BA3;
  --brand: #7C3AED;
  --brand-2: #7C3AED;
  --grad: linear-gradient(90deg, #7C3AED 0%, #DB2777 60%, #D97706 100%);
  --shadow: 0 24px 50px -24px rgba(40, 30, 110, .28);
  --glow: 0 0 0 1px var(--line), 0 30px 70px -34px rgba(124, 58, 237, .45);
  --header-bg: rgba(247, 247, 253, .82);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 18px/1 var(--font-head); white-space: nowrap; }
.logo img { width: 38px; height: 38px; border-radius: 50%; }
.logo small { display: block; font: 600 10.5px/1.3 var(--font); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--card-2); box-shadow: inset 0 -2px 0 var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 15px/1.2 var(--font); white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 30px -10px rgba(236, 72, 153, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(236, 72, 153, .7); }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 40px; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 15% 20%, rgba(139, 92, 246, .32), transparent 70%),
    radial-gradient(520px 360px at 85% 10%, rgba(236, 72, 153, .22), transparent 70%),
    radial-gradient(460px 320px at 60% 70%, rgba(34, 211, 238, .12), transparent 70%);
}
:root[data-theme="light"] .hero::before, :root[data-theme="light"] .page-hero::before { opacity: .55; }
.hero .container { position: relative; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px;
  background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.badge b { background: var(--grad-btn); color: #fff; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); margin: 22px 0 20px; font-weight: 800; }
.hero-copy > p { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }

.hero-visual { position: relative; margin: 60px auto 0; max-width: 1060px; }
.browser {
  border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--glow);
  border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--card-2); border-bottom: 1px solid var(--line-soft); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #EF4444; }
.browser-bar span:nth-child(2) { background: #F59E0B; }
.browser-bar span:nth-child(3) { background: #10B981; }
.browser-bar em { margin-left: 12px; font: 500 12.5px/1 var(--font); color: var(--dim); font-style: normal; padding: 5px 12px; border-radius: 8px; background: var(--bg); }
.hero-visual .phone-float { position: absolute; right: -2%; bottom: -8%; width: 21%; min-width: 120px; }

/* Phone frame */
.phone {
  margin: 0; border-radius: 26px; padding: 7px; background: linear-gradient(160deg, #2B3175, #151A44);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
:root[data-theme="light"] .phone { background: linear-gradient(160deg, #2a2f5c, #14163A); }
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 750 / 1600; object-fit: cover; object-position: top; }
.phone figcaption, .shot figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.phone-wrap { margin: 0; }
.phone-wrap figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.shot { margin: 0; }
.shot .frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
}
.zoomable { cursor: zoom-in; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.stat { background: var(--card); padding: 26px 16px; text-align: center; }
.stat b { display: block; font: 800 clamp(30px, 3.6vw, 42px)/1 var(--font-head); color: var(--c, var(--brand-2)); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card.hover:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--glow); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); color: var(--c, var(--brand));
  border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 30%, transparent);
  font-size: 22px;
}
.ico svg { width: 22px; height: 22px; }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare .card { padding: 32px; }
.compare h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 18px; }
.compare h3 svg { flex: none; width: 24px; height: 24px; color: var(--red); }
.compare li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.compare li:first-child { border-top: 0; }
.compare li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.compare .bad svg { color: var(--red); }
.compare .good { border-color: var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, var(--card)), var(--card)); }
.compare .good svg { color: var(--green); }
.compare .good li { color: var(--text); }

/* Roles */
.role { display: flex; gap: 16px; align-items: flex-start; }
.role .ico { margin: 0; flex: none; }
.role h3 { font-size: 17px; }
.role p { font-size: 14.5px; margin-top: 5px; }

/* Integrations hub */
.hub { position: relative; width: min(620px, 100%); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.hub::before, .hub::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--line);
}
.hub::after { inset: 32%; border-style: solid; border-color: var(--line-soft); }
.hub-core {
  position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, #A78BFA, #6D28D9 55%, #4C1D95); color: #fff;
  box-shadow: 0 0 0 10px rgba(139, 92, 246, .12), 0 0 80px rgba(139, 92, 246, .55);
}
.hub-core img { width: 44%; margin: 0 auto 6px; border-radius: 50%; }
.hub-core b { display: block; font: 800 clamp(14px, 2.2vw, 19px)/1.1 var(--font-head); }
.hub-core small { font-size: 12px; opacity: .85; letter-spacing: .12em; }
.hub-node {
  position: absolute; left: 50%; top: 50%; width: 132px; margin: -26px 0 0 -66px;
  transform: rotate(var(--a)) translate(40cqw) rotate(calc(-1 * var(--a)));
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
}
.hub-node i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 15px; background: color-mix(in srgb, var(--c) 18%, transparent); }

/* Split feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip > .feature-media { order: -1; }
.feature-copy h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 14px 0 14px; }
.feature-copy > p { color: var(--muted); font-size: 17px; }
.points { margin-top: 26px; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points li .dot {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); color: var(--c, var(--brand));
}
.points li .dot svg { width: 18px; height: 18px; }
.points b { display: block; font-size: 16px; }
.points span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.useful { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--dim); }
.useful .tag { padding: 4px 11px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.phones .phone-wrap:nth-child(2) { transform: translateY(28px); }
.phones.two { grid-template-columns: repeat(2, 1fr); max-width: 440px; margin: 0 auto; }

.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Workspace bars */
.ws-list { display: grid; gap: 10px; }
.ws { display: grid; grid-template-columns: 220px 1fr 46px; gap: 16px; align-items: center; font-weight: 600; font-size: 15px; }
.ws .bar { height: 12px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.ws .bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--c); transform-origin: left; }
.ws b { text-align: right; color: var(--c); font-family: var(--font-head); }

/* Module catalog */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.module-group h3 { display: flex; align-items: center; justify-content: space-between; font-size: 18px; margin-bottom: 14px; }
.module-group h3 span { font: 800 13px/1 var(--font); padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.module-group ul { display: flex; flex-wrap: wrap; gap: 7px; }
.module-group li { padding: 5px 11px; border-radius: 8px; background: var(--card-2); font-size: 13.5px; color: var(--muted); border: 1px solid var(--line-soft); }

/* Steps / pipeline */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); }
.step .num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  font: 800 18px/1 var(--font-head); color: #fff; background: var(--c, var(--grad-btn));
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px; background: var(--line);
}
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pipeline span { position: relative; padding: 8px 16px 8px 14px; border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 600; background: var(--c); }

/* Callout */
.callout {
  margin-top: 22px; padding: 16px 18px; border-radius: 14px; border-left: 3px solid var(--c, var(--brand));
  background: color-mix(in srgb, var(--c, var(--brand)) 10%, var(--card)); color: var(--text); font-size: 15px;
}

/* Tabs / gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab {
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s;
}
.tab[aria-selected="true"] { background: var(--grad-btn); color: #fff; border-color: transparent; }
.tab-panel[hidden] { display: none; }
.tab-panel .browser { max-width: 1000px; margin: 0 auto; }
.tab-panel p.cap { text-align: center; color: var(--muted); margin-top: 18px; }

/* Benefit lists */
.benefit h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin-bottom: 14px; }
.benefit h3 .em { font-size: 26px; }
.checks li { display: flex; gap: 10px; padding: 7px 0; color: var(--muted); font-size: 15px; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Routine */
.routine .card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 12px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg, #4C1D95, #7C3AED 45%, #DB2777); color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .25), transparent 70%), radial-gradient(400px 220px at 0% 100%, rgba(34, 211, 238, .25), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band p { margin: 14px auto 0; max-width: 620px; opacity: .9; font-size: 18px; }
.cta-band .hero-ctas .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta-band .btn-light { background: #fff; color: #4C1D95; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; overflow: hidden; }
.page-hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero.center .container { grid-template-columns: 1fr; text-align: center; }
.page-hero.center .hero-ctas, .page-hero.center .chips { justify-content: center; }
.page-hero.center p.lead { margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; margin: 16px 0 18px; }
.page-hero p.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.page-hero .hero-ctas { justify-content: flex-start; }
.page-hero .chips { justify-content: flex-start; }
.hero-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 460px; margin-left: auto; }
.hero-phones .phone-wrap:last-child { transform: translateY(40px); }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.mini-stats div { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); }
.mini-stats b { display: block; font: 800 26px/1 var(--font-head); color: var(--c, var(--brand-2)); }
.mini-stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

.note-strip {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; align-items: center;
  padding: 16px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted);
}

/* Section nav (in-page) */
.subnav { position: sticky; top: 70px; z-index: 40; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-soft); background: var(--card); }
.subnav a:hover, .subnav a.active { color: #fff; background: var(--brand); border-color: var(--brand); }
[id] { scroll-margin-top: 140px; }

/* App cards */
.app-card { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: center; }
.app-card .checks { margin-top: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-soft);
  background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.form .err { display: none; color: var(--red); font-size: 12.5px; margin-top: 5px; }
.form .invalid input, .form .invalid select { border-color: var(--red); }
.form .invalid .err { display: block; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .ico { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; --c: var(--green); }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.contact-item:first-of-type { border-top: 0; }
.contact-item .ico { margin: 0; width: 42px; height: 42px; }
.contact-item small { display: block; color: var(--dim); font-size: 12.5px; }

/* FAQ */
.faq details { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 64px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer li { padding: 5px 0; }
.site-footer li a { color: var(--muted); font-size: 15px; }
.site-footer li a:hover { color: var(--text); }
.site-footer .about { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 340px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--dim); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column;
  background: rgba(5, 6, 20, .92); padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1300px, 100%); max-height: calc(100vh - 110px); width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox p { color: #C3C8EC; margin-top: 14px; font-size: 14.5px; }
.lightbox .close { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 14px 20px 22px;
    background: var(--bg); border-bottom: 1px solid var(--line-soft); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .feature, .page-hero .container, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip > .feature-media { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .hero-phones { margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ws { grid-template-columns: 150px 1fr 40px; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .container { padding: 0 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g2, .g3, .g4, .compare, .shots-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .phones { gap: 10px; }
  .phones .phone-wrap:nth-child(2) { transform: translateY(16px); }
  .phone { padding: 4px; border-radius: 16px; }
  .phone img { border-radius: 12px; }
  .phone-wrap figcaption { font-size: 11.5px; }
  .hero-visual .phone-float { right: 0; bottom: -10%; }
  .form { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr 110px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ws { grid-template-columns: 1fr 40px; gap: 6px 12px; }
  .ws .bar { grid-column: 1 / -1; grid-row: 2; }
  .cta-band { padding: 48px 22px; border-radius: 20px; }
  .logo small { display: none; }
  .hub { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hub::before, .hub::after { display: none; }
  .hub-core { position: relative; inset: auto; grid-column: 1 / -1; width: 170px; height: 170px; margin: 0 auto 18px; }
  .hub-node { position: static; transform: none; width: auto; margin: 0; }
}

/* Demo form extras */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; border-radius: 11px; background: color-mix(in srgb, var(--red) 14%, transparent); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); color: var(--text); font-size: 14.5px; }
.form-error[hidden] { display: none; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  border-radius: 99px; background: #25D366; color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .75); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media (max-width: 640px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float span { display: none; }
}
.contact-item a { color: var(--text); font-weight: 600; }
.contact-item a:hover { color: var(--brand-2); }

/* Product cards (home) */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-media {
  position: relative; height: 250px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
  padding-top: 24px; border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--card-2);
}
.product-media .phone { flex: none; width: 52%; transition: transform .35s ease; }
.product-media .pm-browser { flex: none; width: 150%; margin: 10px 0 0 50%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s ease; }
.product:hover .product-media .phone, .product:hover .product-media .pm-browser { transform: translateY(-8px); }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 19px; }
.product-body p { flex: 1; }
.product .more { margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--c); }
.product .zoomable { cursor: pointer; }

/* =========================================================
   Home hero slider + animated phone
   ========================================================= */
.hero-slider { position: relative; overflow: hidden; padding: 56px 0 30px; --a1: #8B5CF6; --a2: #EC4899; --dur: 9000ms; }
.hs-bg { position: absolute; inset: 0; pointer-events: none; }
.hs-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .38; transition: background 1.2s ease; animation: hs-drift 16s ease-in-out infinite alternate; }
.hs-bg i:nth-child(1) { width: 520px; height: 420px; left: -8%; top: -12%; background: var(--a1); }
.hs-bg i:nth-child(2) { width: 460px; height: 420px; right: -6%; top: 8%; background: var(--a2); animation-delay: -5s; }
.hs-bg i:nth-child(3) { width: 380px; height: 300px; left: 38%; bottom: -20%; background: #22D3EE; opacity: .16; animation-delay: -9s; }
:root[data-theme="light"] .hs-bg i { opacity: .22; }
@keyframes hs-drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hs-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 620px; }
.hs-slides { display: grid; }
.hs-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; --dir: 1; }
.hs-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.hs-slide.is-leaving { visibility: visible; opacity: 1; animation: hs-out .45s ease both; }
@keyframes hs-out { to { opacity: 0; transform: translateX(calc(var(--dir) * -50px)); filter: blur(4px); } }
.hs-slide h1, .hs-title { font: 800 clamp(34px, 5vw, 58px)/1.08 var(--font-head); letter-spacing: -.02em; margin: 20px 0 18px; }
.hs-text { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 580px; }
.hs-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hs-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; }
.hs-points svg { width: 16px; height: 16px; color: var(--a1); transition: color .6s; }
.hs-slide .hero-ctas { justify-content: flex-start; }
.hs-slide .badge b { background: linear-gradient(135deg, var(--a1), var(--a2)); }

/* staggered entrance per child; the effect comes from data-fx */
.hs-slide > :nth-child(1) { --i: 0; } .hs-slide > :nth-child(2) { --i: 1; } .hs-slide > :nth-child(3) { --i: 2; }
.hs-slide > :nth-child(4) { --i: 3; } .hs-slide > :nth-child(5) { --i: 4; }
.hs-slide.is-active > * { animation: .85s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 95ms + 80ms); }
.hs-slide.is-active[data-fx="slide"] > * { animation-name: fx-slide; }
.hs-slide.is-active[data-fx="rise"] > * { animation-name: fx-rise; }
.hs-slide.is-active[data-fx="zoom"] > * { animation-name: fx-zoom; }
.hs-slide.is-active[data-fx="blur"] > * { animation-name: fx-blur; }
.hs-slide.is-active[data-fx="wipe"] > * { animation-name: fx-wipe; }
.hs-slide.is-active[data-fx="tilt"] > * { animation-name: fx-tilt; transform-origin: 0 0; }
@keyframes fx-slide { from { opacity: 0; transform: translateX(calc(var(--dir) * 70px)); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(46px); } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(.82); } }
@keyframes fx-blur { from { opacity: 0; filter: blur(16px); transform: translateY(8px); } }
@keyframes fx-wipe { from { opacity: .2; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes fx-tilt { from { opacity: 0; transform: perspective(700px) rotateX(-55deg) translateY(20px); } }

/* phone stage */
.hs-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.device {
  position: relative; width: 300px; aspect-ratio: 9 / 19.3; padding: 11px; border-radius: 50px;
  background: linear-gradient(145deg, #2a2f5c, #0d0f24 55%, #1c2046);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .8),
    0 0 90px -20px color-mix(in srgb, var(--a1) 70%, transparent);
  animation: d-float 6s ease-in-out infinite; transition: box-shadow 1s;
}
@keyframes d-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.d-btn { position: absolute; width: 4px; border-radius: 3px; background: #2a2f5c; }
.d-power { right: -3px; top: 26%; height: 70px; }
.d-vol1 { left: -3px; top: 20%; height: 40px; }
.d-vol2 { left: -3px; top: 29%; height: 40px; }
.d-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #05060f; display: flex; flex-direction: column; }
.d-status { position: relative; flex: none; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0; color: #fff; font: 600 12.5px/1 var(--font); z-index: 3; background: #0b0c1a; }
.d-island { position: absolute; left: 50%; top: 7px; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #000; }
.d-icons { display: flex; gap: 3px; align-items: flex-end; }
.d-icons i { width: 3px; background: #fff; border-radius: 1px; }
.d-icons i:nth-child(1) { height: 5px; } .d-icons i:nth-child(2) { height: 8px; } .d-icons i:nth-child(3) { height: 11px; }
.d-view { position: relative; flex: 1; overflow: hidden; perspective: 1000px; background: #05060f; }
.d-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; backface-visibility: hidden; }
.d-layer.is-on { opacity: 1; z-index: 1; }
.d-layer[class*="enter-"] { z-index: 2; animation: .7s cubic-bezier(.2, .8, .2, 1) both; }
.d-layer[class*="leave-"] { opacity: 1; z-index: 1; animation: .7s cubic-bezier(.2, .8, .2, 1) both; }
.d-layer.enter-slide { animation-name: scr-slide-in; } .d-layer.leave-slide { animation-name: scr-slide-out; }
.d-layer.enter-up { animation-name: scr-up-in; } .d-layer.leave-up { animation-name: scr-up-out; }
.d-layer.enter-zoom { animation-name: scr-zoom-in; } .d-layer.leave-zoom { animation-name: scr-fade-out; }
.d-layer.enter-flip { animation-name: scr-flip-in; transform-origin: left center; } .d-layer.leave-flip { animation-name: scr-flip-out; transform-origin: right center; }
.d-layer.enter-fade { animation-name: scr-fade-in; } .d-layer.leave-fade { animation-name: scr-fade-out; }
@keyframes scr-slide-in { from { transform: translateX(100%); } }
@keyframes scr-slide-out { to { transform: translateX(-35%); opacity: .3; } }
@keyframes scr-up-in { from { transform: translateY(100%); } }
@keyframes scr-up-out { to { transform: translateY(-20%) scale(.94); opacity: .3; } }
@keyframes scr-zoom-in { from { transform: scale(1.18); opacity: 0; } }
@keyframes scr-flip-in { from { transform: rotateY(-80deg); opacity: 0; } }
@keyframes scr-flip-out { to { transform: rotateY(60deg); opacity: 0; } }
@keyframes scr-fade-in { from { opacity: 0; } }
@keyframes scr-fade-out { to { opacity: 0; } }
.d-tap { position: absolute; z-index: 4; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); opacity: 0; pointer-events: none; }
.d-tap.go { animation: d-tap .6s ease-out both; }
@keyframes d-tap { 0% { opacity: .95; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.5); } }
.d-home { position: absolute; left: 50%; bottom: 7px; width: 110px; height: 4px; margin-left: -55px; border-radius: 4px; background: rgba(255, 255, 255, .55); z-index: 5; }
.d-caption { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.d-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: d-live 1.6s infinite; }
@keyframes d-live { 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.d-cap.swap { animation: cap-swap .45s ease both; }
@keyframes cap-swap { from { opacity: 0; transform: translateY(6px); } }

/* notification toasts */
.toast {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px; max-width: 230px; padding: 10px 14px 10px 10px;
  border-radius: 16px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(.94);
}
.toast .t-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--a1) 25%, transparent); transition: background .6s; }
.toast.t1 { top: 12%; left: -6%; }
.toast.t2 { bottom: 20%; right: -8%; }
.toast.t2 .t-ico { background: color-mix(in srgb, var(--a2) 25%, transparent); }
.toast.show { animation: toast-in .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.toast.t1.show { animation-delay: .9s; }
.toast.t2.show { animation-delay: 2.2s; }
@keyframes toast-in { to { opacity: 1; transform: none; } }

/* controls */
.hs-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; }
.hs-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hs-dot {
  position: relative; overflow: hidden; cursor: pointer; padding: 9px 15px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line-soft); color: var(--muted); font: 600 13px/1 var(--font); transition: all .3s;
}
.hs-dot:hover { color: var(--text); border-color: var(--line); }
.hs-dot[aria-selected="true"] { color: var(--text); background: var(--card-2); border-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.hs-dot i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.hs-dot[aria-selected="true"] i { animation: hs-prog var(--dur) linear forwards; }
.hero-slider.hold .hs-dot i, .hero-slider.paused .hs-dot i { animation-play-state: paused; }
@keyframes hs-prog { to { width: 100%; } }
.hs-pause .i-play { display: none; }
.hero-slider.paused .hs-pause .i-play { display: block; }
.hero-slider.paused .hs-pause .i-pause { display: none; }

@media (max-width: 960px) {
  .hs-grid { grid-template-columns: 1fr; min-height: 0; gap: 34px; }
  .device { width: 250px; border-radius: 42px; }
  .d-screen { border-radius: 33px; }
  .toast.t1 { left: 4%; } .toast.t2 { right: 2%; }
}
@media (max-width: 640px) {
  .hero-slider { padding-top: 36px; }
  .device { width: 220px; padding: 9px; border-radius: 38px; }
  .d-screen { border-radius: 30px; }
  .d-island { width: 70px; margin-left: -35px; height: 20px; }
  .toast { max-width: 170px; font-size: 12px; padding: 7px 10px 7px 7px; }
  .toast .t-ico { width: 28px; height: 28px; font-size: 13px; }
  .toast.t1 { left: 0; top: 8%; } .toast.t2 { right: 0; bottom: 22%; }
  .hs-dot { width: 10px; height: 10px; padding: 0; }
  .hs-dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hs-dot[aria-selected="true"] { width: 34px; }
  .hs-dot i { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-bg i, .device, .d-dot { animation: none; }
  .hs-slide.is-active > *, .hs-slide.is-leaving { animation: none !important; }
  .d-layer[class*="enter-"] { animation-name: scr-fade-in !important; }
  .d-layer[class*="leave-"] { animation-name: scr-fade-out !important; }
}

/* Thank-you page */
.thanks-tick {
  width: 86px; height: 86px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #10B981, #22D3EE); box-shadow: 0 0 0 12px rgba(16, 185, 129, .15), 0 20px 50px -12px rgba(16, 185, 129, .6);
  animation: tick-pop .7s cubic-bezier(.2, .9, .3, 1.4) both;
}
.thanks-tick svg { width: 42px; height: 42px; }
@keyframes tick-pop { from { transform: scale(.3); opacity: 0; } }
.thanks .lead strong { color: var(--text); }
