/* =========================================================
   JANJATI COMMERCIAL INSTITUTE — STYLESHEET
   Dark theme is the default. Light theme via [data-theme="light"].
   ========================================================= */

@property --spin-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root,
:root[data-theme="dark"] {
  --bg: #070a14;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #10162a;
  --card: rgba(17, 23, 43, 0.82);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: #9aa5c4;
  --heading: #ffffff;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ffbf69;
  --glow-1: rgba(124, 92, 255, 0.35);
  --glow-2: rgba(34, 211, 238, 0.25);
  --header-bg: rgba(7, 10, 20, 0.78);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --key-bg: rgba(255, 255, 255, 0.06);
  --key-border: rgba(255, 255, 255, 0.12);
  --screen: rgba(3, 6, 16, 0.75);
  --marquee-bg: rgba(124, 92, 255, 0.08);
  --meta-color: #fff;
}

:root[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-2: #e9edf8;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(20, 27, 60, 0.1);
  --text: #2b3355;
  --muted: #667089;
  --heading: #121936;
  --accent: #6c47ff;
  --accent-2: #0891b2;
  --accent-3: #d97706;
  --glow-1: rgba(108, 71, 255, 0.18);
  --glow-2: rgba(8, 145, 178, 0.14);
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 50px rgba(31, 41, 89, 0.12);
  --key-bg: rgba(25, 33, 70, 0.05);
  --key-border: rgba(25, 33, 70, 0.12);
  --screen: rgba(255, 255, 255, 0.9);
  --marquee-bg: rgba(108, 71, 255, 0.06);
  --meta-color: #121936;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(650px 450px at 85% 8%, var(--glow-1), transparent 70%),
    radial-gradient(550px 400px at 5% 35%, var(--glow-2), transparent 70%);
  z-index: -1;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Shared typography & buttons ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--accent-2);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .96rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(110deg, var(--accent), #a04dff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(124, 92, 255, .5); }
.btn-outline { border: 1px solid var(--border); background: var(--surface); color: var(--heading); backdrop-filter: blur(10px); }
.btn-outline:hover { border-color: var(--accent-2); box-shadow: 0 0 24px rgba(34,211,238,.14); }
.btn-light { background: #fff; color: #17102e; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.btn-sm { padding: 10px 16px; font-size: .85rem; border-radius: 11px; }

.link-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 600; margin-top: 10px; }
.link-btn svg { width: 17px; height: 17px; transition: transform .25s ease; }
.link-btn:hover svg { transform: translateX(5px); }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .25s, transform .25s, background .25s;
}
.icon-btn:hover { border-color: var(--accent-2); transform: translateY(-2px); }

.round-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  transition: all .25s ease;
}
.round-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.08); }

