/* ===================================================
   BOKUDO 墨道 — Global Styles
   =================================================== */

/* ---------- Reset & Root ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0e0e14;
  --ink-2:      #1c1c28;
  --ink-3:      #2a2a3a;
  --gold:       #c9a84c;
  --gold-lt:    #e5c96a;
  --gold-dim:   rgba(201,168,76,.15);
  --red:        #9b2335;
  --paper:      #faf6ee;
  --paper-2:    #f3ede0;
  --white:      #ffffff;
  --muted:      #6b6b80;
  --border:     rgba(201,168,76,.2);
  --border-2:   #e4ddd0;
  --shadow-sm:  0 2px 12px rgba(14,14,20,.08);
  --shadow-md:  0 8px 32px rgba(14,14,20,.14);
  --shadow-lg:  0 20px 60px rgba(14,14,20,.2);
  --r:          10px;
  --ease:       .3s ease;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.hidden { display: none !important; }
.text-white { color: var(--white) !important; }
.text-white-60 { color: rgba(255,255,255,.6) !important; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost, .btn-join,
.btn-book, .btn-live, .btn-plan, .btn-plan--primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 4px;
  font-size: .9rem; font-weight: 500; letter-spacing: .5px;
  border: none; cursor: pointer; transition: var(--ease);
  font-family: var(--font-sans);
}
.btn-primary   { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-3); }
.btn-secondary:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: rgba(255,255,255,.85); }
.btn-ghost:hover { color: var(--gold); }
.btn-join { background: var(--gold); color: var(--ink); border-radius: 24px; padding: 9px 22px; font-size: .85rem; font-weight: 700; }
.btn-join:hover { background: var(--gold-lt); }
.btn-book { background: var(--gold); color: var(--ink); width: 100%; margin-top: 12px; border-radius: 4px; }
.btn-book:hover { background: var(--gold-lt); }
.btn-live { background: var(--gold); color: var(--ink); width: 100%; }
.btn-live:hover { background: var(--gold-lt); }
.btn-live--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: var(--white); }
.btn-live--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-plan { background: transparent; border: 1.5px solid var(--border-2); color: var(--ink); width: 100%; }
.btn-plan:hover { border-color: var(--gold); color: var(--gold); }
.btn-plan--primary { background: var(--gold); color: var(--ink); border: none; width: 100%; }
.btn-plan--primary:hover { background: var(--gold-lt); }

/* ---------- Section Headers ---------- */
.sec-head { text-align: center; margin-bottom: 60px; }
.sec-head--light .sec-tag, .sec-head--light h2, .sec-head--light p { color: var(--white) !important; }
.sec-tag {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: 3px;
  padding: 5px 18px; border-radius: 24px; margin-bottom: 18px;
  text-transform: uppercase;
}
.sec-tag--light { background: rgba(255,255,255,.15); color: var(--white); }
.sec-head h2 {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 900;
  color: var(--ink); margin-bottom: 14px; letter-spacing: 1px;
}
.sec-head p { color: var(--muted); font-size: .95rem; max-width: 540px; margin: 0 auto; }
.sec-foot { text-align: center; margin-top: 48px; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,14,20,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-kanji {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.logo-wordmark {
  display: flex; flex-direction: column; line-height: 1;
  font-size: .7rem; letter-spacing: 4px; color: var(--white); font-weight: 700;
}
.logo-wordmark em { font-style: normal; color: rgba(255,255,255,.5); font-size: .65rem; letter-spacing: 2px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.75); font-size: .875rem; letter-spacing: .5px; transition: var(--ease); }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--ease); }

