/* ====== THEME TOKENS (from lib/theme/tokens.ts) ====== */

/* Light mode (default) */
[data-theme="light"] {
  /* Core colors */
  --bg: #fbf6ee;
  --text: #392c22;
  --muted: #6b5848;
  --surface: #fffaf3;
  --surface-alpha: rgba(255, 250, 243, 0.82);
  --border: rgba(57, 44, 34, 0.09);
  --primary: #7f9f88;
  --primary-hover: #6f8f79;
  --on-primary: #fffdf9;

  /* Semantic */
  --info: #8ea5bf;
  --info-soft: #e7ecf5;
  --success-soft: #e5ede6;
  --disabled-soft: rgba(107, 88, 72, 0.12);
  --danger: #b79293;
  --danger-soft: #f1e4e4;
  --warning: #a27f62;

  /* Warm gray scale */
  --gray-200: #e6d4bf;
  --gray-300: #d5bda3;
  --gray-400: #bfa083;
  --gray-500: #a27f62;

  /* Landing page specific */
  --card: #fffaf3;
  --card-border: rgba(57, 44, 34, 0.09);
  --card-glow: rgba(127, 159, 136, 0.06);
  --accent: #7f9f88;
  --accent-glow: rgba(127, 159, 136, 0.35);
  --accent-border: rgba(127, 159, 136, 0.35);
  --btn-ghost-bg: rgba(57, 44, 34, 0.06);
  --btn-ghost-border: rgba(57, 44, 34, 0.12);
  --body-bg-from: #faf6ef;
  --body-bg-to: #f5ede0;
  --num-color: rgba(57, 44, 34, 0.08);
  --slash-color: rgba(57, 44, 34, 0.06);
  --progress-bg: rgba(57, 44, 34, 0.08);
  --score-border: rgba(57, 44, 34, 0.12);
  --dot-bg: rgba(57, 44, 34, 0.12);
  --icon-bg: #f0ebe3;
  --icon-border: rgba(57, 44, 34, 0.08);
  --bento-p-color: #6b5848;

  /* Orbs */
  --orb1-color: #e9ccaf;
  --orb1-opacity: 0.18;
  --orb2-color: #b4c6da;
  --orb2-opacity: 0.14;

  /* Grid */
  --grid-dot: rgba(57, 44, 34, 0.06);
  --grid-opacity: 0.4;

  /* Phone screen SVG colors (status bar icons) */
  --ph-icon-strong: #392c22;
  --ph-icon-weak: #d5bda3;

  /* Tabbar */
  --tabbar-bg: rgba(255, 250, 243, 0.88);
  --tabbar-shadow: rgba(57, 44, 34, 0.06);
  --tab-inactive: #6b5848;

  /* Feed search */
  --search-bg: rgba(255, 250, 243, 0.6);
  --search-icon: #bfa083;

  /* Reader */
  --rd-close-bg: rgba(57, 44, 34, 0.08);
  --rd-ctrl-bg: rgba(57, 44, 34, 0.06);
  --rd-speed-bg: rgba(57, 44, 34, 0.08);
  --rd-adblock-bg: rgba(127, 159, 136, 0.18);
  --rd-bar-bg: rgba(57, 44, 34, 0.1);
  --rd-play-icon: #fffdf9;

  /* Interest card */
  --ic-sep: rgba(57, 44, 34, 0.06);
  --ic-tag-bg: rgba(57, 44, 34, 0.05);
  --fc-icon-border: rgba(57, 44, 34, 0.12);

  /* Scene background */
  --scene-gradient: linear-gradient(165deg, #fff3de, #edf4ff 35%, #eefbee 65%, #fff0f3);
  --scene-blob1: rgba(233, 204, 175, 0.2);
  --scene-blob2: rgba(180, 198, 218, 0.16);
  --scene-blob3: rgba(217, 229, 216, 0.16);
  --scene-blob4: rgba(236, 217, 217, 0.14);

  /* Carousel badge */
  --badge-color: #7f9f88;
  --badge-border: rgba(127, 159, 136, 0.35);

  /* Carousel dot */
  --dot-fill: #7f9f88;

  /* Upvote */
  --upvote: #2563eb;
}

/* Dark mode */
[data-theme="dark"] {
  /* Core colors */
  --bg: #1f1a16;
  --text: #f4e7d7;
  --muted: #d0bea9;
  --surface: #2a231e;
  --surface-alpha: rgba(42, 35, 30, 0.82);
  --border: rgba(255, 236, 214, 0.12);
  --primary: #8ea591;
  --primary-hover: #9cb39f;
  --on-primary: #1b261d;

  /* Semantic */
  --info: #9bb1ca;
  --info-soft: rgba(155, 177, 202, 0.2);
  --success-soft: rgba(127, 159, 136, 0.2);
  --disabled-soft: rgba(208, 190, 169, 0.14);
  --danger: #c39ea0;
  --danger-soft: rgba(195, 158, 160, 0.2);
  --warning: #bfa083;

  /* Warm gray scale */
  --gray-200: #4a3f36;
  --gray-300: #5a4e43;
  --gray-400: #8a7a6a;
  --gray-500: #a89480;

  /* Landing page specific */
  --card: #2a231e;
  --card-border: rgba(255, 236, 214, 0.1);
  --card-glow: rgba(142, 165, 145, 0.04);
  --accent: #8ea591;
  --accent-glow: rgba(142, 165, 145, 0.3);
  --accent-border: rgba(142, 165, 145, 0.3);
  --btn-ghost-bg: rgba(255, 236, 214, 0.06);
  --btn-ghost-border: rgba(255, 236, 214, 0.12);
  --body-bg-from: #1f1a16;
  --body-bg-to: #171310;
  --num-color: rgba(244, 231, 215, 0.06);
  --slash-color: rgba(244, 231, 215, 0.04);
  --progress-bg: rgba(244, 231, 215, 0.08);
  --score-border: rgba(244, 231, 215, 0.1);
  --dot-bg: rgba(244, 231, 215, 0.12);
  --icon-bg: #332c26;
  --icon-border: rgba(244, 231, 215, 0.08);
  --bento-p-color: #a89480;

  /* Orbs */
  --orb1-color: #536a57;
  --orb1-opacity: 0.15;
  --orb2-color: #4f5f73;
  --orb2-opacity: 0.12;

  /* Grid */
  --grid-dot: rgba(244, 231, 215, 0.04);
  --grid-opacity: 0.3;

  /* Phone screen SVG colors (status bar icons) */
  --ph-icon-strong: #f4e7d7;
  --ph-icon-weak: #5a4e43;

  /* Tabbar */
  --tabbar-bg: rgba(42, 35, 30, 0.88);
  --tabbar-shadow: rgba(0, 0, 0, 0.15);
  --tab-inactive: #a89480;

  /* Feed search */
  --search-bg: rgba(42, 35, 30, 0.6);
  --search-icon: #8a7a6a;

  /* Reader */
  --rd-close-bg: rgba(244, 231, 215, 0.1);
  --rd-ctrl-bg: rgba(244, 231, 215, 0.08);
  --rd-speed-bg: rgba(244, 231, 215, 0.1);
  --rd-adblock-bg: rgba(142, 165, 145, 0.2);
  --rd-bar-bg: rgba(244, 231, 215, 0.1);
  --rd-play-icon: #1b261d;

  /* Interest card */
  --ic-sep: rgba(244, 231, 215, 0.06);
  --ic-tag-bg: rgba(244, 231, 215, 0.06);
  --fc-icon-border: rgba(244, 231, 215, 0.12);

  /* Scene background */
  --scene-gradient: linear-gradient(165deg, #1f1a16, #1f1a16);
  --scene-blob1: rgba(83, 106, 87, 0.15);
  --scene-blob2: rgba(79, 95, 115, 0.12);
  --scene-blob3: rgba(91, 74, 61, 0.11);
  --scene-blob4: rgba(109, 87, 89, 0.1);

  /* Carousel badge */
  --badge-color: #8ea591;
  --badge-border: rgba(142, 165, 145, 0.35);

  /* Carousel dot */
  --dot-fill: #8ea591;

  /* Upvote */
  --upvote: #5b9cf5;
}

/* ====== SCENE DURATION ====== */
:root {
  --scene-duration: 5s;
}

/* ====== BASE ====== */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 110% at 50% 0%, var(--body-bg-from) 0%, var(--body-bg-to) 70%);
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.3s ease;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: var(--grid-opacity);
  transition: opacity 0.4s ease;
}
.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  transition:
    background 0.6s ease,
    opacity 0.6s ease;
}
.orb-1 {
  width: 45vw;
  height: 45vw;
  background: var(--orb1-color);
  opacity: var(--orb1-opacity);
  left: 8vw;
  top: 6vh;
}
.orb-2 {
  width: 54vw;
  height: 54vw;
  background: var(--orb2-color);
  opacity: var(--orb2-opacity);
  right: -10vw;
  bottom: -10vh;
}

