/* =========================================================
   Cendekia Nusantara — Base design system
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --ink: #0d1a38;
  --ink-soft: #33415f;
  --muted: #6b7794;
  --line: #e3e8f3;
  --brand: #2d4cf2;
  --brand-strong: #1f38cf;
  --brand-2: #6c5cff;
  --brand-soft: #eaedff;
  --mint: #0e9e86;
  --mint-soft: #e2f8f3;
  --amber: #b97308;
  --amber-soft: #fff2da;
  --coral: #d94a46;
  --coral-soft: #ffebe9;
  --violet: #6f46cf;
  --violet-soft: #f1ebff;
  --navy: #0a1533;
  --navy-2: #101f4a;
  --shadow-sm: 0 1px 2px rgba(13, 26, 56, 0.04), 0 8px 24px -14px rgba(13, 26, 56, 0.16);
  --shadow-md: 0 30px 70px -30px rgba(13, 26, 56, 0.34);
  --shadow-lg: 0 50px 100px -40px rgba(9, 20, 50, 0.45);
  --ring: 0 0 0 4px rgba(45, 76, 242, 0.16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --header-h: 74px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #070e22;
  --bg-soft: #0b142d;
  --surface: #0e1830;
  --surface-2: #14203d;
  --ink: #f1f5ff;
  --ink-soft: #c7d1e8;
  --muted: #94a1c1;
  --line: #223055;
  --brand: #7d93ff;
  --brand-strong: #99aaff;
  --brand-2: #a08cff;
  --brand-soft: #1a2450;
  --mint: #2ed5b5;
  --mint-soft: #0e2f2c;
  --amber: #ffc35c;
  --amber-soft: #33260d;
  --coral: #ff7d78;
  --coral-soft: #361917;
  --violet: #b394ff;
  --violet-soft: #241b40;
  --navy: #050b1a;
  --navy-2: #0b142d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 34px 80px -34px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 4px rgba(125, 147, 255, 0.22);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  word-spacing: 0.04em;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

/* Plus Jakarta Sans has a narrow space glyph; open it up on tight headings */
h1,
h2,
h3 {
  word-spacing: 0.08em;
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: #a9bcff;
}

.eyebrow--plain::before {
  display: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-head__copy {
  max-width: 640px;
}

.section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.8rem, 1.25rem + 1.7vw, 2.65rem);
}

.section-head p {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 56ch;
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  padding-bottom: 0.2rem;
  border-bottom: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent);
  transition: gap 0.25s var(--ease), border-color 0.25s;
}

.section-head__link:hover {
  gap: 0.7rem;
  border-color: var(--brand);
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}

.ico--sm {
  width: 16px;
  height: 16px;
}

.ico--lg {
  width: 24px;
  height: 24px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s,
    box-shadow 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .ico {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(45, 76, 242, 0.7);
}

.btn-primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 18px 34px -14px rgba(45, 76, 242, 0.75);
}