/* ---- Lang Toggle (index + sub-pages) ---- */
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 6px 14px; cursor: pointer;
  font-size: .75rem; font-family: var(--font-sans);
  transition: var(--ease);
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-ja, .lang-zh { color: rgba(255,255,255,.5); transition: var(--ease); }
.lang-ja.active, .lang-zh.active { color: var(--gold); font-weight: 700; }
.lang-divider { color: rgba(255,255,255,.2); font-size: .65rem; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh; padding-top: 66px;
  background: linear-gradient(145deg, var(--ink) 0%, #131320 55%, #1a1030 100%);
  display: grid; grid-template-columns: 1fr 480px;
  align-items: center; gap: 0;
  position: relative; overflow: hidden;
}
.hero-bg-chars {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
}
.hero-bg-chars span {
  position: absolute;
  font-family: var(--font-serif); font-weight: 900;
  color: rgba(201,168,76,.04); font-size: 18vw;
  line-height: 1; user-select: none;
}
.hero-bg-chars span:nth-child(1) { top: -8%; left: -5%; }
.hero-bg-chars span:nth-child(2) { top: 40%; right: 5%; font-size: 14vw; color: rgba(201,168,76,.025); }
.hero-bg-chars span:nth-child(3) { bottom: -10%; left: 30%; font-size: 20vw; }
.hero-bg-chars span:nth-child(4) { top: 10%; right: 40%; font-size: 8vw; }
.hero-bg-chars span:nth-child(5) { bottom: 5%; right: 20%; font-size: 12vw; }
.hero-bg-chars span:nth-child(6) { top: 50%; left: 15%; font-size: 10vw; }

.hero-content {
  position: relative; z-index: 2;
  padding: 80px 24px 80px 48px;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: .78rem; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); opacity: .6; }
