/* ==========================================================================
   TellMeMore Ecosystem — Stealth Deep Azure & Cinematic Dark Theme
   Inspired by AI Cognitive Profiling UI
   Bilingual (RU/EN), Interactive AI Inspector, Dark & Light Palettes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== THEME VARIABLES ==================== */
[data-theme="dark"] {
  --bg-page: #04060a;
  --bg-surface: #090d16;
  --bg-card: rgba(13, 18, 30, 0.85);
  --bg-card-hover: rgba(18, 25, 42, 0.95);
  --bg-card-inner: #0b101c;
  --bg-input: #111726;
  --bg-glass: rgba(5, 7, 12, 0.82);

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-blue: rgba(59, 130, 246, 0.35);
  --border-blue-bright: rgba(96, 165, 250, 0.8);

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-dark: #1d4ed8;
  --accent-blue-subtle: rgba(59, 130, 246, 0.12);
  --accent-blue-glow: rgba(59, 130, 246, 0.25);

  --text-title: #ffffff;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #334155;

  --btn-pill-bg: #ffffff;
  --btn-pill-text: #04060a;
  --btn-pill-hover: #e2e8f0;

  --shadow-main: 0 20px 48px -10px rgba(0, 0, 0, 0.7);
  --shadow-blue-glow: 0 0 40px -10px rgba(37, 99, 235, 0.25);
  --top-ambient-glow: radial-gradient(ellipse 70% 380px at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-card-inner: #f1f5f9;
  --bg-input: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border: rgba(203, 213, 225, 0.85);
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-blue: rgba(37, 99, 235, 0.35);
  --border-blue-bright: rgba(37, 99, 235, 0.7);

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-dark: #1e40af;
  --accent-blue-subtle: rgba(37, 99, 235, 0.08);
  --accent-blue-glow: rgba(37, 99, 235, 0.15);

  --text-title: #090d16;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --btn-pill-bg: #090d16;
  --btn-pill-text: #ffffff;
  --btn-pill-hover: #1e293b;

  --shadow-main: 0 16px 36px -12px rgba(15, 23, 42, 0.08);
  --shadow-blue-glow: 0 0 35px -8px rgba(37, 99, 235, 0.12);
  --top-ambient-glow: radial-gradient(ellipse 70% 350px at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

/* ==================== GLOBAL RESETS ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: var(--top-ambient-glow);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.blue-text {
  color: var(--accent-blue);
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text-title);
}

.brand-eye-icon {
  width: 26px;
  height: 26px;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-eye-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-menu a {
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-title);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.nav-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue-subtle);
  border: 1px solid var(--border-blue);
  color: var(--accent-blue);
  margin-left: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language selector */
.lang-toggle-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--text-title);
  color: var(--bg-page);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Theme toggle */
.theme-icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-icon-btn:hover {
  color: var(--text-title);
  border-color: var(--border-blue);
}

/* GitHub Pill Button (White pill on dark) */
.btn-github-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-pill-bg);
  color: var(--btn-pill-text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.btn-github-pill:hover {
  background: var(--btn-pill-hover);
  transform: translateY(-1px);
}

.btn-github-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==================== BUTTONS ==================== */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-pill-bg);
  color: var(--btn-pill-text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-pill-primary:hover {
  background: var(--btn-pill-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-title);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-pill-ghost:hover {
  border-color: var(--border-blue);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-pill-ghost {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-title);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-pill-ghost:hover {
  background: #f8fafc;
  border-color: var(--accent-blue);
}

.play-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
}

/* ==================== HERO SECTION (3-COLUMN TRIPTYCH) ==================== */
.hero-section {
  padding: 130px 0 70px;
  position: relative;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(290px, 1.1fr) minmax(280px, 1fr);
  grid-gap: 28px;
  align-items: center;
}

.hero-layout-grid > * {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-main-title {
  font-size: clamp(2.2rem, 2.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-main-desc {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 440px;
}

/* Center Visual: The Faces with glowing blue slash lines */
.hero-center-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.faces-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: #04060a;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .faces-frame {
  background: #f1f5f9;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1), 0 0 25px rgba(37, 99, 235, 0.15);
}

.faces-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.faces-frame:hover .faces-img {
  transform: scale(1.02);
}

.faces-sub-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.hero-main-desc {
  font-size: 1.06rem;
  color: var(--text-body);
  line-height: 1.58;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-platforms-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.platform-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.platform-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.8;
}

/* ==================== RIGHT SIDE: INTERACTIVE AI INSPECTOR ==================== */
.ai-inspector-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main), var(--shadow-blue-glow);
  position: relative;
  transition: var(--transition);
}

.ai-inspector-card:hover {
  border-color: var(--border-blue-bright);
}

/* Inspector Tabs (Switch between Chat Analysis & Voice Whisperer) */
.inspector-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.inspector-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.inspector-tab-btn.active {
  background: var(--bg-card-inner);
  color: var(--text-title);
  border-color: var(--border-blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.inspector-tab-btn:hover:not(.active) {
  color: var(--text-title);
}

/* Chat Message Bubble in Widget */
.chat-inspector-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.chat-bubble-content {
  flex: 1;
}

.chat-msg-text {
  font-size: 0.88rem;
  color: var(--text-title);
  line-height: 1.45;
  margin-bottom: 4px;
}

.chat-msg-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  display: block;
}

/* Breakdown Analysis Box */
.inspector-breakdown-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-title);
}

.breakdown-header svg {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
}

/* Metric Bars */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.metric-row:last-child {
  margin-bottom: 0;
}

.metric-label {
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
}

.metric-bar-bg {
  flex: 1;
  height: 6px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.metric-bar-fill {
  height: 100%;
  background: var(--accent-blue);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.metric-pct {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-title);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

/* Target & Strategic Outcome Card */
.inspector-goal-card {
  background: var(--accent-blue-subtle);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.inspector-goal-card:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent-blue);
}

.goal-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brain-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 16px;
  flex-shrink: 0;
}

.goal-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.goal-desc {
  font-size: 0.82rem;
  color: var(--text-title);
  font-weight: 500;
}

.goal-chevron {
  color: var(--accent-blue);
  font-size: 14px;
}

/* Voice Co-pilot mode view in widget */
.voice-inspector-view {
  display: none;
}

.voice-inspector-view.active {
  display: block;
}

.chat-inspector-view {
  display: block;
}

.chat-inspector-view.hidden {
  display: none;
}

/* ==================== COMMON SECTIONS ==================== */
.section-wrapper {
  padding: 90px 0 50px;
}

.section-head-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-blue-subtle);
  border: 1px solid var(--border-blue);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-h2 {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.section-p-sub {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ==================== PHILOSOPHY 4 PILLARS ==================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.philosophy-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}

.philosophy-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.4);
}