[data-theme="dark"] .btn-primary {
  color: #081127;
  background: var(--brand);
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--brand-strong);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--surface-2);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-soft:hover {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-white {
  background: #fff;
  color: #16224b;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.55);
}

.btn-white:hover {
  background: #f1f4ff;
}

.btn-sm {
  min-height: 38px;
  padding: 0.52rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.95rem 1.65rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -34px rgba(13, 26, 56, 0.5);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 20px -10px rgba(45, 76, 242, 0.65);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.brand-text small {
  margin-top: 0.32rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}

.nav-link {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  white-space: nowrap;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
}

.theme-toggle .ico-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .ico-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .ico-moon {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.4rem, 5vw, 4.5rem) clamp(2rem, 3vw, 3rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 760px;
  background: radial-gradient(52% 56% at 18% 22%, rgba(45, 76, 242, 0.12), transparent 72%),
    radial-gradient(42% 50% at 88% 8%, rgba(14, 158, 134, 0.12), transparent 72%),
    radial-gradient(30% 40% at 60% 0%, rgba(108, 92, 255, 0.08), transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(52% 56% at 18% 22%, rgba(80, 105, 255, 0.16), transparent 72%),
    radial-gradient(42% 50% at 88% 8%, rgba(46, 213, 181, 0.1), transparent 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.38rem 0.9rem 0.38rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero h1 {
  text-wrap: balance;
  margin-top: 1.35rem;
  font-size: clamp(2.35rem, 1.25rem + 3.6vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  font-weight: 800;
}

.hero h1 em {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: -2%;
  bottom: 0.02em;
  height: 0.12em;
  border-radius: 999px;
  background: var(--amber-soft);
  z-index: -1;
}

.hero-lead {
  margin-top: 1.3rem;
  max-width: 48ch;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img,
.avatar-stack span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg);
  margin-left: -10px;
  background: var(--surface-2);
}

.avatar-stack > :first-child {
  margin-left: 0;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
}

.hero-proof p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-proof strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.hero-media {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -4% -3% 10%;
  border-radius: 36px;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 34%, transparent) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.55;
  z-index: -1;
}

.hero-photo {
  position: relative;
  width: 100%;
  height: clamp(420px, 56vh, 540px);
  border-radius: 32px;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 15, 38, 0) 48%, rgba(7, 15, 38, 0.66) 100%);
}

.hero-photo__caption {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-photo__caption span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-photo__caption strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.hero-photo__tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -22px rgba(13, 26, 56, 0.4);
  backdrop-filter: blur(12px);
  animation: floaty 7s ease-in-out infinite;
}

.float-card--score {
  top: 5%;
  left: -5%;
  min-width: 190px;
}

.float-card--live {
  right: -4%;
  bottom: 8%;
  min-width: 218px;
  animation-delay: -3s;
}

.float-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint);
}

.float-icon--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.float-card small {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.float-card strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.float-card strong b {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.float-card .trend {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 0.63rem;
  font-weight: 800;
}

.float-card .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 18%, transparent);
  animation: pulse 1.8s infinite;
}

/* ---------- Stats strip ---------- */
.stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 0.35rem 1.35rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0.75rem;
}

.stat strong {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat strong span {
  font-size: 0.6em;
  color: var(--brand);
  font-weight: 800;
}

.stat p {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--navy);
  color: #dbe3f7;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -280px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 119, 255, 0.3), transparent 68%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.25rem) 2.5rem;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-text small {
  color: #8d9bc0;
}

.footer-brand > p {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: 0.87rem;
  line-height: 1.7;
  color: #a5b2d2;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c2cde8;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa0c7;
  margin-bottom: 1.1rem;
}

.footer-col li + li {
  margin-top: 0.6rem;
}

.footer-col a {
  font-size: 0.87rem;
  color: #c2cde8;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-news p {
  font-size: 0.85rem;
  color: #a5b2d2;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.3rem 0.3rem 0.3rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s;
}

.newsletter-form:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #8d9bc0;
}

.newsletter-form button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.newsletter-form button:hover {
  background: var(--brand-2);
  transform: scale(1.05);
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: #8d9bc0;
}

.footer-bottom .footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.footer-bottom .footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-bottom .ico {
  width: 14px;
  height: 14px;
}

/* ---------- Badges & tones ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
}

.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge--mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.badge--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge--coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.badge--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.tone-blue {
  --tone: #2d4cf2;
  --tone-soft: #eaedff;
}

.tone-mint {
  --tone: #0e9e86;
  --tone-soft: #e2f8f3;
}

.tone-amber {
  --tone: #b97308;
  --tone-soft: #fff2da;
}

.tone-violet {
  --tone: #6f46cf;
  --tone-soft: #f1ebff;
}

.tone-coral {
  --tone: #d94a46;
  --tone-soft: #ffebe9;
}

[data-theme="dark"] .tone-blue {
  --tone: #8ea2ff;
  --tone-soft: #1b2550;
}

[data-theme="dark"] .tone-mint {
  --tone: #43dcc0;
  --tone-soft: #0e2f2c;
}

[data-theme="dark"] .tone-amber {
  --tone: #ffc35c;
  --tone-soft: #33260d;
}

[data-theme="dark"] .tone-violet {
  --tone: #bda2ff;
  --tone-soft: #241b40;
}

[data-theme="dark"] .tone-coral {
  --tone: #ff8f8b;
  --tone-soft: #361917;
}

.subject-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--tone-soft, var(--brand-soft));
  color: var(--tone, var(--brand));
}

.subject-icon .ico {
  width: 22px;
  height: 22px;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive: header & hero ---------- */