.hero-h1 {
  font-family: var(--font-serif);
  font-size: 3.4rem; font-weight: 900; line-height: 1.25;
  color: var(--white); margin-bottom: 24px; letter-spacing: 2px;
}
.hero-h1 .accent { color: var(--gold); }
.hero-lead { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.85; margin-bottom: 40px; max-width: 500px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-numbers {
  display: flex; align-items: center; gap: 32px;
}
.hnum { display: flex; flex-direction: column; }
.hnum strong {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.hnum span { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 4px; letter-spacing: 1px; }
.hnum-sep { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* Hero Visual */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 80px 48px 80px 0;
}
.ink-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.1);
  animation: pulse 6s ease-in-out infinite;
}
.ring-1 { width: 320px; height: 320px; }
.ring-2 { width: 440px; height: 440px; animation-delay: -3s; border-style: dashed; }
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.04); opacity: 1; }
}
.hero-char-showcase {
  position: relative; z-index: 1;
  width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.showcase-char {
  position: absolute;
  font-family: var(--font-serif); font-size: 9rem; font-weight: 900;
  color: rgba(201,168,76,.7); line-height: 1;
  opacity: 0; transition: opacity .8s ease;
}
.showcase-char.active { opacity: 1; }

/* ===================================================
   FEATURES OVERVIEW
   =================================================== */
.features-overview { background: var(--white); }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feat-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 28px 24px;
  position: relative;
  transition: var(--ease);
  cursor: pointer;
}
.feat-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feat-card--gold {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-color: var(--gold);
  color: var(--white);
}
.feat-card--gold h3 { color: var(--gold); }
.feat-card--gold p { color: rgba(255,255,255,.7); }
.feat-num {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 900;
  color: rgba(201,168,76,.2); line-height: 1; margin-bottom: 12px;
}
.feat-card--gold .feat-num { color: rgba(201,168,76,.4); }
.feat-icon { font-size: 1.6rem; margin-bottom: 12px; }
.feat-card h3 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 10px; line-height: 1.4;
}
.feat-card p { font-size: .82rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.feat-tags span {
  font-size: .7rem; background: var(--gold-dim); color: var(--gold);
  padding: 3px 10px; border-radius: 12px; letter-spacing: .5px;
}
.feat-card--gold .feat-tags span { background: rgba(201,168,76,.2); }
.feat-arrow { font-size: .85rem; color: var(--gold); font-weight: 700; }

/* ===================================================
   MASTERS PREVIEW
   =================================================== */
.masters-preview { background: var(--paper); }
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 24px;
  background: var(--white); border: 1.5px solid var(--border-2);
  font-size: .82rem; font-family: var(--font-sans);
  cursor: pointer; transition: var(--ease); color: var(--ink);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700;
}
.works-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r); overflow: hidden;
  transition: var(--ease); cursor: pointer;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.work-thumb {
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 5rem; font-weight: 900;
  color: var(--gold); position: relative; overflow: hidden;
}
.work-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  opacity: .92;
}
.work-thumb span { position: relative; z-index: 1; }
.work-meta { padding: 14px 16px; }
.work-master { font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.work-title { font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.work-tag {
  font-size: .65rem; padding: 2px 8px; border-radius: 10px;
  background: var(--gold-dim); color: var(--gold);
}
.work-tag.free { background: rgba(40,180,100,.1); color: #228b22; }
.work-tag.paid { background: rgba(155,35,53,.1); color: var(--red); }

/* ===================================================
   GENERATOR DEMO
   =================================================== */
.gen-demo { background: var(--white); }
.gen-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.gen-info .sec-tag { display: inline-block; }
.gen-info h2 {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 900;
  color: var(--ink); margin: 16px 0; letter-spacing: 1px; line-height: 1.3;
}
.gen-info p { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.gen-points { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.gen-points li { font-size: .875rem; color: var(--ink); }

.gen-mockup {
  background: var(--paper);
  border: 1px solid var(--border-2);
  border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-md);
}
.gen-input-area { margin-bottom: 20px; }
.gen-input-area input {
  width: 100%; padding: 14px 18px;
  background: var(--white); border: 1.5px solid var(--border-2);
  border-radius: 8px; font-size: 1.1rem;
  font-family: var(--font-serif); color: var(--ink);
  outline: none; margin-bottom: 14px;
  transition: var(--ease);
}
.gen-input-area input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.style-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 16px; border-radius: 20px;
  font-size: .78rem; background: var(--white);
  border: 1.5px solid var(--border-2); cursor: pointer;
  transition: var(--ease);
}
.chip.active, .chip:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }

.gen-canvas-wrap {}
.gen-canvas {
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; margin-bottom: 14px;
  overflow: hidden;
}
.gen-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.06) 0%, transparent 70%);
}
.gen-output-char {
  font-family: var(--font-serif); font-size: 8rem; font-weight: 900;
  color: var(--gold); line-height: 1; position: relative; z-index: 1;
  transition: all .4s ease;
}
.gen-style-label {
  position: absolute; bottom: 12px; right: 16px;
  font-size: .7rem; color: rgba(255,255,255,.4); letter-spacing: 2px;
}
.gen-canvas-actions { display: flex; gap: 8px; }
.canvas-btn {
  flex: 1; padding: 10px; border-radius: 6px;
  background: var(--white); border: 1.5px solid var(--border-2);
  font-size: .78rem; cursor: pointer; transition: var(--ease);
  font-family: var(--font-sans);
}
.canvas-btn:hover { border-color: var(--gold); color: var(--gold); }
.canvas-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.canvas-btn--gold:hover { background: var(--gold-lt); }

/* ===================================================
   FRAME PREVIEW
   =================================================== */
