/* ═══════════════════════════════════════════════════════════
   MaknaeVerse — Style Utama (v1.0.0)
   Token warna & aturan desain: lihat docs/DESIGN.md
   ═══════════════════════════════════════════════════════════ */

/* ---------- Token ---------- */
:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --pink: #EC4899;
  --orange: #F97316;
  --teal: #14B8A6;
  --yellow: #FACC15;
  --bg: #FDF6F0;
  --surface: #FFFFFF;
  --dark-bg: #171038;
  --dark-bg-2: #221A4D;
  --text: #221B3A;
  --text-muted: #6B5B8A;
  --grad: linear-gradient(135deg, #7C3AED, #EC4899, #F97316);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(34, 27, 58, 0.08);
  --shadow-lg: 0 18px 44px rgba(124, 58, 237, 0.18);
  --font-head: "Fredoka", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset / Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 600; margin-bottom: 10px; }
.section-sub { color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(236, 72, 153, 0.45); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-block { width: 100%; padding: 14px; font-size: 1rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(4%, calc((100vw - 1120px) / 2));
  background: rgba(253, 246, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 27, 58, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--text); }
.brand-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text); font-weight: 700; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 3px; border-radius: 3px;
  background: var(--grad); transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, #3B2A7A 0%, var(--dark-bg) 55%);
  color: #fff;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 600; margin-bottom: 18px; }
.hero-sub { color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { font-size: 0.92rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); }

/* blob dekoratif */
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; pointer-events: none; }
.blob-1 { width: 380px; height: 380px; background: #7C3AED; top: -120px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: #EC4899; bottom: -140px; left: -100px; }

/* doodle melayang */
.hero-doodle { position: absolute; font-size: 2rem; opacity: 0.9; pointer-events: none; animation: float 5s ease-in-out infinite; }
.doodle-pencil { top: 22%; left: 6%; animation-delay: 0.3s; }
.doodle-crayon { bottom: 18%; right: 5%; animation-delay: 1.1s; font-size: 2.4rem; }
.doodle-star { top: 14%; right: 30%; color: var(--yellow); font-size: 1.6rem; animation-delay: 1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(5deg); } }

/* ---------- Mockup ponsel (hero) ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(260px, 78vw);
  aspect-ratio: 9/17;
  background: #0F0A2E;
  border: 6px solid #2E2358;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; background: #0F0A2E; border-radius: 999px; z-index: 3;
}
.phone-screen {
  position: absolute; inset: 0; border-radius: 34px; overflow: hidden;
  background: #EFF6FF;
}
.hero-scene { width: 100%; height: 100%; object-fit: cover; }

/* garis scan AR */
.scan-line {
  position: absolute; left: 0; right: 0; height: 46px; top: -46px;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.28), rgba(124, 58, 237, 0.55), rgba(124, 58, 237, 0.28), transparent);
  border-top: 2px solid var(--primary);
  animation: scan 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan { 0% { top: -50px; } 55% { top: calc(100% - 10px); } 100% { top: calc(100% - 10px); } }

.spark { position: absolute; color: var(--yellow); font-weight: 700; animation: sparkle 1.6s ease-in-out infinite; pointer-events: none; }
.hero-sp1 { top: 20%; left: 12%; font-size: 1.3rem; }
.hero-sp2 { bottom: 26%; right: 10%; font-size: 1rem; animation-delay: 0.7s; }
@keyframes sparkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.25); } }

.hero-ui {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 10, 46, 0.85); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* kartu info melayang di samping ponsel */
.hero-float-card {
  position: absolute;
  background: #fff; color: var(--text);
  font-weight: 800; font-size: 0.85rem;
  padding: 10px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: float 5.5s ease-in-out infinite;
}
.float-card-1 { top: 8%; left: -6%; transform: rotate(-6deg); }
.float-card-2 { bottom: 12%; right: -4%; transform: rotate(5deg); animation-delay: 1.4s; }

/* ---------- Cara Kerja ---------- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 12px; }
.step-card {
  flex: 1; max-width: 300px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-icon {
  width: 74px; height: 74px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; border-radius: 22px;
}
.step-1 { background: #FEF3C7; }
.step-2 { background: #FCE7F3; }
.step-3 { background: #EDE9FE; }
.step-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step-card p { color: var(--text-muted); font-size: 0.94rem; }
.step-arrow { align-self: center; font-size: 1.8rem; color: var(--primary); font-weight: 700; }

/* ---------- Galeri ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-tab {
  background: var(--surface);
  border: 2px solid rgba(124, 58, 237, 0.15);
  color: var(--text);
  font-weight: 800; font-size: 0.9rem;
  padding: 9px 20px; border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--primary); }
.filter-tab.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.gallery-card {
  --c1: var(--primary); --c2: var(--pink); --c3: var(--text); --c4: var(--teal); --c5: var(--orange); --c6: var(--text);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.gallery-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }

.card-art { position: relative; background: #F7F2FF; padding: 14px; }
.art-svg { width: 100%; height: auto; color: #3B2F5C; transition: transform 0.4s; }
.gallery-card:hover .art-svg { transform: scale(1.04); }

/* bagian yang bisa diwarnai — transparan, "diwarnai AR" saat hover */
.art-svg .c1 { fill: transparent; transition: fill 0.55s ease; }
.art-svg .c2 { fill: transparent; transition: fill 0.55s ease 0.08s; }
.art-svg .c3 { fill: transparent; transition: fill 0.55s ease 0.16s; }
.art-svg .c4 { fill: transparent; transition: fill 0.55s ease 0.24s; }
.art-svg .c5 { fill: transparent; transition: fill 0.55s ease 0.32s; }
.art-svg .c6 { fill: transparent; transition: fill 0.55s ease 0.4s; }
.gallery-card:hover .c1 { fill: var(--c1); }
.gallery-card:hover .c2 { fill: var(--c2); }
.gallery-card:hover .c3 { fill: var(--c3); }
.gallery-card:hover .c4 { fill: var(--c4); }
.gallery-card:hover .c5 { fill: var(--c5); }
.gallery-card:hover .c6 { fill: var(--c6); }