/* ---------- Sparkling animated border ---------- */
.shine-card { position: relative; isolation: isolate; border-radius: 22px; z-index: 0; }
.shine-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin-angle), var(--accent-2), var(--accent), transparent 32%, transparent 60%, var(--accent-3), var(--accent-2));
  animation: spin-border 7s linear infinite;
  z-index: -2;
  opacity: .75;
  transition: opacity .3s ease;
}
.shine-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--card);
  backdrop-filter: blur(16px);
  z-index: -1;
}
.shine-card:hover::before { opacity: 1; animation-duration: 3s; }
@keyframes spin-border { to { --spin-angle: 360deg; } }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; }
.pre-icon {
  width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 20px;
  border-radius: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 0 50px var(--glow-1);
  animation: float 2s ease-in-out infinite;
}
.pre-icon svg { width: 34px; height: 34px; }
.pre-text { font-family: 'JetBrains Mono', monospace; color: var(--accent-2); font-size: .95rem; min-height: 26px; }
.pre-bar { width: 180px; height: 3px; border-radius: 3px; background: var(--surface); overflow: hidden; margin: 18px auto 0; }
.pre-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: load-bar 1.3s ease forwards; }
@keyframes load-bar { to { width: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cursor { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: var(--accent-2); vertical-align: -.12em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .4s, box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 12px 35px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 20px var(--glow-1);
}
.brand-icon svg { width: 23px; height: 23px; }
.brand-text strong { display: block; font-size: 1.12rem; line-height: 1.1; color: var(--heading); letter-spacing: -.02em; }
.brand-text small { display: block; font-size: .65rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .25s; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent-2); transition: width .3s ease; border-radius: 2px; }
.nav-link:hover, .nav-link.active { color: var(--heading); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 19px; height: 19px; transition: transform .45s ease, opacity .3s ease; position: absolute; }
.theme-toggle .icon-sun { transform: rotate(90deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .icon-sun { transform: rotate(0); opacity: 1; }
:root[data-theme="light"] .theme-toggle .icon-moon { transform: rotate(-90deg); opacity: 0; }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-open { display: none; }
.nav-toggle.active .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 95px 0 110px; overflow: hidden; }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid var(--border); pointer-events: none; }
.orbit-1 { width: 620px; height: 620px; right: -180px; top: -130px; animation: float 9s ease-in-out infinite; }
.orbit-2 { width: 420px; height: 420px; left: -200px; bottom: -100px; border-color: rgba(34,211,238,.14); animation: float 7s ease-in-out infinite reverse; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--surface); font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { margin-bottom: 12px; }
.hero-typing-line { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.05rem, 2.2vw, 1.45rem); color: var(--muted); margin-bottom: 18px; }
.type-target { color: var(--accent-3); font-weight: 700; }
.hero-desc { max-width: 560px; font-size: 1.04rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats > div { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.hero-stats strong { font-size: 1.85rem; color: var(--heading); font-weight: 800; line-height: 1; }
.hero-stats span { color: var(--accent-2); font-size: 1.15rem; font-weight: 700; }
.hero-stats small { flex-basis: 100%; color: var(--muted); font-size: .8rem; margin-top: 5px; letter-spacing: .04em; }

/* Keyboard visual */
.hero-visual { position: relative; padding: 20px 6px; }
.keyboard-card { padding: 18px; border-radius: 24px; box-shadow: var(--shadow); }
.window-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.file-name { display: inline-flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--muted); }
.file-name svg { width: 15px; height: 15px; }
.live-dot { margin-left: auto; font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: #34d399; }
.live-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #34d399; border-radius: 50%; margin-right: 6px; animation: pulse 1.8s infinite; }
.typed-screen {
  font-family: 'JetBrains Mono', monospace; font-size: clamp(.82rem, 1.5vw, 1rem);
  color: #d8f7ff; background: var(--screen); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; margin: 16px 0 18px; min-height: 92px;
  line-height: 1.7; box-shadow: inset 0 0 30px rgba(34,211,238,.05);
}
:root[data-theme="light"] .typed-screen { color: #0f766e; }
.keyboard { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.key-row { display: flex; gap: 6px; justify-content: center; width: 100%; }
.key {
  flex: 1 1 0; min-width: 0; height: 32px; display: grid; place-items: center;
  background: var(--key-bg); border: 1px solid var(--key-border); border-radius: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--muted);
  box-shadow: 0 3px 0 rgba(0,0,0,.22); transition: transform .12s, background .2s, color .2s, box-shadow .12s;
}
.key.wide { flex: 1.7 1 0; }
.key.space { flex: 5 1 0; }
.key.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  transform: translateY(3px); box-shadow: 0 0 18px var(--glow-1); border-color: transparent;
}
.keyboard-footer { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.keyboard-footer span { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); }
.keyboard-footer svg { width: 15px; height: 15px; color: var(--accent-2); }
.keyboard-footer b { color: var(--heading); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 12px; font-size: .78rem; font-weight: 600;
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--heading);
  animation: float 4s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--accent-3); }
