/* =========================================================
   VozLingo — Design System
   Warm, friendly, professional. Built mobile-first.
   ========================================================= */

:root {
  /* Brand palette */
  --ink: #1d1633;
  --ink-soft: #4a4266;
  --cream: #fdf7fb;        /* soft lavender-white, ties into the logo */
  --cream-2: #f6ecf6;
  --white: #ffffff;
  --coral: #9d5cc4;        /* brand purple (matches logo) */
  --coral-deep: #823fa8;
  --pink: #e98fc4;
  --amber: #ffb44c;
  --teal: #1fb6a6;
  --teal-deep: #138577;
  --violet: #7b5bd6;
  --violet-soft: #efeaff;
  --line: #ece4f0;

  /* Functional */
  --shadow-sm: 0 2px 8px rgba(29, 22, 51, 0.06);
  --shadow-md: 0 14px 40px rgba(29, 22, 51, 0.10);
  --shadow-lg: 0 30px 70px rgba(29, 22, 51, 0.16);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1180px;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-word { font-family: var(--font-head); line-height: 1.1; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- Helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--white);
  padding: 7px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 18px 0 14px; letter-spacing: -.02em; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--radius-pill);
  cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px rgba(157, 92, 196, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(157, 92, 196, .45); background: var(--coral-deep); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 26px rgba(37, 211, 102, .35); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(37, 211, 102, .45); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 240, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; letter-spacing: -.01em; }
.brand .logo-mark { height: 46px; width: auto; display: block; }
.brand .voz { color: var(--ink); }
.brand .lingo { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--ink-soft); font-size: .98rem; transition: color .2s; }
.nav-links a:hover { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .3s; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.03em; margin: 22px 0 20px; }
.hero h1 .hl { position: relative; color: var(--coral); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 36%;
  background: var(--amber); opacity: .32; border-radius: 8px; z-index: -1;
}
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.hero-trust .stars { color: var(--amber); letter-spacing: 2px; }
.hero-trust .divider { width: 1px; height: 22px; background: var(--line); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative; z-index: 2;
}
.hero-card .hc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-card .hc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.3rem;
}
.hero-card .hc-name { font-weight: 800; font-family: var(--font-head); }
.hero-card .hc-role { font-size: .85rem; color: var(--ink-soft); }
.hc-line { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.hc-line .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hero-float {
  position: absolute; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 13px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; z-index: 3;
}
.hero-float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; flex: none; }
.float-a { top: -22px; right: 18px; }
.float-b { bottom: -20px; left: -18px; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; z-index: 0; }
.blob-1 { width: 360px; height: 360px; background: var(--amber); top: -80px; right: -60px; }
.blob-2 { width: 300px; height: 300px; background: var(--violet); bottom: -100px; left: -40px; opacity: .35; }

/* =========================================================
   Marquee strip
   ========================================================= */
.strip { background: var(--ink); color: var(--cream); padding: 16px 0; overflow: hidden; }
.strip-track { display: flex; gap: 48px; white-space: nowrap; animation: scroll-x 26s linear infinite; width: max-content; }
.strip-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; opacity: .9; display: inline-flex; gap: 48px; align-items: center; }
.strip-track span::after { content: "✦"; color: var(--amber); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =========================================================
   Levels (ladder)
   ========================================================= */
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.level-card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden;
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.level-card .lv-badge { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; width: fit-content; padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.level-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.level-card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 16px; }
.level-card ul li { font-size: .92rem; padding: 5px 0 5px 24px; position: relative; color: var(--ink-soft); }
.level-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* =========================================================
   Feature / Why us
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature .f-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { font-size: .94rem; color: var(--ink-soft); }

/* =========================================================
   Tools section
   ========================================================= */
.tools-section { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.tools-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.tool-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column;
}
.tool-card.span-7 { grid-column: span 7; }
.tool-card.span-5 { grid-column: span 5; }
.tool-card.span-6 { grid-column: span 6; }
.tool-card.span-4 { grid-column: span 4; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tool-head .t-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; flex: none; }
.tool-head h3 { font-size: 1.2rem; }
.tool-card > p.t-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }

/* Flashcard */
.flashcard { perspective: 1200px; margin-bottom: 16px; }
.flashcard-inner { position: relative; width: 100%; min-height: 168px; transition: transform .6s; transform-style: preserve-3d; cursor: pointer; }
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px;
}
.flashcard-front { background: linear-gradient(135deg, var(--violet), #8b7bff); color: #fff; }
.flashcard-back { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; transform: rotateY(180deg); }
.flashcard-face .fc-word { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; }
.flashcard-face .fc-pos { font-size: .82rem; opacity: .85; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.flashcard-face .fc-def { font-size: 1rem; margin-top: 6px; }
.flashcard-face .fc-ex { font-size: .88rem; opacity: .9; font-style: italic; margin-top: 10px; }
.fc-hint { font-size: .78rem; opacity: .7; margin-top: 12px; }
.tool-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.chip-btn {
  border: 1px solid var(--line); background: var(--cream); color: var(--ink);
  padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: .88rem; cursor: pointer;
  font-family: var(--font-head); transition: .2s; display: inline-flex; align-items: center; gap: 7px;
}
.chip-btn:hover { background: var(--ink); color: #fff; }
.chip-btn.active { background: var(--coral); color: #fff; border-color: var(--coral); }

/* Word of the day */
.wod { text-align: center; padding: 8px 0; }
.wod .wod-word { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--ink); letter-spacing: -.02em; }
.wod .wod-phon { color: var(--coral-deep); font-weight: 600; margin-bottom: 4px; }
.wod .wod-pos { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.wod .wod-def { color: var(--ink-soft); margin: 14px auto 0; max-width: 360px; }
.speak-btn { background: var(--amber); color: var(--ink); border: none; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; margin: 16px auto 0; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(255,180,76,.4); transition: transform .2s; }
.speak-btn:hover { transform: scale(1.08); }

/* Dictionary */
.dict-search { display: flex; gap: 10px; margin-bottom: 14px; }
.dict-search input {
  flex: 1; padding: 13px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 16px; outline: none; transition: border .2s;
}
.dict-search input:focus { border-color: var(--coral); }
.dict-result { font-size: .95rem; color: var(--ink-soft); min-height: 60px; }
.dict-result .dr-word { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.dict-result .dr-phon { color: var(--coral-deep); margin-bottom: 8px; }
.dict-result .dr-def { margin-bottom: 6px; }
.dict-result .dr-pos { font-weight: 700; color: var(--violet); }

/* Quiz */
.quiz-q { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 10px; margin-bottom: 14px; }
.quiz-opt {
  text-align: left; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--cream); cursor: pointer; font-family: var(--font-body); font-size: .98rem; transition: .18s; font-weight: 600;
}
.quiz-opt:hover { border-color: var(--coral); }
.quiz-opt.correct { background: #e6f8f4; border-color: var(--teal); color: var(--teal-deep); }
.quiz-opt.wrong { background: #fdeceb; border-color: var(--coral-deep); color: var(--coral-deep); }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.quiz-progress { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.quiz-progress > div { height: 100%; background: linear-gradient(90deg, var(--coral), var(--amber)); transition: width .4s; }
.quiz-result { text-align: center; padding: 10px 0; }
.quiz-result .score { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--coral); }
.quiz-result .level-name { font-size: 1.3rem; font-weight: 800; font-family: var(--font-head); margin-bottom: 6px; }

.tools-cta { text-align: center; margin-top: 44px; }

/* =========================================================
   Languages / Posters (Korean + Chinese)
   ========================================================= */
.poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.poster {
  border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; color: #fff;
  min-height: 340px; display: flex; flex-direction: column; box-shadow: var(--shadow-md);
}
.poster.korean { background: linear-gradient(150deg, #ff7eb3 0%, #ff6b8b 45%, #845ec2 100%); }
.poster.chinese { background: linear-gradient(150deg, #ff5e62 0%, #d62828 55%, #8b0000 100%); }
.poster .p-tag { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.poster h3 { font-size: 2rem; margin: 8px 0 6px; }
.poster .p-sub { opacity: .92; font-size: 1rem; max-width: 320px; }
.poster .p-chars { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.poster .p-char {
  width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px); display: grid; place-items: center; font-size: 1.9rem; font-weight: 800;
  border: 1px solid rgba(255,255,255,.3);
}
.poster .p-char small { display: block; font-size: .55rem; font-weight: 600; opacity: .85; margin-top: -4px; }
.poster .p-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.poster .p-deco { position: absolute; font-size: 12rem; opacity: .12; right: -10px; bottom: -40px; font-family: var(--font-head); font-weight: 800; }
.poster .p-cute { position: absolute; top: 22px; right: 26px; font-size: 2.4rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =========================================================
   Teacher / About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo {
  border-radius: var(--radius-lg); aspect-ratio: 4/5; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--violet), var(--teal)); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.about-photo .ap-initials { font-family: var(--font-head); font-size: 7rem; font-weight: 800; color: rgba(255,255,255,.92); }
.about-photo .ap-logo { width: 72%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
.about-photo .ap-badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px; background: rgba(255,255,255,.95);
  border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md);
}
.about-photo .ap-badge .b-num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--coral); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.about-stats .stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.about-stats .stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--coral); }
.about-stats .stat .lbl { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* =========================================================
   Testimonials
   ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.testi .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.testi p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-head); }
.testi .who .nm { font-weight: 700; font-size: .95rem; }
.testi .who .rl { font-size: .82rem; color: var(--ink-soft); }

/* =========================================================
   Location / Contact
   ========================================================= */
.contact { background: var(--ink); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; color: #fff; }
.contact p.lead { color: rgba(255,248,240,.78); font-size: 1.08rem; margin-bottom: 28px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list li .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; background: rgba(255,255,255,.08); }
.contact-list li .ct strong { display: block; font-family: var(--font-head); }
.contact-list li .ct span { color: rgba(255,248,240,.7); font-size: .92rem; }
.contact-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; font-family: var(--font-head); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 16px; outline: none; transition: border .2s; background: var(--cream);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--coral); }
.contact-card .btn { width: 100%; }
.map-embed { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.2); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #15102a; color: rgba(255,248,240,.72); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; color: rgba(255,248,240,.66); font-size: .94rem; transition: color .2s; }
.footer-grid a:hover { color: var(--coral); }
.footer-brand p { font-size: .94rem; margin-top: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .86rem; }

/* =========================================================
   WhatsApp floating button
   ========================================================= */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 14px 34px rgba(37,211,102,.5);
  cursor: pointer; transition: transform .25s; animation: wa-pop 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; }
.wa-float .wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .88rem;
  padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow-md); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; font-family: var(--font-head);
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.wa-float .wa-ping { position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .5; animation: ping 2s ease-out infinite; z-index: -1; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes wa-pop { 0%,100% { box-shadow: 0 14px 34px rgba(37,211,102,.5); } 50% { box-shadow: 0 14px 44px rgba(37,211,102,.75); } }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Space — compact explainer + sliding gallery
   ========================================================= */
.section.compact { padding: clamp(48px, 6vw, 78px) 0; }
.space-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: center; }
.space-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 14px 0 12px; }
.space-text p { color: var(--ink-soft); font-size: 1rem; }
.facility-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.facility-chips span {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 13px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); font-family: var(--font-head);
}

.photo-frame {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 16 / 11; margin-left: auto;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); cursor: pointer; background: var(--cream-2);
}
.photo-frame .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.photo-frame .slide.active { opacity: 1; }
.photo-frame .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 13px; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  background: linear-gradient(transparent, rgba(29, 22, 51, .82));
}
.photo-frame .cap::before { content: "📍 "; }
.frame-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.frame-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer;
  padding: 0; transition: width .25s, background .25s;
}
.frame-dots button.active { background: var(--coral); width: 22px; border-radius: 99px; }
@media (max-width: 880px) {
  .space-grid { grid-template-columns: 1fr; gap: 24px; }
  .photo-frame { margin: 0 auto; max-width: 380px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 15, 35, .93); z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; background: none; border: none; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .14); color: #fff; border: none; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background .2s; }
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lightbox .lb-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } .lightbox .lb-nav { width: 44px; height: 44px; } }