@media (max-width: 1060px) {
  .nav {
    gap: 0;
  }

  .nav-link {
    padding-inline: 0.7rem;
    font-size: 0.85rem;
  }

  .header-inner {
    gap: 1rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .float-card--score {
    left: -2%;
  }

  .float-card--live {
    right: -1%;
  }
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    z-index: 79;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.99);
    transform-origin: top center;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .nav-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-media {
    min-height: 0;
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .hero-photo {
    height: clamp(360px, 62vw, 480px);
    transform: rotate(0.8deg);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: calc(100% - 2.2rem);
  }

  .brand-text small {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1.1rem;
  }

  .stat {
    padding: 0.8rem 1rem;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0.6rem;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero-proof {
    flex-wrap: wrap;
  }

  .float-card--score {
    top: 4%;
    left: -0.5rem;
    min-width: 168px;
    padding: 0.65rem 0.8rem;
  }

  .float-card--live {
    right: -0.5rem;
    bottom: 5%;
    min-width: 190px;
    padding: 0.65rem 0.8rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.4rem;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.6vw, 2.75rem);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-photo {
    height: 350px;
    border-width: 4px;
    border-radius: 26px;
  }

  .hero-photo__caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .hero-photo__tag {
    display: none;
  }

  .float-card--live {
    display: none;
  }

  .float-card--score {
    top: -1.2rem;
  }
}

/* user dropdown (profil + keluar) */
.user-menu { position: relative; }
.user-menu__btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.user-menu__btn svg { width: 1em; height: 1em; }
.user-menu__btn svg:last-child { transition: transform 0.2s; }
.user-menu.is-open .user-menu__btn svg:last-child { transform: rotate(180deg); }
.user-menu__list {
  display: none; position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 60;
  min-width: 10rem; padding: 0.35rem; background: var(--surface, #fff);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.user-menu.is-open .user-menu__list { display: block; }
.user-menu__list a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: inherit; text-decoration: none;
}
.user-menu__list a:hover { background: var(--surface-2, rgba(128, 128, 128, 0.12)); }
.user-menu__list svg { width: 1.05em; height: 1.05em; }

/* modal profil siswa */
.prof-head { display: flex; align-items: center; gap: 1rem; padding-right: 4rem; }
.prof-avatar { flex: none; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.prof-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.prof-card { padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.prof-card .eyebrow { color: var(--tone); margin-bottom: 0.6rem; }
.prof-ico { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 0.65rem; background: var(--tone-soft); color: var(--tone); }
.prof-item { display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding: 0.5rem 0; }
.prof-item small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.prof-item b { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.prof-item a:hover b { color: var(--brand); }
.prof-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; }
.prof-bottom { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; margin-top: 1rem; }
.prof-list { list-style: none; margin: 0; padding: 0; }
.prof-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.prof-note { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.prof-note b { color: var(--ink-soft); }
.prof-note svg { flex: none; margin-top: 0.15rem; color: var(--amber); }
@media (max-width: 820px) { .prof-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prof-bottom { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .prof-fields, .prof-docs { grid-template-columns: 1fr; } }

/* atribut hidden harus selalu menang atas display: flex/grid milik komponen */
[hidden] { display: none !important; }

/* menu berhak-akses tersembunyi sampai app.js memastikan boleh tampil (mencegah kedipan) */
[data-need]:not(.need-ok) { display: none !important; }

/* Sembunyikan halaman sampai app.js selesai mengganti semua teks/logo bawaan HTML dengan data Pengaturan (hindari kilatan "Cendekia" lama). */
html.js-pending body{visibility:hidden}