.chip-a { top: -2px; right: -10px; }
.chip-b { bottom: 18px; left: -18px; animation-delay: -2s; }
.sparkle { position: absolute; color: var(--accent-3); font-size: 1.1rem; animation: twinkle 2.5s ease-in-out infinite; }
.sp-1 { top: 22%; left: -26px; }
.sp-2 { top: 55%; right: -18px; animation-delay: -.8s; color: var(--accent-2); }
.sp-3 { bottom: 6%; right: 14%; animation-delay: -1.5s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.3) rotate(45deg); text-shadow: 0 0 14px currentColor; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--marquee-bg); border-block: 1px solid var(--border); padding: 16px 0; }
.marquee-track { display: flex; gap: 34px; align-items: center; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-weight: 700; letter-spacing: .18em; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.marquee-track b { color: var(--accent-2); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-frame {
  min-height: 430px; border-radius: 28px; position: relative; overflow: hidden;
  display: grid; place-items: center; padding: 30px; box-shadow: var(--shadow);
}
.about-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--accent-2) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .16;
  mask-image: linear-gradient(135deg, #000, transparent 75%);
}
.about-icon-main {
  width: 150px; height: 150px; display: grid; place-items: center; border-radius: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 20px 60px var(--glow-1); animation: float 5s ease-in-out infinite;
}
.about-icon-main svg { width: 78px; height: 78px; stroke-width: 1.4; }
.about-mini-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.about-mini-card svg { color: var(--accent-2); }
.about-mini-card b, .about-mini-card small { display: block; }
.about-mini-card b { font-size: .85rem; color: var(--heading); }
.about-mini-card small { font-size: .7rem; color: var(--muted); }
.mini-1 { top: 38px; left: 24px; }
.mini-2 { bottom: 48px; right: 22px; animation-delay: -1.5s; }
.mini-3 { bottom: 42px; left: 26px; animation-delay: -3s; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { margin-bottom: 16px; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--text); font-size: .96rem; }
.check-list svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--accent-2); background: rgba(34,211,238,.12); }