/* efek scan saat "AR" */
.scan-beam {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(124, 58, 237, 0.16) 50%, transparent 70%);
  background-size: 100% 240%;
  background-position: 0 130%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-card:hover .scan-beam { opacity: 1; animation: beam 1.4s ease-in-out infinite; }
@keyframes beam { 0% { background-position: 0 130%; } 100% { background-position: 0 -30%; } }

.card-art .spark { opacity: 0; transition: opacity 0.3s; }
.gallery-card:hover .spark { opacity: 1; }
.sp1 { top: 12%; left: 14%; }
.sp2 { top: 55%; right: 12%; animation-delay: 0.4s; }
.sp3 { bottom: 14%; left: 22%; animation-delay: 0.8s; }

.ar-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.7rem;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.08em;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-card:hover .ar-tag { opacity: 1; transform: scale(1); }

.card-body { padding: 16px 18px 18px; }
.card-meta { display: flex; gap: 8px; margin-bottom: 8px; }
.badge {
  font-size: 0.68rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  text-transform: capitalize;
}
.badge-cat { background: #EDE9FE; color: var(--primary-dark); }
.badge-easy { background: #DCFCE7; color: #15803D; }
.badge-mid { background: #FEF3C7; color: #B45309; }
.badge-hard { background: #FEE2E2; color: #B91C1C; }
.card-title { font-size: 1.05rem; font-weight: 600; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 2px dashed rgba(124, 58, 237, 0.25);
  border-radius: var(--radius);
  padding: 44px 20px;
}

/* ---------- Tentang ---------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 20px; }
.about-list li { font-weight: 700; margin-bottom: 10px; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.about-quote {
  background: var(--dark-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.5;
  position: relative;
}
.about-quote span { display: block; margin-top: 12px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- Testimoni ---------- */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.testi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testi-stars { color: var(--yellow); letter-spacing: 3px; font-size: 1.05rem; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.testi-card blockquote { color: var(--text); font-size: 0.96rem; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--grad); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.testi-who { display: flex; flex-direction: column; line-height: 1.3; }
.testi-who strong { font-size: 0.92rem; }
.testi-who em { font-style: normal; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Kontak ---------- */
.contact-section { background: var(--surface); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info p { color: var(--text-muted); margin-bottom: 20px; }
.contact-links { list-style: none; margin-bottom: 22px; }
.contact-links li { margin-bottom: 12px; font-weight: 700; }
.contact-links a { color: var(--text); border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.contact-links a:hover { border-color: var(--primary); color: var(--primary); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  background: #F5F0FF;
  color: var(--text);
  font-weight: 800; font-size: 0.88rem;
  padding: 10px 18px; border-radius: 999px;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }

.contact-form {
  background: var(--bg);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 20px; font-size: 1.25rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 0.85rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid rgba(124, 58, 237, 0.14);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-bg); color: rgba(255, 255, 255, 0.8); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .brand-text { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 300px; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4 { color: #fff; margin-bottom: 6px; font-size: 1rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Bottom Nav (mobile & tablet) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(34, 27, 58, 0.08);
  justify-content: space-around;
  padding: 6px 4px calc(4px + env(safe-area-inset-bottom, 4px));
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  min-width: 56px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  background: var(--grad);
  border-radius: 0 0 3px 3px;
}
.bn-icon { font-size: 1.3rem; line-height: 1; }

/* ---------- Drawer mobile ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 10, 46, 0.5);
  z-index: 960;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 970;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px 22px calc(18px + env(safe-area-inset-bottom, 18px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -14px 40px rgba(15, 10, 46, 0.2);
}
.mobile-menu.open { transform: translateY(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.drawer-close {
  background: #F3F0FA; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 0.95rem; cursor: pointer;
  color: var(--text); transition: background 0.2s;
}
.drawer-close:hover { background: #E8E2F8; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { padding: 13px 6px; font-weight: 700; color: var(--text); border-bottom: 1px solid rgba(34, 27, 58, 0.06); font-size: 0.98rem; }
.drawer-links a:last-child { border-bottom: none; }
.drawer-footer { margin-top: 16px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 96px; left: 50%;
  transform: translate(-50%, 24px);
  z-index: 990;
  background: var(--dark-bg); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .navbar { display: none; }
  .bottom-nav { display: flex; }
  main { padding-bottom: 72px; }
  .hero { padding: 120px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-points { justify-content: center; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .bottom-nav-item { font-size: 0.7rem; padding: 8px 16px; }
  .bottom-nav-item .bn-icon { font-size: 1.4rem; }
}
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-points { flex-direction: column; align-items: center; gap: 8px; }
  .float-card-1 { left: -2%; }
  .float-card-2 { right: -2%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .toast { bottom: 88px; }
}

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