.philosophy-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-blue-subtle);
  border: 1px solid var(--border-blue);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}

.philosophy-item-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.philosophy-item-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==================== PRODUCTS SHOWCASE ==================== */
.product-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-main);
  transition: var(--transition);
}

.product-showcase-card:hover {
  border-color: var(--border-blue);
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 40px;
  align-items: center;
}

.product-showcase-card.reverse .product-showcase-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-showcase-grid > * {
  min-width: 0;
  max-width: 100%;
}

.product-text-side {
  min-width: 0;
  max-width: 100%;
}

.product-mockup-side {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.product-showcase-card.reverse .product-text-side {
  order: 2;
}

.product-showcase-card.reverse .product-mockup-side {
  order: 1;
}

.product-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue-subtle);
  border: 1px solid var(--border-blue);
  color: var(--accent-blue);
}

.platform-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.product-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.58;
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  margin-bottom: 28px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.45;
}

.feature-check-icon {
  color: var(--accent-blue);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Product Mockups */
.cyber-mockup-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.mockup-header-bar {
  background: var(--bg-input);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
}

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mockup-body-area {
  padding: 20px;
}

/* Product Gallery Frame & Interactive Switchers */
.product-gallery-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-blue);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.12);
  transition: var(--transition);
}

.product-gallery-frame:hover {
  border-color: var(--accent-blue);
}

.gallery-tabs-toolbar {
  background: var(--bg-input);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-tabs-toolbar::-webkit-scrollbar {
  display: none;
}

.gallery-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;
}