.page {
  position: relative;
  z-index: 2;
  width: min(1220px, 92vw);
  margin: 0 auto;
  padding: 28px 0 80px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    900 1.7rem / 1 "Outfit",
    sans-serif;
  letter-spacing: -0.02em;
}
.brand-logo {
  overflow: visible;
  filter: drop-shadow(0 1px 4px var(--accent-glow));
  animation: logo-bob 4s ease-in-out infinite;
  transition: filter 0.3s ease;
  margin-top: -1px; /* optical alignment with text */
}

.owl-body {
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}

.owl-eyes circle,
.owl-pupils circle,
.owl-beak {
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}

.owl-eyes {
  transform-origin: 12px 12px;
  animation: owl-blink 5s infinite;
}

.owl-pupils {
  animation: owl-look 8s infinite;
}

@keyframes logo-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes owl-blink {
  0%,
  92%,
  96%,
  100% {
    transform: scaleY(1);
  }
  94%,
  98% {
    transform: scaleY(0.1);
  }
}

@keyframes owl-look {
  0%,
  20% {
    transform: translate(0, 0);
  }
  25%,
  45% {
    transform: translate(1.5px, 0);
  }
  50%,
  70% {
    transform: translate(-1.5px, 0);
  }
  75%,
  95% {
    transform: translate(0, 1.5px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 999px;
  padding: 2px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  background: var(--accent);
  color: var(--on-primary);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--btn-ghost-border);
  background: var(--btn-ghost-bg);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.btn {
  border: 1px solid var(--btn-ghost-border);
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.btn.primary {
  background: var(--accent);
  color: var(--on-primary);
  border-color: transparent;
  font-weight: 900;
  padding: 16px 26px;
}
.btn.primary:hover {
  background: var(--primary-hover);
}

/* ====== HERO ====== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

/* ====== CAROUSEL ====== */

.hero-carousel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 80px;
  padding-right: 24px;
}
.carousel-slides {
  display: grid;
}
.carousel-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.carousel-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--badge-color);
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  padding: 6px 14px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.carousel-slide h2 {
  margin: 18px 0 14px;
  font:
    900 clamp(2.4rem, 6vw, 4.5rem) / 0.95 "Outfit",
    sans-serif;
  letter-spacing: -0.035em;
  color: var(--text);
}
.carousel-slide h2 span {
  color: var(--accent);
}
.carousel-slide p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
  line-height: 1.5;
  margin: 0;
}
.carousel-nav {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--dot-bg);
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.carousel-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--dot-fill);
  border-radius: inherit;
}
.carousel-dot.active::after {
  animation: dot-fill var(--scene-duration) linear forwards;
}
@keyframes dot-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.carousel-cta {
  align-self: flex-start;
}