/* =========================================================
   Language toggle (ES / EN)
   ========================================================= */
.lang-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; box-shadow: var(--shadow-sm); }
.lang-toggle button {
  border: none; background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 800;
  font-size: .82rem; padding: 6px 13px; border-radius: var(--radius-pill); color: var(--ink-soft); transition: .2s; line-height: 1;
}
.lang-toggle button.active { background: var(--coral); color: #fff; }

/* =========================================================
   Korean & Chinese interactive lab
   ========================================================= */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.lab-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 26px; }
.lab-card .tool-head h3 { font-size: 1.2rem; }
.lab-flag { font-size: 1.5rem; }
.soundboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 20px; }
.say-tile {
  border: 1.5px solid var(--line); background: var(--cream); border-radius: 14px; padding: 12px 6px; cursor: pointer;
  text-align: center; transition: .18s; font-family: var(--font-head);
}
.say-tile:hover { border-color: var(--coral); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.say-tile .st-char { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.say-tile .st-rom { font-size: .72rem; color: var(--coral-deep); font-weight: 700; }
.say-tile .st-mean { font-size: .68rem; color: var(--ink-soft); }
.lab-sub-h { font-family: var(--font-head); font-weight: 800; font-size: .95rem; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.lab-sub-h::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--coral); }
.mini-exam { border-top: 1px dashed var(--line); padding-top: 18px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) { .lab-grid { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .levels-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .tool-card.span-7, .tool-card.span-5, .tool-card.span-6, .tool-card.span-4 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); padding: 20px 22px; gap: 14px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { width: 100%; padding: 8px 0; }
}
@media (max-width: 620px) {
  .levels-grid, .testi-grid, .feature-grid, .poster-grid, .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .wa-float { bottom: 18px; right: 18px; }
}