/* ---------- Section headings & carousels ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head p { margin-top: 10px; max-width: 600px; }
.section-head.center p { margin-inline: auto; }
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel { overflow: hidden; padding: 8px 4px 20px; margin: -8px -4px -20px; }
.carousel-track { display: flex; gap: 22px; transition: transform .6s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: 1px solid transparent; transition: all .3s; }
.carousel-dots button.active { width: 28px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 14px var(--glow-1); }

/* Course cards */
.course-card { flex: 0 0 calc((100% - 44px) / 3); padding: 30px 26px 22px; display: flex; flex-direction: column; min-height: 420px; transition: transform .35s ease; }
.course-card:hover { transform: translateY(-8px); }
.course-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #7c5cff, #4d8dff); box-shadow: 0 10px 25px rgba(124,92,255,.35); margin-bottom: 20px; }
.course-icon svg { width: 28px; height: 28px; }
.course-icon.alt { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 10px 25px rgba(14,165,233,.3); }
.course-icon.gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 10px 25px rgba(245,158,11,.3); }
.course-icon.pink { background: linear-gradient(135deg, #ec4899, #f472b6); box-shadow: 0 10px 25px rgba(236,72,153,.3); }
.course-icon.teal { background: linear-gradient(135deg, #14b8a6, #34d399); box-shadow: 0 10px 25px rgba(20,184,166,.3); }
.course-tag { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 50px; color: var(--accent-2); background: rgba(34,211,238,.1); margin-bottom: 12px; }
.course-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.course-card p { font-size: .92rem; margin-bottom: 18px; }
.course-card ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.course-card li { display: flex; gap: 9px; align-items: center; font-size: .86rem; color: var(--text); }
.course-card li svg { width: 15px; height: 15px; color: #34d399; }
.course-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.course-foot span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.course-foot span svg { width: 14px; height: 14px; }
.course-foot a { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--accent-2); }
.course-foot a svg { width: 15px; height: 15px; transition: transform .25s; }
.course-foot a:hover svg { transform: translateX(4px); }

/* ---------- Speed test ---------- */
.speed-section { background: linear-gradient(180deg, transparent, rgba(124,92,255,.05), transparent); }
.test-card { max-width: 850px; margin-inline: auto; padding: 28px; box-shadow: var(--shadow); }
.test-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.test-label { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; letter-spacing: .15em; font-weight: 700; color: var(--accent-2); }
.text-btn { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); transition: color .2s; }
.text-btn:hover { color: var(--accent-2); }
.text-btn svg { width: 15px; height: 15px; }
.sample-text { font-family: 'JetBrains Mono', monospace; font-size: clamp(.92rem, 2vw, 1.12rem); line-height: 1.9; padding: 20px; border-radius: 14px; background: var(--screen); border: 1px solid var(--border); color: var(--muted); white-space: pre-wrap; overflow-wrap: break-word; }
.sample-text .ch { transition: color .12s, background .12s; border-radius: 3px; }
.sample-text .ch.correct { color: #34d399; background: rgba(52,211,153,.09); }
.sample-text .ch.wrong { color: #fb7185; background: rgba(251,113,133,.18); }
.sample-text .ch.current { border-bottom: 2px solid var(--accent-2); }
.test-card textarea {
  width: 100%; margin-top: 16px; padding: 16px 18px; border-radius: 14px; resize: vertical;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--heading);
  font-family: 'JetBrains Mono', monospace; font-size: .95rem; outline: none; transition: border-color .25s, box-shadow .25s;
}
.test-card textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.test-card textarea::placeholder { color: var(--muted); opacity: .7; }
.test-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.test-stats > div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.test-stats span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.test-stats strong { font-size: 1.45rem; color: var(--heading); font-weight: 700; }
.test-stats strong small { font-size: .7rem; color: var(--accent-2); }
.progress-bar { height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; margin-top: 16px; }
.progress-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.test-hint { font-size: .82rem; margin-top: 12px; text-align: center; }
.test-hint.done { color: #34d399; font-weight: 600; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 32px 26px; transition: transform .3s ease; }
.feature-card:hover { transform: translateY(-8px); }
.feature-card:nth-child(3n+2) { transition-delay: .07s; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(124,92,255,.12); color: var(--accent); margin-bottom: 20px; }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin-bottom: 9px; font-size: 1.16rem; }
.feature-card p { font-size: .9rem; }

/* ---------- Stats band ---------- */
.stats-band { padding: 56px 0; background: linear-gradient(110deg, rgba(124,92,255,.12), rgba(34,211,238,.08)); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item svg { width: 26px; height: 26px; color: var(--accent-2); margin: 0 auto 10px; }
.stat-item strong { display: block; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--heading); line-height: 1.1; font-weight: 800; }
.stat-item span { font-size: .85rem; color: var(--muted); }

/* ---------- Gallery tiles ---------- */
.gallery-card { flex: 0 0 calc((100% - 44px) / 3); height: 260px; border-radius: 20px; position: relative; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-card::before { content: ''; position: absolute; inset: 0; transition: transform .6s ease; }
.gallery-card:hover::before { transform: scale(1.1); }
.gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,18,.88), rgba(5,7,18,.05)); }
.tile-1::before { background: linear-gradient(135deg, #4338ca, #06b6d4); }
.tile-2::before { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tile-3::before { background: linear-gradient(135deg, #7e22ce, #ec4899); }
.tile-4::before { background: linear-gradient(135deg, #0f766e, #34d399); }
.tile-5::before { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }
.tile-overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px; color: #fff; }
.tile-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); margin-bottom: 12px; }
.tile-icon svg { width: 22px; height: 22px; }
.tile-overlay h3 { color: #fff; font-size: 1.15rem; }
.tile-overlay p { color: rgba(255,255,255,.8); font-size: .82rem; }

/* ---------- Testimonials ---------- */
.review-slider { overflow: hidden; padding: 8px 4px 18px; margin: -8px -4px -18px; }
.review-track { display: flex; gap: 22px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.review-card { flex: 0 0 calc(50% - 11px); padding: 30px; }
.review-card .quote-icon { position: absolute; top: 26px; right: 26px; width: 38px; height: 38px; color: var(--accent); opacity: .35; }
.stars { display: flex; gap: 4px; margin-bottom: 16px; }
.stars svg { width: 15px; height: 15px; fill: #fbbf24; stroke: #fbbf24; color: #fbbf24; }
.review-card p { font-size: .98rem; color: var(--text); margin-bottom: 22px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: .82rem; }
.review-author strong { display: block; color: var(--heading); font-size: .92rem; }
.review-author small { color: var(--muted); font-size: .78rem; }
.review-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; }
.review-controls .carousel-dots { margin-top: 0; }

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 100px; }
.cta-inner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 52px 56px; border-radius: 28px;
  background: linear-gradient(115deg, rgba(124,92,255,.28), rgba(34,211,238,.16));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta-glow { position: absolute; width: 320px; height: 320px; right: -60px; top: -160px; border-radius: 50%; background: var(--glow-1); filter: blur(50px); }
.cta-inner > div:not(.cta-glow) { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { margin: 0; }
.cta-inner .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.info-card { display: flex; align-items: flex-start; gap: 15px; padding: 20px; }
.info-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; background: rgba(34,211,238,.12); color: var(--accent-2); }
.info-card h3 { font-size: 1rem; margin-bottom: 3px; }
.info-card p { font-size: .9rem; margin: 0; }
.info-card small { font-size: .8rem; color: var(--muted); }
.directions-btn { justify-content: center; margin-top: 6px; }
.contact-form { padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--heading); margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; padding: 13px 15px; border-radius: 11px; outline: none;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--heading); font-size: .92rem;
  transition: border-color .25s, box-shadow .25s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); opacity: .7; }
.contact-form .btn { width: 100%; }
.form-status { text-align: center; font-size: .86rem; margin-top: 12px; min-height: 20px; color: #34d399; }
.map-wrap { margin-top: 34px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15); }
.map-caption { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.map-caption svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent-2); }
.map-caption strong { color: var(--heading); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 70px 0 24px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { font-size: .9rem; margin: 18px 0 20px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); transition: all .25s; }
.socials a svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.site-footer h4 { font-size: .95rem; margin-bottom: 18px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid > div:not(.footer-brand) a, .footer-grid > div:not(.footer-brand) p { font-size: .88rem; color: var(--muted); transition: color .25s; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 22px; }
.footer-bottom p { font-size: .8rem; }
.footer-bottom span { color: var(--accent-2); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 26px; right: 26px; z-index: 500; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px var(--glow-1); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease; }
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* sparkle particles from the typing-test celebration */
.spark-particle { position: absolute; z-index: 5; font-size: 1.1rem; pointer-events: none; animation: particle-up 1s ease-out forwards; }
@keyframes particle-up { 0% { opacity: 0; transform: translateY(0) scale(.5) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1.4) rotate(140deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav-link { font-size: .82rem; }
  .header-cta { display: none; }
  .course-card, .gallery-card { flex-basis: calc((100% - 22px) / 2); }
}

@media (max-width: 900px) {
  .section { padding: 85px 0; }
  .hero { padding: 70px 0 85px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 600px; width: 100%; margin-inline: auto; }
  .about-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .review-card { flex-basis: calc(100% - 11px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 5% 22px; background: var(--header-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .nav-link::after { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .container { width: 90%; }
  .hero { padding: 55px 0 70px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .float-chip { font-size: .68rem; padding: 8px 10px; }
  .chip-a { right: -4px; }
  .chip-b { left: -4px; }
  .course-card, .gallery-card { flex-basis: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .test-card { padding: 20px; }
  .test-stats { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head.center { align-items: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .cta-inner .btn { width: 100%; }
  .review-controls { flex-direction: column-reverse; }
  .map-wrap { height: 260px; }
  .map-caption { font-size: .8rem; align-items: flex-start; padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .about-frame { min-height: 380px; }
  .about-mini-card { padding: 9px 11px; }
  .to-top { bottom: 16px; right: 16px; }
}

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