/* ====== 3D PHONE CONTAINER ====== */

.hero-phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 680px;
}
#webgl-container {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ====== PHONE SCREEN (offscreen) ====== */

#phone-screen {
  width: 320px;
  height: 693px;
  overflow: hidden;
  position: fixed;
  left: -9999px;
  top: 0;
  pointer-events: none;
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  transition: none; /* no transitions on offscreen element */
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  background:
    radial-gradient(circle 200px at 15% 20%, var(--scene-blob1), transparent 70%),
    radial-gradient(circle 180px at 80% 35%, var(--scene-blob2), transparent 70%),
    radial-gradient(circle 170px at 50% 65%, var(--scene-blob3), transparent 70%),
    radial-gradient(circle 160px at 20% 90%, var(--scene-blob4), transparent 70%),
    var(--scene-gradient);
}
.scene.active {
  opacity: 1;
}

/* ====== STATUS BAR ====== */

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  height: 48px;
}
.status-bar b {
  color: var(--text);
  font-size: 0.95rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.battery {
  width: 22px;
  height: 10px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
  padding: 1px;
  position: relative;
}
.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: var(--text);
  border-radius: 0 1px 1px 0;
}
.battery-fill {
  width: 80%;
  height: 100%;
  background: var(--text);
  border-radius: 1px;
}

/* Status bar / phone screen SVG theme classes */
.si-bars,
.si-wifi {
  color: var(--text);
}
.si-weak {
  fill: var(--gray-300);
}
.si-search {
  color: var(--search-icon);
}
.vote-up {
  fill: var(--upvote);
}
.vote-neutral {
  fill: var(--gray-400);
}

/* ====== TAB BAR ====== */