.frame-preview { background: var(--paper-2); }
.frame-gallery {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.frame-item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer;
}
.frame-item span { font-size: .85rem; color: var(--muted); }
.frame-item.active span { color: var(--gold); font-weight: 700; }
.frame-visual {
  width: 160px; display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.frame-item:hover .frame-visual, .frame-item.active .frame-visual { transform: scale(1.04); }

/* 掛軸 */
.frame-kakejiku {
  height: 280px;
  background: linear-gradient(180deg, #2c1b0a 0%, #1a1000 100%);
  border: 6px solid #8b6914;
  border-radius: 2px;
  position: relative;
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(0,0,0,.4);
}
.frame-kakejiku::before, .frame-kakejiku::after {
  content: ''; position: absolute; left: -10px; right: -10px; height: 18px;
  background: #5c3d0a; border-radius: 2px;
}
.frame-kakejiku::before { top: -16px; }
.frame-kakejiku::after { bottom: -16px; }

/* 額装 */
.frame-gakuso {
  height: 180px;
  background: var(--paper);
  border: 12px solid #2c1b0a;
  box-shadow: var(--shadow-md), inset 0 0 0 4px #8b6914;
  border-radius: 2px;
}

/* 色紙 */
.frame-shikishi {
  width: 150px; height: 170px;
  background: linear-gradient(135deg, #fdf6e3 0%, #f0e8d0 100%);
  border: 1px solid #c4a96d;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.frame-shikishi::before {
  content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(196,169,109,.4);
}

/* 扇面 */
.frame-senmen {
  width: 200px; height: 110px;
  background: linear-gradient(135deg, #fdf6e3 0%, #f0e8d0 100%);
  border-radius: 100px 100px 8px 8px;
  border: 2px solid #c4a96d;
  box-shadow: var(--shadow-md);
  clip-path: ellipse(100% 100% at 50% 100%);
}

.frame-inner-char {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 900;
  color: var(--ink); line-height: 1;
}
.frame-kakejiku .frame-inner-char { color: var(--gold); }

/* ===================================================
   LESSON PREVIEW
   =================================================== */
.lesson-preview { background: var(--white); }
.lesson-tabs {
  display: flex; gap: 0; justify-content: center;
  border: 1.5px solid var(--border-2); border-radius: 8px;
  overflow: hidden; width: fit-content; margin: 0 auto 40px;
}
.ltab {
  padding: 12px 32px; background: none; border: none; cursor: pointer;
  font-size: .875rem; font-family: var(--font-sans); color: var(--muted);
  transition: var(--ease);
}
.ltab.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.lesson-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.lesson-cards { display: flex; flex-direction: column; gap: 16px; }
.teacher-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--border-2);
  border-radius: var(--r); padding: 18px 20px;
  transition: var(--ease);
}
.teacher-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.tc-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold);
  font-weight: 900; flex-shrink: 0;
}
.tc-avatar--2 { background: linear-gradient(135deg, #1a0a2e 0%, #3d1f5c 100%); }
.tc-avatar--3 { background: linear-gradient(135deg, #0a1f2e 0%, #1f3d5c 100%); }
.tc-info { flex: 1; }
.tc-name { font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 3px; }
.tc-style { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.tc-rating { font-size: .75rem; color: var(--gold); margin-bottom: 4px; }
.tc-rating span { color: var(--muted); }
.tc-price { font-size: .85rem; font-weight: 700; color: var(--ink); }
.lesson-feature-list { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.lf-item { display: flex; gap: 14px; align-items: flex-start; }
.lf-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.lf-item strong { display: block; font-size: .875rem; color: var(--ink); margin-bottom: 3px; }
.lf-item p { font-size: .8rem; color: var(--muted); }

/* Workshop */
.workshop-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: 16px; padding: 36px; color: var(--white);
  grid-column: 1 / -1;
}
.ws-header { margin-bottom: 24px; }
.ws-badge {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  padding: 4px 14px; border-radius: 12px; margin-bottom: 14px;
}
.ws-header h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.ws-header p { color: rgba(255,255,255,.65); font-size: .875rem; }
.ws-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.ws-meta-item { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: rgba(255,255,255,.8); }
.ws-meta-item strong { color: var(--white); }
.ws-pricing { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ws-tier {
  flex: 1; min-width: 100px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 14px; text-align: center; position: relative;
}
.ws-tier.featured-tier { background: var(--gold-dim); border-color: var(--gold); }
.ws-tier-label { display: block; font-size: .75rem; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.ws-tier-price { display: block; font-size: 1.1rem; font-weight: 700; color: var(--white); }
.ws-tier-note {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: .65rem; font-weight: 700; padding: 2px 10px; border-radius: 10px; white-space: nowrap;
}
.ws-slots { margin-bottom: 20px; }
.slot-bar {
  height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; margin-bottom: 8px; overflow: hidden;
}
.slot-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.ws-slots span { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ===================================================
   LIVE SECTION
   =================================================== */
.live-section {
  background: linear-gradient(145deg, #06060f 0%, #12101e 100%);
}
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.live-card {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden; transition: var(--ease);
}
.live-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.live-card--on { border-color: rgba(255,60,60,.4); }
.live-thumb {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.live-char-bg {
  font-family: var(--font-serif); font-size: 8rem; font-weight: 900;
  color: rgba(201,168,76,.15); line-height: 1; position: absolute;
}
.live-char-bg--2 { color: rgba(155,35,53,.2); }
.live-char-bg--3 { color: rgba(40,100,180,.2); }
.live-badge-on {
  position: absolute; top: 12px; left: 12px;
  background: rgba(220,30,30,.9); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 12px;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.live-badge-soon, .live-badge-replay {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.7); color: rgba(255,255,255,.8);
  font-size: .72rem; padding: 4px 12px; border-radius: 12px;
}
.live-viewers {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.6); color: var(--white);
  font-size: .72rem; padding: 4px 10px; border-radius: 10px;
}
.live-info { padding: 18px 20px; }
.live-host { font-size: .75rem; color: var(--gold); margin-bottom: 6px; }
.live-title { font-size: .875rem; font-weight: 700; color: var(--white); margin-bottom: 6px; line-height: 1.4; }
.live-price-tag { font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: 14px; }

/* ===================================================
   GALLERY PREVIEW
   =================================================== */
.gallery-preview { background: var(--paper); }
.gallery-masonry {
  columns: 4; column-gap: 16px;
}
.gallery-item-m {
  break-inside: avoid; margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r); overflow: hidden;
  transition: var(--ease); cursor: pointer;
}
.gallery-item-m:hover { transform: scale(1.02); box-shadow: var(--shadow-md); border-color: var(--gold); }
.gallery-thumb-m {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 900; color: var(--gold);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  line-height: 1;
}
.gallery-meta-m { padding: 12px 14px; }
.gallery-author { font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.gallery-likes { font-size: .72rem; color: var(--muted); }

/* ===================================================
   CERTIFIED SECTION
   =================================================== */
.certified-section { background: var(--white); }
.certified-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.cert-info h2 {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 900;
  color: var(--ink); margin: 16px 0; letter-spacing: 1px; line-height: 1.3;
}
.cert-info p { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.cert-flow {
  display: flex; align-items: flex-start; gap: 12px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.cf-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; max-width: 90px;
}
.cf-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; color: var(--muted);
}
.cf-num--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-size: 1.1rem; }
.cf-step strong { font-size: .78rem; color: var(--ink); }
.cf-step p { font-size: .7rem; color: var(--muted); }
.cf-arrow { color: var(--gold); font-size: 1.2rem; margin-top: 14px; }
.cert-active .cf-step { }

.cert-benefits h3 {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
  color: var(--ink); margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.benefit-list { display: flex; flex-direction: column; gap: 18px; }
.benefit-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--paper);
  border: 1px solid var(--border-2); border-radius: 8px;
  transition: var(--ease);
}
.benefit-item:hover { border-color: var(--gold); background: var(--gold-dim); }
.bi-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.benefit-item strong { display: block; font-size: .875rem; color: var(--ink); margin-bottom: 3px; }
.benefit-item p { font-size: .78rem; color: var(--muted); }

/* ===================================================
   PRICING SECTION
   =================================================== */
.pricing-section { background: var(--paper); }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 48px;
}
.pt-label { font-size: .875rem; color: var(--muted); cursor: pointer; transition: var(--ease); }
.pt-label.active { color: var(--ink); font-weight: 700; }
.pt-label em { font-style: normal; font-size: .75rem; color: var(--gold); }
.toggle-switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-2); border-radius: 12px; cursor: pointer;
  transition: var(--ease);
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); transition: var(--ease);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.plan-card {
  background: var(--white); border: 1.5px solid var(--border-2);
  border-radius: 16px; padding: 36px 28px;
  transition: var(--ease); position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card--popular {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  transform: scale(1.03);
}
.plan-card--popular:hover { transform: scale(1.03) translateY(-4px); }
.plan-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: .72rem; font-weight: 700; padding: 4px 18px; border-radius: 12px;
  white-space: nowrap; letter-spacing: 1px;
}
.plan-name {
  font-size: .8rem; font-weight: 700; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 12px; text-transform: uppercase;
}
.plan-price {
  display: flex; align-items: flex-end; gap: 4px;
  margin-bottom: 8px;
}
.plan-price span {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 900; color: var(--ink); line-height: 1;
}
.plan-card--popular .plan-price span { color: var(--white); }
.plan-price small { font-size: .8rem; color: var(--muted); padding-bottom: 6px; }
.plan-card--popular .plan-price small { color: rgba(255,255,255,.5); }
.plan-desc { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
.plan-card--popular .plan-desc { color: rgba(255,255,255,.55); }
.plan-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.plan-features li { font-size: .82rem; color: var(--ink); }
.plan-card--popular .plan-features li { color: rgba(255,255,255,.8); }
.plan-features li.no { opacity: .35; }
.pricing-note {
  background: var(--gold-dim); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 16px 20px;
  font-size: .82rem; color: var(--muted);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: .82rem; line-height: 1.8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  font-size: .75rem; padding: 6px 14px;
  background: rgba(255,255,255,.06); border-radius: 20px;
  color: rgba(255,255,255,.6); transition: var(--ease);
}
.footer-socials a:hover { background: var(--gold); color: var(--ink); }
.footer-col h4 { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 18px; text-transform: uppercase; }
.footer-col li { padding: 5px 0; }
.footer-col a { font-size: .82rem; color: rgba(255,255,255,.55); transition: var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: rgba(255,255,255,.3);
}

/* ===================================================
   TOAST / SCROLL-TOP
   =================================================== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--ink-2); color: var(--white);
  padding: 14px 24px; border-radius: 8px; font-size: .875rem;
  opacity: 0; pointer-events: none; transition: var(--ease);
  border: 1px solid var(--border); z-index: 9999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--ink); border: none;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  opacity: 0; pointer-events: none; transition: var(--ease);
  box-shadow: 0 4px 16px rgba(201,168,76,.4); z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--gold-lt); transform: translateY(-2px); }

/* ===================================================
   PAGE SHARED (used in sub-pages)
   =================================================== */
.page-hero {
  min-height: 280px; padding: 120px 0 60px;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-2) 100%);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--font-serif); font-size: 20rem; font-weight: 900;
  color: rgba(201,168,76,.04);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 48px; user-select: none; line-height: 1;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .sec-tag { display: inline-block; margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 900;
  color: var(--white); margin-bottom: 12px; letter-spacing: 2px;
}
.page-hero p { color: rgba(255,255,255,.65); font-size: .95rem; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-masonry { columns: 3; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 80px 24px; max-width: 100%; }
  .gen-layout { grid-template-columns: 1fr; gap: 40px; }
  .certified-layout { grid-template-columns: 1fr; gap: 48px; }
  .lesson-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 24px; }
  .plan-card--popular { transform: none; }
  .plan-card--popular:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: rgba(14,14,20,.98); padding: 20px 24px; gap: 16px; border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .hero-h1 { font-size: 2.4rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 2; }
  .frame-gallery { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .cert-flow { gap: 8px; }
  .cf-arrow { font-size: .9rem; margin-top: 12px; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-numbers { gap: 18px; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ws-pricing { flex-direction: column; }
}