.gallery-tab-btn {
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-tab-btn:hover {
  color: var(--text-title);
  border-color: var(--border-blue);
  background: rgba(59, 130, 246, 0.08);
}

.gallery-tab-btn.active {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .gallery-tab-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .gallery-tab-btn:hover {
  background: #f8fafc;
  border-color: var(--accent-blue);
}

[data-theme="light"] .gallery-tab-btn.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.gallery-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 340px;
  background: #020408;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
  user-select: none;
}

[data-theme="light"] .gallery-viewport {
  background: #f1f5f9;
}

.gallery-screenshot-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
  padding: 4px;
}

.gallery-viewport:hover .gallery-screenshot-img {
  transform: scale(1.015);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 15, 25, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #e2e8f0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

[data-theme="light"] .gallery-zoom-hint {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-viewport:hover .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-footer-bar {
  background: var(--bg-card-inner);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.gallery-desc-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

/* Lightbox Modal */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.image-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.2);
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.lightbox-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* ==================== ROADMAP TIMELINE ==================== */
.roadmap-timeline-box {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.roadmap-timeline-box::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 20px;
  width: 2px;
  background: var(--border);
}

.timeline-entry {
  position: relative;
  padding-left: 56px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 2px solid var(--accent-blue);
  z-index: 2;
}

.timeline-entry.done .timeline-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
}

.timeline-entry.active .timeline-dot {
  background: var(--accent-blue-hover);
  box-shadow: 0 0 14px var(--accent-blue);
}

.timeline-card-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: var(--transition);
}

.timeline-card-content:hover {
  border-color: var(--border-blue);
  background: var(--bg-card-hover);
}

.timeline-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-quarter-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.timeline-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-card-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 60px 0 36px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links-row a:hover {
  color: var(--text-title);
}

/* ==================== RESPONSIVE RULES ==================== */
/* 1. Moderate Laptops (1080px to 1240px): Compact 3 columns */
@media (max-width: 1240px) {
  .hero-layout-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.05fr) minmax(260px, 1fr);
    grid-gap: 20px;
  }
  .hero-main-title {
    font-size: 2.35rem;
  }
  .hero-main-desc {
    font-size: 0.92rem;
  }
  .ai-inspector-card {
    padding: 16px;
  }
}

/* 2. Tablets / Small Laptops (769px to 1079px): Balanced 2-column layout */
@media (max-width: 1079px) {
  .hero-layout-grid {
    grid-template-columns: 1fr 1fr;
    grid-gap: 32px;
    align-items: start;
  }
  .hero-left-col {
    grid-column: 1 / 2;
  }
  .hero-center-visual {
    grid-column: 2 / 3;
    max-width: 100%;
    margin-bottom: 16px;
  }
  .ai-inspector-card {
    grid-column: 1 / 3;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-main-title {
    font-size: 2.4rem;
  }
}

/* 2.5 Tablets / Small Screens (up to 1024px): Stack product showcase cleanly */
@media (max-width: 1024px) {
  .product-showcase-grid,
  .product-showcase-card.reverse .product-showcase-grid {
    grid-template-columns: 1fr;
    grid-gap: 30px;
  }
  .product-showcase-card.reverse .product-text-side {
    order: 1;
  }
  .product-showcase-card.reverse .product-mockup-side {
    order: 2;
  }
  .product-showcase-card {
    padding: 30px;
  }
}

/* 3. Mobile (< 768px): Clean 1-column mobile flow */
@media (max-width: 768px) {
  .hero-section {
    padding: 95px 0 50px;
  }
  .hero-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .hero-left-col,
  .hero-center-visual,
  .ai-inspector-card {
    width: 100%;
    max-width: 100%;
  }
  .hero-main-title {
    font-size: 2.15rem;
    line-height: 1.15;
  }
  .hero-btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-btn-row .btn-pill-primary,
  .hero-btn-row .btn-pill-ghost {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .nav-menu {
    display: none;
  }
  .product-showcase-grid,
  .product-showcase-card.reverse .product-showcase-grid {
    grid-template-columns: 1fr;
    grid-gap: 24px;
  }
  .product-showcase-card.reverse .product-text-side {
    order: 1;
  }
  .product-showcase-card.reverse .product-mockup-side {
    order: 2;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .product-showcase-card {
    padding: 22px;
  }
  .gallery-viewport {
    height: 250px;
  }
  .gallery-tabs-nav {
    gap: 3px;
  }
  .gallery-tab-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links-row {
    flex-wrap: wrap;
    gap: 14px;
  }
}