.tabbar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 58px;
  border-radius: 999px;
  background: var(--tabbar-bg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  box-shadow: 0 2px 12px var(--tabbar-shadow);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.tab span {
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--tab-inactive);
}
.tab .tab-active {
  color: var(--primary);
  font-weight: 600;
}

/* ====== FEED SCENE ====== */

.feed-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 12px 6px;
  padding: 10px 14px;
  background: var(--search-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.feed-search span {
  color: var(--gray-400);
  font-size: 0.78rem;
}

.filter-bar {
  display: flex;
  gap: 6px;
  padding: 0 12px 14px;
  overflow: hidden;
}
.filter-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--disabled-soft);
}
.filter-pill.active {
  background: var(--info-soft);
  color: var(--info);
  font-weight: 600;
}

.timeline-viewport {
  position: absolute;
  top: 118px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.timeline-track {
  padding: 0 12px 90px;
  display: grid;
  gap: 8px;
}

/* ====== FEED CARDS ====== */

.feed-card {
  background: var(--surface-alpha);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(57, 44, 34, 0.04);
}
.fc-img {
  width: 100%;
  height: 110px;
}
.fc-body {
  padding: 8px 12px 8px;
}
.fc-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.fc-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.fc-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 0.5px solid var(--fc-icon-border);
}
.fc-src {
  font-size: 0.62rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-votes {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}
.fc-score {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 14px;
  text-align: center;
}
.fc-score.up {
  color: var(--upvote);
}

/* ====== INTERESTS SCENE ====== */

.interests-content {
  padding: 4px 14px 96px;
}
.ic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ic-section-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}
.ic-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: var(--info-soft);
  color: var(--info);
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.interest-card {
  background: var(--surface-alpha);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.ic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.interest-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: var(--text);
}
.ic-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  color: var(--gray-500);
}
.ic-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ic-pill {
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.ic-pill.public {
  background: var(--success-soft);
  color: var(--primary);
}
.ic-pill.following {
  background: var(--info-soft);
  color: var(--info);
}

.ic-sources {
  margin-bottom: 4px;
}
.ic-source {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.ic-favicon {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
}
.ic-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ic-domain {
  font-size: 0.58rem;
  color: var(--gray-400);
  white-space: nowrap;
}
.ic-sep {
  height: 1px;
  background: var(--ic-sep);
  margin: 0 0 0 19px;
}
.ic-add-link {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--info);
  margin: 4px 0 6px;
  padding-left: 19px;
}
.ic-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.58rem;
  color: var(--gray-400);
}
.ic-stat-div {
  width: 1px;
  height: 10px;
  background: var(--gray-200);
}
.ic-stat-pos {
  color: var(--primary);
}
.ic-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.ic-tag {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--ic-tag-bg);
  border: 1px dashed var(--gray-300);
  border-radius: 6px;
  padding: 2px 7px;
}
.ic-tag-add {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--gray-400);
  border: 1px dashed var(--gray-300);
  border-radius: 6px;
  padding: 2px 7px;
}

.ic-followed {
  margin-top: 14px;
}
.ic-followed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ic-sep);
}
.ic-followed-count {
  font-size: 0.58rem;
  color: var(--gray-400);
}
.ic-followed-by {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  color: var(--info);
}

/* ====== READER SCENE ====== */

.rd-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 6px;
}
.rd-close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--rd-close-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rd-site {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.rd-site-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.rd-site-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-adblock {
  flex-shrink: 0;
  background: var(--rd-adblock-bg);
  color: var(--primary);
  font-size: 0.5rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* Audio player card */
.rd-player {
  margin: 0 10px 8px;
  padding: 12px 14px;
  background: var(--surface-alpha);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.rd-player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.rd-now-playing {
  display: flex;
  align-items: center;
  gap: 5px;
}
.rd-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
.rd-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.rd-speed {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--rd-speed-bg);
  border-radius: 999px;
  padding: 2px 8px;
}
.rd-player-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  line-height: 1.2;
}
.rd-progress {
  margin-bottom: 10px;
}
.rd-bar {
  height: 6px;
  background: var(--rd-bar-bg);
  border-radius: 999px;
  overflow: hidden;
}
.rd-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}
.rd-times {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--gray-400);
}
.rd-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.rd-ctrl {
  width: 30px;
  height: 30px;
  background: var(--rd-ctrl-bg);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.rd-play {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  display: grid;
  place-items: center;
}

/* Article content below player */
.rd-article {
  overflow: hidden;
}
.rd-hero {
  height: 100px;
}
.rd-content {
  padding: 12px 16px;
}
.rd-headline {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  line-height: 1.15;
}
.rd-byline {
  margin: 0 0 10px;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gray-400);
}
.rd-body {
  margin: 0 0 8px;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ====== BENTO GRID ====== */

.bento {
  margin-top: 52px;
  display: grid;
  gap: 22px;
}

.bento-main {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: clamp(26px, 5vw, 56px);
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}

.bento-main .icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--icon-border);
  background: var(--icon-bg);
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 18px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.bento-main h2 {
  margin: 0 0 14px;
  font:
    900 clamp(2rem, 6vw, 4rem) / 0.95 "Outfit",
    sans-serif;
  letter-spacing: -0.03em;
}

