/* ═══════════════════════════════════════════════════
   KaKeKiKoKu — kakekikoku.com
   3 chromatic themes + neutral. Mobile-first.
   ═══════════════════════════════════════════════════ */

/* ── Local Fonts ── */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-800.woff2') format('woff2'); }

/* ── Reset & Base ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── Theme: Neutral (nav, footer, transitions) ── */

.theme-neutral {
  background: #1a1a2e;
  color: #e0e0e0;
}

.theme-neutral a { color: #a0c4ff; }
.theme-neutral a:hover { color: #fff; }

/* ── Theme: High Contrast (dark, technical) ── */

.theme-hc {
  background: #0a0a0a;
  color: #f0f0f0;
}

.theme-hc .section-accent { color: #4da6ff; }
.theme-hc a { color: #4da6ff; }
.theme-hc a:hover { color: #6ec6ff; }

/* ── Theme: Light (warm, creative) ── */

.theme-light {
  background: #f8f6f3;
  color: #2c2c2c;
}

.theme-light .section-accent { color: #2a7ae2; }
.theme-light a { color: #2a7ae2; }
.theme-light a:hover { color: #1a5ab8; }

/* ── Theme: Rose (personal, warm pink) ── */

.theme-rose {
  background: #fdf2f6;
  color: #22101a;
}

.theme-rose .section-accent { color: #e04888; }
.theme-rose a { color: #e04888; }
.theme-rose a:hover { color: #d03878; }

/* ── Typewriter cursor ── */

.voice-typewriter span::after {
  content: '|';
  animation: blink-cursor 0.7s step-end infinite;
  margin-left: 1px;
  font-weight: 300;
  opacity: 0.7;
}

.voice-typewriter.done span::after {
  display: none;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* ── Emphasis ── */

.emphasis {
  font-style: normal;
  font-weight: 700;
}

.theme-hc .emphasis { color: #4da6ff; }
.theme-light .emphasis { color: #2a7ae2; }
.theme-rose .emphasis { color: #e04888; }
.hero .emphasis { color: #4da6ff; }

/* ── Screenshot frames ── */

.screenshot-frame {
  margin-top: 1.25rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  cursor: pointer;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.screenshot-frame:hover img {
  opacity: 0.92;
}

.screenshot-frame::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v3m0 0v3m0-3h3m-3 0H7'/%3E%3C/svg%3E");
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.screenshot-frame:hover::after {
  opacity: 1;
}

.theme-hc .screenshot-frame {
  border-color: rgba(77, 166, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-light .screenshot-frame,
.feature-card .screenshot-frame {
  border-color: rgba(42, 122, 226, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.theme-rose .screenshot-frame {
  border-color: rgba(224, 72, 136, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.screenshot-frame--bar img {
  width: 100%;
  height: auto;
}

/* ── Lightbox overlay ── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s;
}

.lightbox-overlay.visible {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── Layout ── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0;
}

/* ── Brand transition notice ── */

.transition-notice {
  padding: 0.65rem 1.5rem;
  background: #eef4fb;
  color: #182536;
  border-bottom: 1px solid rgba(24, 37, 54, 0.16);
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  line-height: 1.5;
  text-align: center;
}

.transition-notice strong {
  font-weight: 700;
}

.transition-notice a {
  color: #1e5fae;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.transition-notice a:hover {
  color: #123e75;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -0.03em;
}

/* Brand mark: each syllable is a visual block while the HTML name remains
   one continuous string. The relative gap scales with the local logo size. */
.logo .logo-syllable--ka { color: #4da6ff; }
.logo .logo-syllable--ke { color: #c4874d; }
.logo .logo-syllable--ki { color: #829b5b; }
.logo .logo-syllable--ko { color: #4f908b; }
.logo .logo-syllable--ku { color: #aeb8c3; }
.logo .logo-syllable + .logo-syllable { margin-inline-start: 0.12em; }

.logo--footer {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: inherit;
  vertical-align: baseline;
}

.nav-links {
  display: flex;
  gap: 0.4rem 1.2rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: #909090;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #4da6ff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #909090;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Nav "More" dropdown ── */

.nav-more {
  position: relative;
  list-style: none;
}

.nav-more-toggle {
  background: none;
  border: none;
  color: #909090;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.nav-more-toggle:hover { color: #fff; }

.nav-more-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  line-height: 1;
}

.nav-more.open .nav-more-arrow {
  transform: rotate(180deg);
}

.nav-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0;
  margin: 0.5rem 0 0 0;
  min-width: 160px;
  display: none;
  list-style: none;
  z-index: 101;
}

.nav-more.open .nav-more-menu {
  display: block;
}

.nav-more-menu li {
  list-style: none;
}

.nav-more-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #c0c0c0;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-more-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-more-menu a.active {
  color: #4da6ff;
}

.nav-more-toggle.active {
  color: #4da6ff;
}

.nav-more-menu li.nav-more-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

/* ── OS tabs (per-OS content in /docs/integrations/* annexes) ── */
.os-tabs {
  margin: 1rem 0 1.5rem;
  border: 1px solid #e0dfdb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.os-tab-bar {
  display: flex;
  background: #f8f7f4;
  border-bottom: 1px solid #e0dfdb;
}
.os-tab-btn {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  border-right: 1px solid #e0dfdb;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.os-tab-btn:hover {
  background: #f1f0ec;
  color: #2d2d2d;
}
.os-tab-btn[aria-selected="true"] {
  background: #fff;
  color: #4da6ff;
  box-shadow: inset 0 -2px 0 #4da6ff;
}
.os-tab-btn:focus-visible {
  outline: 2px solid #4da6ff;
  outline-offset: -2px;
}
.os-tab-panel {
  padding: 1.2rem 1.4rem;
  color: #2d2d2d;
  line-height: 1.7;
}
.os-tab-panel[hidden] {
  display: none;
}
.os-tab-panel > :first-child {
  margin-top: 0;
}
.os-tab-panel > :last-child {
  margin-bottom: 0;
}
.os-tab-panel p { margin: 0.6rem 0 1rem; }
.os-tab-panel code { font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.88rem; background: #eeedea; padding: 0.15em 0.4em; border-radius: 4px; }
.os-tab-panel pre { background: #eeedea; border: 1px solid #ddd; border-radius: 6px; padding: 1rem 1.2rem; overflow-x: auto; margin: 0.6rem 0; }
.os-tab-panel pre code { background: transparent; padding: 0; font-size: 0.87rem; line-height: 1.6; }
.os-tab-panel ul, .os-tab-panel ol { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
.os-tab-panel li { margin-bottom: 0.4rem; }
@media (max-width: 600px) {
  .os-tab-bar { overflow-x: auto; }
  .os-tab-btn { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
  .os-tab-panel { padding: 1rem 1rem; }
}

/* ── Hero ── */

.hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 0 2rem;
  background: #050510;
  color: #f0f0f0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(77, 166, 255, 0.08) 0%, rgba(77, 166, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.hero-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.2rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.hero-heading-text {
  text-align: left;
}

.hero-heading h1 {
  margin-bottom: 0.6rem;
  text-align: left;
}

.hero-heading .hero-description {
  margin: 0;
  text-align: left;
  font-size: 1.2rem;
}

.hero-logo {
  width: clamp(220px, 28vw, 340px);
  flex-shrink: 0;
  filter: drop-shadow(0 0 40px rgba(77, 166, 255, 0.15));
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #4da6ff;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, #4da6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 780px;
  margin: 0 auto 1.2rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.hero-carousel-caption {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin: -0.5rem 0 1.2rem;
  letter-spacing: 0.01em;
}

.hero-carousel {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.4rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}

.carousel-track span {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.carousel-track span:first-child {
  color: rgba(77, 166, 255, 0.7);
  font-weight: 600;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-voices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.voice-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
}

.voice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.voice-hc, .voice-light, .voice-rose { color: #666; }
.voice-item .voice-icon { color: #666; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: #4da6ff;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: #6ec6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 166, 255, 0.25);
  color: #000;
}

.cta-note {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  color: #707070;
}

.cta-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #4da6ff;
  opacity: 0.7;
}

.cta-accessible {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #7ecba1;
  opacity: 0.85;
}

.cta-accessible a {
  color: #7ecba1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-accessible a:hover {
  color: #a5e6c0;
}

/* ── Platform badges ── */

.platform-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.platform-icons-sm {
  margin-top: 0.75rem;
  gap: 0.75rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #a0a0a0;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.platform-badge small {
  font-size: 0.65rem;
  opacity: 0.6;
}

.muted-badge {
  opacity: 0.45;
}

/* ── Section badges ── */

.section-badge {
  display: block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin: 0 auto 1rem;
}

.badge-hc {
  background: rgba(77, 166, 255, 0.12);
  color: #4da6ff;
}

.badge-light {
  background: rgba(42, 122, 226, 0.08);
  color: #2a7ae2;
}

.badge-rose {
  background: rgba(224, 72, 136, 0.1);
  color: #e04888;
}

.section-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 1rem;
  opacity: 0.8;
  text-align: center;
}

/* ── Divider gradients ── */

.divider-gradient {
  height: 1px;
  margin: 1.5rem 0 3rem;
}

.divider-hc { background: linear-gradient(90deg, transparent, #4da6ff33, transparent); }
.divider-light { background: linear-gradient(90deg, transparent, #2a7ae233, transparent); }
.divider-rose { background: linear-gradient(90deg, transparent, #e0488833, transparent); }

/* ── Block icons ── */

.block-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.inline-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.inline-heading .block-icon {
  margin-bottom: 0;
}

.inline-heading h3 {
  margin: 0;
}

.block-icon svg {
  width: 22px;
  height: 22px;
}

.icon-hc {
  background: rgba(77, 166, 255, 0.1);
  color: #4da6ff;
}

.icon-light {
  background: rgba(42, 122, 226, 0.08);
  color: #2a7ae2;
}

.icon-rose {
  background: rgba(224, 72, 136, 0.08);
  color: #e04888;
}

/* ── Content blocks (problems) ── */

.content-block {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.content-block:last-child { margin-bottom: 0; }

/* ── Section headings ── */

.section-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-text {
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 0.75rem;
}

.section-text.muted {
  opacity: 0.6;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── Feature cards (solutions) ── */

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.25s;
}

.theme-light .feature-card {
  background: #fff;
  border: 1px solid #e8e4df;
}

.theme-light .feature-card:hover {
  border-color: #c0d4f0;
  box-shadow: 0 8px 32px rgba(42, 122, 226, 0.08);
  transform: translateY(-2px);
}

.theme-rose .feature-card,
.feature-card.card-rose {
  background: #fff5f8;
  border: 1px solid #f0dce4;
}

.theme-rose .feature-card:hover,
.feature-card.card-rose:hover {
  border-color: #e8a8c8;
  box-shadow: 0 8px 32px rgba(224, 72, 136, 0.08);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.85;
}

/* ── Expandable details (level 2) ── */

details.expandable {
  margin-top: 1.25rem;
  border-radius: 6px;
  overflow: hidden;
}

details.expandable summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  list-style: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

details.expandable summary:hover { opacity: 1; }
details.expandable summary::-webkit-details-marker { display: none; }

details.expandable summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.theme-hc details.expandable summary::before {
  background: rgba(77, 166, 255, 0.15);
  color: #4da6ff;
}

.theme-light details.expandable summary::before,
.feature-card details.expandable summary::before {
  background: rgba(42, 122, 226, 0.1);
  color: #2a7ae2;
}

.theme-rose details.expandable summary::before {
  background: rgba(224, 72, 136, 0.1);
  color: #e04888;
}

details.expandable[open] summary::before {
  transform: rotate(45deg);
}

details.expandable .detail-content {
  padding: 0.75rem 0 0.5rem 1.9rem;
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* ── AI Quote Frame (used as visual in Problem 4) ── */

.ai-quote-frame {
  margin-top: 1.5rem;
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  background: rgba(77, 166, 255, 0.04);
  border: 1px solid rgba(77, 166, 255, 0.12);
  position: relative;
}
.ai-quote-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(77, 166, 255, 0.15);
  color: rgba(77, 166, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.ai-quote-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  margin: 0 0 0.8rem;
  padding: 0;
  border: none;
}
.ai-quote-author {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
}

/* ── Separator / Statement ── */

.statement {
  text-align: center;
  padding: 3rem 0 4rem;
}

.statement h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.statement-numbers {
  font-size: 1rem;
  font-weight: 600;
  color: #4da6ff;
  opacity: 0.5;
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* ── Paradigm shift ── */

.paradigm {
  position: relative;
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid #1a1a1a;
  overflow: hidden;
}

.particles-canvas,
.meteor-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora-canvas,
.motes-canvas,
.petals-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

#solutions > .container,
#solutions > .divider-gradient,
.theme-rose > .container,
.theme-rose > .divider-gradient {
  position: relative;
  z-index: 1;
}

.professional .container {
  position: relative;
  z-index: 1;
}

#problems > .container,
#problems > .divider-gradient {
  position: relative;
  z-index: 1;
}

.paradigm-icon {
  color: #4da6ff;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.paradigm h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  position: relative;
}

.paradigm h2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 250%;
  background: radial-gradient(ellipse, rgba(77, 166, 255, 0.15) 0%, rgba(77, 166, 255, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: thesis-pulse 4s ease-in-out infinite;
}

@keyframes thesis-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.paradigm p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.75;
  line-height: 1.8;
}

/* ── Bounded Blocks ── */

.bounded-blocks {
  padding: 5rem 0;
  background: #14110d;
  border-top: 1px solid rgba(210, 156, 92, 0.12);
  border-bottom: 1px solid rgba(120, 145, 110, 0.1);
  position: relative;
  overflow: hidden;
}

.bounded-blocks::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(201, 143, 72, 0.08), transparent 38%),
    linear-gradient(300deg, rgba(126, 155, 112, 0.07), transparent 42%);
  pointer-events: none;
}

.bounded-blocks-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge-bounded {
  background: rgba(201, 143, 72, 0.14);
  color: #d9a35f;
}

.bounded-blocks-copy h2 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #f4ead8;
  margin: 1.1rem 0 1.4rem;
}

.bounded-blocks-copy p {
  max-width: 590px;
  color: rgba(244, 234, 216, 0.74);
  font-size: 1.04rem;
  line-height: 1.78;
  margin-bottom: 1.1rem;
}

.bounded-blocks-note {
  border-left: 2px solid rgba(139, 174, 124, 0.72);
  padding-left: 1rem;
  color: #c9d6bf !important;
  font-weight: 600;
}

.bounded-blocks-link {
  margin-top: 0.55rem;
  background: #d59a54;
  color: #17110b;
  max-width: 100%;
  text-align: center;
  justify-content: center;
  white-space: normal;
}

.theme-hc .bounded-blocks-link {
  color: #17110b;
}

.bounded-blocks-link:hover {
  background: #ebb56f;
  color: #17110b;
  box-shadow: 0 8px 24px rgba(213, 154, 84, 0.22);
}

.theme-hc .bounded-blocks-link:hover {
  color: #17110b;
}

.bounded-blocks-visual {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(229, 181, 114, 0.18);
  background: #0d0d0f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.bounded-blocks-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.indie-counter {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4da6ff;
  opacity: 0.45;
  letter-spacing: 0.02em;
}

/* ── Final CTA ── */

.final-cta {
  padding: 5rem 0;
  border-top: 1px solid #1a1a1a;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.final-cta-sub {
  font-size: 1rem;
  color: #909090;
  margin-bottom: 2rem;
}

.cta-btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* ── Confession ── */

.confession {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.confession h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.confession p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.7;
}

/* ── Confessions (multi-card) ── */

.confessions {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.confessions h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-style: italic;
}

.confessions-intro {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2.5rem;
}

.confession-card {
  max-width: 740px;
  margin: 0 auto 2rem;
  padding: 1.8rem 2rem;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.confession-card:last-child {
  margin-bottom: 0;
}

.confession-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.8rem;
  font-family: serif;
  font-style: italic;
}

.confession-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
}

.confession-card p:last-child {
  margin-bottom: 0;
}

.confession-card strong {
  color: rgba(255, 255, 255, 0.9);
}

.confession-card .emphasis {
  color: rgba(77, 166, 255, 0.9);
}

/* ── Testimonial ── */

.testimonial {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-mark {
  font-size: 5rem;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  color: #4da6ff;
  opacity: 0.25;
  margin-bottom: -1.5rem;
}

.testimonial blockquote {
  font-size: 1.2rem;
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  color: #b0b0b0;
}

.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da6ff, #6ec6ff);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.testimonial-author cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: #d0d0d0;
}

.author-role {
  display: block;
  font-size: 0.8rem;
  color: #707070;
}

.ai-testimonial-disclaimer {
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 1rem 1.5rem 2rem;
  margin: 0;
}

/* ── Footer ── */

.site-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: #606060;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #c0c0c0; }

.footer-copy { color: #404040; }

.footer-trademark {
  display: block;
  font-size: 0.65rem;
  color: #353535;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* ── Reveal animations ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  animation: fadeIn 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Knowledge types diagram ── */

.knowledge-types {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.knowledge-type {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: rgba(42, 122, 226, 0.06);
  border: 1px solid rgba(42, 122, 226, 0.12);
}

.knowledge-type svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #2a7ae2;
}

.knowledge-type strong {
  display: block;
  font-size: 0.9rem;
  color: #2a7ae2;
}

.knowledge-type span {
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ── Z-Layout Flex Blocks ── */

.solutions-z {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.z-item {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.z-item.z-reversed {
  flex-direction: row-reverse;
}

.z-item.z-item--stacked {
  align-items: start;
}

.z-text {
  flex: 1;
}

.z-image {
  flex: 1.25;
}

.z-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.8;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .z-item, .z-item.z-reversed {
    flex-direction: column;
    gap: 2rem;
  }

  .bounded-blocks-grid {
    grid-template-columns: 1fr;
  }

  .bounded-blocks-copy p {
    max-width: 720px;
  }

  .bounded-blocks-visual {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .knowledge-types {
    flex-direction: column;
  }
}

/* ── Responsive ── */

@media (min-width: 640px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .bounded-blocks { padding: 3.5rem 0; }

  .hero-heading {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-heading-text {
    text-align: center;
  }

  .hero-heading h1 {
    text-align: center;
  }

  .hero-heading .hero-description {
    text-align: center;
  }

  .hero-logo {
    width: 200px;
  }

  .nav-toggle { display: block; }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Mobile: flatten the "More" dropdown into the vertical list */
  .nav-more-toggle { display: none; }

  .nav-more-menu {
    position: static;
    display: block;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }

  .nav-more-menu a {
    padding: 0.6rem 0;
    color: #909090;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-more-menu li.nav-more-divider {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  section { padding: 2.5rem 0; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .feature-card { padding: 1.5rem; }
}

/* ── Added Micro-Animations ── */

.hover-spotlight-section { position: relative; }
.spotlight { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.5s ease; }

.theme-hc .glow-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; }
.theme-hc .glow-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; padding: 1px; background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(77, 166, 255, 0.3), transparent 40%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 2; }
.theme-hc .glow-card:hover::before { opacity: 1; }
.theme-hc .glow-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(77, 166, 255, 0.06), transparent 40%); pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 0; }
.theme-hc .glow-card:hover::after { opacity: 1; }
.theme-hc .glow-card > * { position: relative; z-index: 1; }

.stagger-container.visible .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-item { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.3s; }
.stagger-item:nth-child(3) { transition-delay: 0.5s; }

.typing-cursor { display: inline-block; width: 8px; height: 1.1em; background-color: #4da6ff; margin-left: 4px; vertical-align: text-bottom; animation: blink-cursor 1s step-end infinite; opacity: 0.7; }

/* ── Comparison Table ── */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.comparison-table th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comparison-table .col-without { width: 38%; }
.comparison-table .col-with { width: 62%; }

.comparison-table .col-without {
  color: #777;
  background: rgba(255,255,255,0.03);
}

.comparison-table .col-with {
  color: #4da6ff;
  background: rgba(77, 166, 255, 0.06);
  border-bottom-color: rgba(77, 166, 255, 0.2);
}

.comparison-table tbody {
  font-size: 0.92rem;
  line-height: 1.6;
}

.comparison-table td {
  padding: 16px 24px;
  vertical-align: top;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .td-without {
  color: #666;
}

.comparison-table .td-with {
  color: #ccc;
  background: rgba(77, 166, 255, 0.03);
}

.comparison-table .icon-x {
  margin-right: 10px;
  margin-top: 4px;
  float: left;
}

.comparison-table .icon-check {
  margin-right: 10px;
  margin-top: 4px;
  float: left;
  transition: stroke 0.2s;
}

.comparison-table tbody tr {
  transition: background 0.2s;
}

.comparison-table tbody tr:hover {
  background: rgba(77, 166, 255, 0.06);
}

.comparison-table tbody tr:hover .icon-check {
  stroke: #34d399;
}

.comparison-table td span {
  display: block;
  overflow: hidden;
}

@media (max-width: 600px) {
  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════
   Section image dividers — drifting spotlight + stars
   ═══════════════════════════════════════════════════ */

.divider-spotlight {
  position: absolute;
  top: -35%;
  left: -35%;
  width: 170%;
  height: 170%;
  pointer-events: none;
  background: radial-gradient(circle 320px at center, rgba(255,255,255,0.80), rgba(255,255,255,0.30) 40%, transparent 75%);
  mix-blend-mode: screen;
  will-change: transform;
}

.divider-spotlight.drift-a {
  animation: spotlightDriftA 9s ease-in-out infinite alternate;
}

@keyframes spotlightDriftA {
  0%   { transform: translate(-24%, -16%); }
  50%  { transform: translate(20%, 22%); }
  100% { transform: translate(26%, -12%); }
}

.divider-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .divider-spotlight {
    animation: none;
  }
}
