/* ==========================================================================
   Intelli Living — Flagship layer (v2)
   assets/css/flagship.css

   Loaded after styles.css on every page. Adds the studio-grade surface:
   glass & gradient-border systems, editorial type scale, cinematic scroll,
   the WebGL prism stage, the language switch and the film lightbox.
   Nothing here removes an existing behaviour — it only refines it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Flagship tokens
   -------------------------------------------------------------------------- */
:root {
  --fl-glass: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 46%, rgba(255, 255, 255, 0.045));
  --fl-glass-line: rgba(180, 214, 255, 0.16);
  --fl-line-soft: rgba(160, 190, 230, 0.1);
  --fl-lume-a: #7ef0ff;
  --fl-lume-b: #4f8bff;
  --fl-lume-c: #b79bff;
  --fl-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
  --fl-shadow-sm: 0 18px 48px rgba(0, 0, 0, 0.44);
  --fl-serif: 'Instrument Serif', 'Times New Roman', serif;
  --fl-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --fl-nav-h: 66px;
}

/* --------------------------------------------------------------------------
   2. Editorial refinements (type, rhythm, lettering)
   -------------------------------------------------------------------------- */
body {
  letter-spacing: -0.012em;
  text-rendering: optimizeLegibility;
  /* Korean sets lines by word, not by character */
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, li, dd, dt, figcaption, blockquote { word-break: keep-all; }

.hero h1,
.page-title,
.section-title,
.display {
  letter-spacing: -0.042em;
}

.page-title {
  font-size: clamp(36px, 5.8vw, 76px);
  line-height: 0.98;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.lead {
  color: #b9c4d2;
  line-height: 1.82;
  text-wrap: pretty;
}

/* Serif editorial accent — used for latin words, numerals and quiet labels */
.fl-serif {
  font-family: var(--fl-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.fl-serif em,
.section-title em,
.page-title em {
  font-style: italic;
}

/* A thin luminous rule that sits under section labels */
.sec-label .bar {
  background: linear-gradient(90deg, var(--fl-lume-a), rgba(79, 139, 255, 0.35), transparent);
  box-shadow: 0 0 14px rgba(126, 240, 255, 0.4);
}

.sec-label .idx {
  letter-spacing: 0.28em;
}

/* Optical size compensation for the big Korean headlines */
@media (min-width: 1081px) {
  .hero h1 { letter-spacing: -0.05em; }
}

/* --------------------------------------------------------------------------
   3. The prism stage — WebGL layer (falls back silently)
   -------------------------------------------------------------------------- */
.fl-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s var(--fl-ease);
}
.fl-stage.is-live { opacity: 1; }
.fl-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Over the studio film we only add light, never hide the image */
.hero .fl-stage { mix-blend-mode: screen; opacity: 0; }
.hero .fl-stage.is-live { opacity: 0.72; }
/* Page heroes sit on flat ink, so the stage becomes the image */
.page-hero .fl-stage { mix-blend-mode: normal; }
.page-hero .fl-stage.is-live { opacity: 0.62; }

.page-hero { position: relative; isolation: isolate; }
/* keep the copy readable over the prism */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.94) 0%, rgba(3, 5, 10, 0.78) 34%, rgba(3, 5, 10, 0.2) 72%, rgba(3, 5, 10, 0.05) 100%),
    linear-gradient(180deg, rgba(3, 5, 10, 0.6) 0%, transparent 34%, rgba(3, 5, 10, 0.9) 100%);
}
.page-hero__aside > div {
  padding: 12px 16px;
  border: 1px solid rgba(160, 200, 240, 0.12);
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.page-hero__aside { gap: 12px; }
.page-hero__inner { position: relative; z-index: 1; }

/* A soft prismatic bloom that anchors the hero copy */
.hero__glow,
.page-hero__glow {
  position: absolute;
  z-index: -1;
  width: 62vw;
  height: 62vw;
  max-width: 880px;
  max-height: 880px;
  right: -12vw;
  top: -18vw;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 40%, rgba(126, 240, 255, 0.2), transparent 58%),
    radial-gradient(circle at 66% 62%, rgba(79, 139, 255, 0.24), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(183, 155, 255, 0.16), transparent 64%);
  filter: blur(18px);
  animation: flDrift 22s ease-in-out infinite alternate;
}
@keyframes flDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate3d(-3.4vw, 2.6vw, 0) scale(1.08); opacity: 1; }
}

/* --------------------------------------------------------------------------
   4. Glass + gradient-border system
   -------------------------------------------------------------------------- */