.bento-main p {
  margin: 0;
  max-width: 60ch;
  color: var(--bento-p-color);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  transition: color 0.3s ease;
}

.slash-lines {
  position: absolute;
  top: -24px;
  right: -60px;
  width: 46%;
  height: 130%;
  opacity: 0.14;
  transform: rotate(18deg);
}

.slash-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--slash-color);
  margin: 54px 0;
}

.bento-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 34px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.16;
  transition: background 0.4s ease;
}

.bento-card.warm::before {
  background: var(--warning);
  top: -40%;
  right: -35%;
}

.bento-card.sage::before {
  background: var(--primary);
  bottom: -45%;
  left: -35%;
}

.bento-card .num {
  color: var(--num-color);
  font:
    900 4rem / 1 "Outfit",
    sans-serif;
}

.bento-card h3 {
  margin: 8px 0;
  font:
    800 2.2rem / 0.95 "Outfit",
    sans-serif;
}

.bento-card p {
  margin: 0;
  color: var(--bento-p-color);
  line-height: 1.45;
  transition: color 0.3s ease;
}

.progress {
  margin-top: auto;
  height: 8px;
  border-radius: 999px;
  background: var(--progress-bg);
}

.progress i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--warning);
}

.score-chip {
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--score-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  transition: border-color 0.3s ease;
}

.final-cta {
  margin-top: 24px;
  border-radius: 38px;
  border: 1px solid var(--card-border);
  background: var(--card);
  text-align: center;
  padding: clamp(50px, 8vw, 100px) 20px;
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}

.final-cta h2 {
  margin: 0 0 22px;
  font:
    900 clamp(2.4rem, 8vw, 5.2rem) / 0.95 "Outfit",
    sans-serif;
  letter-spacing: -0.03em;
}

/* ====== CREATOR SCENE ====== */

.cr-content {
  padding: 6px 14px 80px;
}

.cr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cr-site-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-favicon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.cr-site-name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: var(--text);
}
.cr-site-sub {
  margin: 0;
  font-size: 0.58rem;
  color: var(--gray-400);
}
.cr-period {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--disabled-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.cr-readers-card {
  background: var(--surface-alpha);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.cr-card-label {
  margin: 0 0 4px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}
.cr-readers-value {
  margin: 0 0 4px;
  font:
    900 2rem / 1 "Outfit",
    sans-serif;
  color: var(--text);
  letter-spacing: -0.03em;
}
.cr-trend {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cr-trend-text {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
}

.cr-reward {
  background: var(--primary);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.cr-reward-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.cr-reward-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-primary);
  opacity: 0.8;
}
.cr-reward-badge {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--on-primary);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 2px 7px;
}
.cr-reward-amount {
  margin: 0 0 10px;
  font:
    900 2.2rem / 1 "Outfit",
    sans-serif;
  color: var(--on-primary);
  letter-spacing: -0.03em;
}
.cr-reward-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cr-reward-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.cr-reward-fill {
  height: 100%;
  background: var(--on-primary);
  border-radius: 999px;
}
.cr-reward-pct {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--on-primary);
  opacity: 0.8;
}
.cr-payout-note {
  margin: 0;
  font-size: 0.6rem;
  color: var(--on-primary);
  opacity: 0.75;
}

.cr-top-reads {
  background: var(--surface-alpha);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
}
.cr-top-label {
  margin: 0 0 6px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}
.cr-read-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.cr-read-title {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-read-count {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.cr-sep {
  height: 1px;
  background: var(--ic-sep);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .hero-carousel {
    padding-top: 20px;
    padding-right: 0;
  }
  .hero-phone-wrap {
    margin-top: 10px;
  }
  .bento-split {
    grid-template-columns: 1fr;
  }
}
