/* ============================================================
   Brave Kind Heart — landing page styles
   ============================================================ */
:root {
  --orange: #ff6b3d;
  --blue: #2bb3e3;
  --green: #5ec26a;
  --yellow: #ffce3a;
  --pink: #ff7eb6;
  --ink: #1b2330;
  --muted: #5b6675;
  --bg: #fbf7f0;
  --bg-2: #fff;
  --card: #ffffff;
  --line: #ece4d8;
  --shadow: 0 10px 30px rgba(27, 35, 48, 0.10);
  --radius: 18px;
  --maxw: 1180px;
  --font-head: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; font-weight: 700; }
.section { padding: 72px 20px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 13px; color: var(--orange); }
.lead { font-size: 18px; color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-weight: 700; font-family: var(--font-body); font-size: 16px; padding: 13px 24px; border-radius: 999px; transition: transform .12s ease, box-shadow .12s ease; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--yellow), var(--orange)); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 107, 61, 0.35); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.badge-soon { font-size: 10px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 6px; letter-spacing: .5px; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.nav-logo { height: 44px; width: auto; }
.nav-rip { height: 30px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; font-size: 26px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #fff6e6, transparent), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(26px, 3vw, 36px); white-space: nowrap; }
.hero h1 .c-o { color: var(--orange); } .hero h1 .c-b { color: var(--blue); } .hero h1 .c-g { color: var(--green); }
.hero p { font-size: 19px; color: var(--muted); max-width: 30em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Video embed */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #11202e; border: 1px solid var(--line); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #11202e; }

/* Custom click-to-play overlay */
.video-cta { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-family: var(--font-body); }
.video-cta-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,34,0.15), rgba(15,22,34,0.55)); transition: background .2s ease; }
.video-cta > *:not(.video-cta-shade) { position: relative; z-index: 1; }
.video-play-btn { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(90deg, var(--yellow), var(--orange)); box-shadow: 0 12px 30px rgba(0,0,0,0.4); transition: transform .15s ease, box-shadow .15s ease; }
.video-play-ico { width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent #1b2330; margin-left: 5px; }
.video-cta-text { text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.video-cta-text strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); }
.video-cta-text span { font-size: 13px; opacity: .9; }
.video-cta:hover .video-play-btn { transform: scale(1.08); box-shadow: 0 16px 36px rgba(255,107,61,0.5); }
.video-cta:hover .video-cta-shade { background: linear-gradient(180deg, rgba(15,22,34,0.05), rgba(15,22,34,0.45)); }
.video-cta.is-hidden { display: none; }

/* ---------- Virtual World ---------- */
.world-wrap { max-width: 1000px; margin: 0 auto; }
.world-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0f1622; border: 1px solid var(--line); }
.world-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.world-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; cursor: pointer; background-size: cover; background-position: center; color: #fff; text-align: center; }
.world-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,34,0.25), rgba(15,22,34,0.7)); }
.world-poster > * { position: relative; z-index: 1; }
.world-poster h3 { font-size: clamp(20px, 3vw, 30px); margin: 0; }
.world-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.vr-note { max-width: 46em; margin: 14px auto 0; font-size: 14px; line-height: 1.6; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }

/* Embed box */
.embed-box { max-width: 1000px; margin: 26px auto 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.embed-box summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); }
.embed-row { display: flex; gap: 10px; margin-top: 12px; }
.embed-code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #0f1622; color: #c8e6ff; border: 0; border-radius: 10px; padding: 12px; resize: vertical; min-height: 96px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.g-item a { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g-item a:hover img { transform: scale(1.05); }
.g-item figcaption { padding: 11px 15px 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); font-weight: 600; }

/* ---------- Characters ---------- */
.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.char-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.char-img { aspect-ratio: 1 / 1; background: #0f1622; display: grid; place-items: center; }
.char-img img { width: 100%; height: 100%; object-fit: cover; }
.char-body { padding: 16px 18px 20px; }
.char-body h3 { margin: 0 0 4px; font-size: 21px; }
.char-role { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.char-body p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.role-hero { color: var(--green); } .role-guide { color: var(--blue); } .role-guardian { color: var(--orange); } .role-villain { color: var(--pink); } .role-main { color: #d99100; }

/* ---------- Nav external links ---------- */
.nav-links a.ext { color: var(--muted); }
.nav-links a.ext:hover { color: var(--orange); }
.nav-links a.ext::after { content: "↗"; font-size: 11px; margin-left: 3px; opacity: .7; }
.nav-rip-link { display: inline-flex; align-items: center; }
.nav-rip-link:hover { opacity: .82; }

/* ---------- Story intro (lede) ---------- */
.story-intro { max-width: 40em; margin: 0 auto 44px; text-align: center; font-family: var(--font-head); font-weight: 500; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--ink); position: relative; padding-bottom: 38px; }
.story-intro::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), var(--orange)); }

/* ---------- Story prose ---------- */
.story-prose { max-width: 44em; margin: 0 auto; font-size: 17.5px; line-height: 1.75; color: #2a3340; }
.story-prose p { margin: 0 0 1.15em; }
.story-prose p:first-of-type::first-letter { font-family: var(--font-head); font-weight: 700; font-size: 3.4em; line-height: .82; float: left; margin: 6px 10px 0 0; color: var(--orange); }
.story-prose .story-end { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--orange); margin-top: 1.4em; }

/* ---------- Inside Brave Kind Heart (world) ---------- */
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.world-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.world-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 14px; box-shadow: var(--shadow); }
.world-card h3 { margin: 6px 0 4px; font-size: 21px; }
.world-card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.world-card .btn { align-self: flex-start; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15,22,34,0.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox .close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 34px; cursor: pointer; background: none; border: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfd6e0; padding: 52px 20px 44px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.footer .logos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer .logos a { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 8px 22px rgba(0,0,0,0.28); transition: transform .12s ease; }
.footer .logos a:hover { transform: translateY(-2px); }
.footer img { height: 42px; width: auto; display: block; }
.footer-divider { width: 100%; max-width: 520px; height: 1px; background: rgba(255,255,255,0.12); }
.footer small { color: #9fb0c4; font-size: 13.5px; line-height: 1.95; }
.footer small a { color: #d7dee8; text-decoration: none; border-bottom: 1px solid rgba(215,222,232,0.35); padding-bottom: 1px; }
.footer small a:hover { color: #fff; border-bottom-color: #fff; }

/* alternating section bg */
.bg-soft { background: var(--bg-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .world-grid { grid-template-columns: 1fr; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px; display: none; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .story-prose { font-size: 16.5px; }
}
@media (max-width: 540px) {
  .char-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 52px 16px; }
  .story-prose p:first-of-type::first-letter { font-size: 2.8em; }
  .hero h1 { white-space: normal; }
}