.card,
.contact-card,
.doc-box,
.cta-band,
.step,
.stat,
.quote,
.media-frame,
.mock {
  --mx: 50%;
  --my: 0%;
}

.card {
  position: relative;
  border: 1px solid var(--fl-glass-line);
  background:
    radial-gradient(420px 260px at var(--mx) var(--my), rgba(126, 240, 255, 0.1), transparent 66%),
    var(--fl-glass);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.38);
  transition: transform 0.55s var(--fl-ease), border-color 0.4s ease, box-shadow 0.55s var(--fl-ease),
    background 0.5s ease;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(126, 240, 255, 0.5), rgba(183, 155, 255, 0.22) 38%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 240, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 34px 80px rgba(0, 0, 0, 0.52);
}
.card:hover::before { opacity: 1; }

.card__idx {
  letter-spacing: 0.22em;
  color: rgba(126, 240, 255, 0.75);
}
.card__title { letter-spacing: -0.03em; }

.step {
  position: relative;
  border: 1px solid var(--fl-line-soft);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  border-radius: var(--radius-m);
  transition: border-color 0.4s ease, transform 0.5s var(--fl-ease), background 0.4s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 240, 255, 0.28);
  background: linear-gradient(165deg, rgba(126, 240, 255, 0.07), rgba(255, 255, 255, 0.012));
}

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fl-glass-line);
  background:
    radial-gradient(720px 320px at 82% -20%, rgba(79, 139, 255, 0.24), transparent 62%),
    radial-gradient(520px 280px at 6% 118%, rgba(126, 240, 255, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: var(--fl-shadow);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160, 200, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 10%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 10%, #000, transparent 72%);
  opacity: 0.7;
}

/* Buttons: a brighter primary with a light sweep */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 24%, rgba(255, 255, 255, 0.42) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--fl-ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn:hover::after { transform: translateX(120%); }

/* --------------------------------------------------------------------------
   5. Cinematic scroll
   -------------------------------------------------------------------------- */
[data-cine] {
  opacity: 1;
}

.fl-cine-wait {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1.05s var(--fl-ease), transform 1.15s var(--fl-ease),
    clip-path 1.2s var(--fl-ease);
}
.fl-cine-wait.is-in {
  opacity: 1;
  transform: none;
}

/* Masked image reveal used on media frames */
.media-frame.fl-cine-wait { clip-path: inset(12% 8% 12% 8% round 18px); }
.media-frame.fl-cine-wait.is-in { clip-path: inset(0 0 0 0 round 18px); }

/* Depth: elements that drift slightly against the scroll */
[data-depth] { will-change: transform; }

/* Tilt surface */
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 900px;
}
[data-tilt] > * { transform: translateZ(0); }

/* --------------------------------------------------------------------------
   6. Hero composition v2
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(132px, 17vh, 190px);
}

.hero__badge {
  border-color: rgba(126, 240, 255, 0.24);
  background: linear-gradient(100deg, rgba(126, 240, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: #d6e6f5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24) inset, 0 10px 30px rgba(4, 12, 26, 0.5);
}

.hero h1 {
  font-size: clamp(48px, 8.8vw, 124px);
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.hero h1 em {
  background: linear-gradient(96deg, #ffffff 2%, #dff6ff 34%, #8fe6ff 68%, #6bb6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

.hero__lead {
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 17.5px);
  color: #b7c4d4;
}

.hero__meta {
  border-left: 0;
  padding-left: 0;
  gap: 14px;
}
.hero__meta div {
  padding: 12px 16px;
  border: 1px solid var(--fl-line-soft);
  border-radius: 12px;
  background: rgba(4, 8, 15, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

/* A whisper-quiet vertical rail on the left edge of the hero */
.hero__rail {
  position: absolute;
  left: max(18px, calc((100vw - 1240px) / 2 - 34px));
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(150, 176, 205, 0.6);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__rail::after {
  content: "";
  width: 1px;
  height: 68px;
  background: linear-gradient(180deg, rgba(126, 240, 255, 0.7), transparent);
}
@media (min-width: 1360px) {
  .hero__rail { display: flex; }
}

/* Film control cluster */
.hero__film-ui {
  display: flex;
  align-items: center;
  gap: 8px;
}
.film-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 8, 16, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.film-open:hover { color: #fff; border-color: rgba(126, 240, 255, 0.46); background: rgba(8, 16, 28, 0.78); }
.film-open .play {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.film-open .play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  margin-left: 1px;
}

/* --------------------------------------------------------------------------
   7. Film lightbox
   -------------------------------------------------------------------------- */
.fl-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 4, 9, 0.86);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fl-modal.is-open { display: flex; opacity: 1; }
.fl-modal__panel {
  position: relative;
  width: min(1180px, 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(180, 214, 255, 0.2);
  background: #04070d;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.72);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.55s var(--fl-ease);
}
.fl-modal.is-open .fl-modal__panel { transform: none; }
.fl-modal__panel video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.fl-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fl-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--bone-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fl-modal__close:hover { color: #fff; border-color: rgba(126, 240, 255, 0.5); }

body.fl-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Language switch
   -------------------------------------------------------------------------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1;
  flex: none;
}
.lang-toggle button {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  letter-spacing: 0.1em;
  transition: color 0.2s ease, background 0.25s ease;
}
.lang-toggle button[aria-pressed="true"] {
  color: #041019;
  background: linear-gradient(120deg, #d9f6ff, #9fe4ff);
  font-weight: 600;
}
.lang-toggle button:hover { color: var(--bone); }
.lang-toggle button[aria-pressed="true"]:hover { color: #041019; }

.drawer .lang-toggle {
  margin-top: 6px;
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.18);
  font-size: 11px;
}
.drawer .lang-toggle button { padding: 9px 14px; }

@media (max-width: 1080px) {
  .nav__right .lang-toggle { display: none; }
}
@media (min-width: 1081px) {
  .drawer .lang-toggle { display: none; }
}

/* A quiet notice for pages kept in the Korean original */
.fl-lang-note {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(126, 240, 255, 0.24);
  background: rgba(10, 22, 38, 0.66);
  color: #c8d7e8;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0;
}
html[lang="en"] .fl-lang-note { display: flex; }
html[lang="en"] .fl-lang-note::before {
  content: "i";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(126, 240, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #9fe4ff;
}

/* --------------------------------------------------------------------------
   9. Cinematic chapters (home)
   -------------------------------------------------------------------------- */
.chapters {
  position: relative;
  padding-block: clamp(24px, 6vw, 60px);
}
.chapters__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}
.chapters__aside {
  position: sticky;
  top: clamp(96px, 14vh, 150px);
  display: grid;
  gap: 18px;
}
.chapters__figure {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(180, 214, 255, 0.18);
  background:
    radial-gradient(circle at 50% 44%, rgba(126, 240, 255, 0.18), transparent 58%),
    linear-gradient(160deg, #060b14, #03060c 60%, #050a13);
  box-shadow: var(--fl-shadow);
  isolation: isolate;
}
.chapters__figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapters__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.chapters__progress {
  position: relative;
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
}
.chapters__progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--fl-lume-a), var(--fl-lume-b));
  box-shadow: 0 0 12px rgba(126, 240, 255, 0.6);
  transition: width 0.4s var(--fl-ease);
}
.chapter {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--fl-line-soft);
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  opacity: 0.42;
  transition: opacity 0.6s ease;
}
.chapter:first-child { border-top: 0; }
.chapter.is-active { opacity: 1; }
.chapter__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(126, 240, 255, 0.62);
  padding-top: 8px;
  white-space: nowrap;
}
.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin-bottom: 12px;
}
.chapter__text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.86;
  max-width: 46ch;
}
.chapter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chapter.is-active .chapter__num { color: var(--fl-lume-a); }
.chapter.is-active .chapter__title { color: #fff; }

@media (max-width: 900px) {
  .chapters__grid { grid-template-columns: 1fr; }
  .chapters__aside { position: static; order: -1; }
  .chapters__figure { aspect-ratio: 16 / 11; }
  .chapter { grid-template-columns: 1fr; gap: 8px; opacity: 1; }
  .chapter__num { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   10. Showcase tabs (product interaction)
   -------------------------------------------------------------------------- */
.showcase { display: grid; gap: 18px; }
.showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.showcase__tab {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--fl-line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.3s ease;
}
.showcase__tab:hover { color: var(--bone); border-color: rgba(126, 240, 255, 0.3); }
.showcase__tab[aria-selected="true"] {
  color: #041019;
  background: linear-gradient(120deg, #e6f9ff, #a9e6ff);
  border-color: transparent;
  font-weight: 600;
}
.showcase__panels {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(180, 214, 255, 0.16);
  background:
    radial-gradient(620px 300px at 84% -10%, rgba(79, 139, 255, 0.2), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  padding: clamp(18px, 2.6vw, 32px);
  overflow: hidden;
  box-shadow: var(--fl-shadow-sm);
}
.showcase__panel { display: none; }
.showcase__panel.is-active {
  display: block;
  animation: flPanelIn 0.62s var(--fl-ease) both;
}
@keyframes flPanelIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.994); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.showcase__panel h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.showcase__panel p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 62ch; }
.showcase__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.showcase__meta strong { color: var(--fl-lume-a); font-weight: 500; }

/* A small hex/crystal motif used in panels */
.showcase__glyph {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 260px;
  height: 260px;
  opacity: 0.85;
  pointer-events: none;
  background:
    linear-gradient(150deg, rgba(126, 240, 255, 0.16), transparent 46%),
    radial-gradient(circle at 30% 30%, rgba(79, 139, 255, 0.18), transparent 62%);
  clip-path: polygon(50% 0%, 100% 27%, 100% 73%, 50% 100%, 0% 73%, 0% 27%);
  box-shadow: inset 0 0 0 1px rgba(126, 240, 255, 0.3);
}
.showcase__glyph::after {
  content: "";
  position: absolute;
  inset: 26px;
  clip-path: polygon(50% 0%, 100% 27%, 100% 73%, 50% 100%, 0% 73%, 0% 27%);
  background: linear-gradient(150deg, rgba(126, 240, 255, 0.14), transparent 60%);
  outline: 1px solid rgba(126, 240, 255, 0.22);
}

/* --------------------------------------------------------------------------
   11. Marquee, stats and footer polish
   -------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--fl-line-soft);
  border-bottom: 1px solid var(--fl-line-soft);
  background: linear-gradient(90deg, rgba(6, 12, 22, 0.9), rgba(10, 18, 32, 0.5), rgba(6, 12, 22, 0.9));
}
.marquee span {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  color: rgba(196, 214, 233, 0.72);
}

.stats { border-radius: 22px; }
.stat__num {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}
.stat__num span { background: linear-gradient(180deg, #ffffff, #9fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.quote blockquote {
  letter-spacing: -0.04em;
}
.quote blockquote span {
  background: linear-gradient(96deg, #ffffff, #9fe4ff 62%, #6ea9ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer {
  border-top: 1px solid rgba(180, 214, 255, 0.12);
  background:
    radial-gradient(720px 300px at 12% -10%, rgba(79, 139, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.4), #02040a 70%);
}
.footer__brand p { color: #9fadbf; }

.newsletter {
  border: 1px solid var(--fl-glass-line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.newsletter input {
  background: transparent;
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--bone);
}
.newsletter button { border-radius: 999px; padding: 9px 16px; font-size: 12px; }
.newsletter label { display: none; }

/* --------------------------------------------------------------------------
   11b. Official channels
   -------------------------------------------------------------------------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
}
.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(160, 200, 240, 0.14);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.45s var(--fl-ease), border-color 0.3s ease, background 0.3s ease;
  min-height: 132px;
}
.channel:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 240, 255, 0.34);
  background: linear-gradient(168deg, rgba(126, 240, 255, 0.08), rgba(255, 255, 255, 0.014));
}
.channel__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 22, 0.5);
  font-size: 13px;
  color: var(--fl-lume-a);
}
.channel__name { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--bone); }
.channel__handle {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.channel__handle::after {
  content: "↗";
  font-family: inherit;
  color: rgba(126, 240, 255, 0.7);
}
.channel.is-soon { cursor: default; }
.channel.is-soon .channel__handle { color: rgba(150, 165, 185, 0.6); }
.channel.is-soon .channel__handle::after { content: ""; }
.channel.is-soon .channel__icon { color: rgba(150, 165, 185, 0.55); }
.channel.is-soon:hover { transform: none; border-color: rgba(160, 200, 240, 0.14); }
.channel__soon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(190, 205, 225, 0.6);
  border: 1px solid rgba(160, 200, 240, 0.18);
  border-radius: 99px;
  padding: 2px 7px;
}

@media (max-width: 860px) {
  .channels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .channel { min-height: 116px; padding: 15px; }
}
@media (max-width: 420px) {
  .channels-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   12. Motion safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .page-hero__glow { animation: none; }
  .fl-stage { display: none !important; }
  .fl-cine-wait { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .btn::after { display: none; }
  .showcase__panel.is-active { animation: none; }
  .card:hover, .step:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .fl-stage, .hero__glow, .page-hero__glow, .fl-modal, .lang-toggle { display: none !important; }
}
