/* ==========================================================================
   Dexel — Polar Design System Foundations (css/pages/home.css)
   Phase 1: Foundation Tokens, Typography, Strict Monochrome Reset, Zero Glow
   Phase 2: Navigation & Hero Section (Grounded Discord Interaction Card)
   ========================================================================== */

/* 1. Scoped Polar Custom Properties (Strict #090909 & #111111 Dominant System) */
:root {
  --polar-bg: #090909;
  --polar-surface: #111111;
  --polar-surface-elevated: #151515;
  --polar-surface-hover: #171717;
  --polar-border: #1C1C1C;
  --polar-border-subtle: #161616;
  --polar-border-strong: #262626;
  --polar-text: #FFFFFF;
  --polar-text-secondary: #D4D4D4;
  --polar-text-muted: #737373;
  --polar-text-faint: #404040;
  --polar-pill-bg: #FFFFFF;
  --polar-pill-text: #090909;
  --polar-font-sans: 'InterVariable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --polar-font-display: 'InterDisplay', 'InterVariable', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --polar-font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}

[data-theme="light"] {
  --polar-bg: #FFFFFF;
  --polar-surface: #F5F5F5;
  --polar-surface-elevated: #EFEFEF;
  --polar-surface-hover: #E5E5E5;
  --polar-border: #E5E5E5;
  --polar-border-subtle: #EEEEEE;
  --polar-border-strong: #D4D4D4;
  --polar-text: #111111;
  --polar-text-secondary: #737373;
  --polar-text-muted: #8C8C8C;
  --polar-text-faint: #D4D4D4;
  --polar-pill-bg: #111111;
  --polar-pill-text: #FFFFFF;
}

/* 2. Global Document Flow Reset */
html:has(body.polar-home) {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background-color: #090909;
}

body.polar-home {
  background-color: var(--polar-bg) !important;
  color: var(--polar-text) !important;
  font-family: var(--polar-font-sans);
  min-height: 100vh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Polar OpenType Stylistic Sets & Typography Engine */
body.polar-home h1,
body.polar-home h2,
body.polar-home h3,
body.polar-home h4,
body.polar-home h5,
body.polar-home h6 {
  font-family: var(--polar-font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-feature-settings: 'ss07' 1, 'ss08' 1, 'liga' 0;
}

.polar-hero-title,
.polar-chapter-title,
.polar-chapter-tag,
.polar-wireframe-num,
.polar-testimonials-label,
.polar-featured-quote,
.polar-card-quote,
.polar-pricing-amount,
.polar-pricing-tier-name,
.polar-pricing-metric-val {
  font-feature-settings: 'ss07' 1, 'ss08' 1, 'liga' 0;
}

.polar-hero-title,
.polar-chapter-title,
.polar-summary-title,
.polar-cta-title {
  text-transform: lowercase;
}

/* 3. Navigation Bar Integration */
body.polar-home .nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--polar-bg) !important;
  border-bottom: 1px solid var(--polar-border) !important;
  padding: var(--spacing-sm) 0 !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.polar-home .brand span {
  font-family: var(--polar-font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--polar-text) !important;
}

body.polar-home .brand-logo {
  border-radius: 4px;
}

body.polar-home .nav-link {
  color: var(--polar-text-secondary) !important;
  transition: color 0.15s ease;
}

body.polar-home .nav-link:hover,
body.polar-home .nav-link.active {
  color: var(--polar-text) !important;
}

/* Nav Action Buttons */
body.polar-home .btn-primary-sm {
  background-color: var(--polar-pill-bg) !important;
  color: var(--polar-pill-text) !important;
  border: 1px solid var(--polar-pill-bg) !important;
  border-radius: 9999px !important;
  font-family: var(--polar-font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

body.polar-home .btn-primary-sm:hover {
  opacity: 0.88;
}

body.polar-home .btn-secondary-sm {
  background-color: transparent !important;
  color: var(--polar-text) !important;
  border: 1px solid var(--polar-border) !important;
  border-radius: 9999px !important;
  font-family: var(--polar-font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.polar-home .btn-secondary-sm:hover {
  border-color: var(--polar-border-strong) !important;
  background-color: var(--polar-surface) !important;
}

body.polar-home .theme-toggle-btn {
  color: var(--polar-text-secondary);
  border-color: var(--polar-border);
  border-radius: 9999px;
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.polar-home .theme-toggle-btn:hover {
  color: var(--polar-text);
  border-color: var(--polar-border-strong);
}

/* Mobile Drawer Integration */
body.polar-home .mobile-nav-drawer {
  background-color: var(--polar-bg) !important;
  border-left: 1px solid var(--polar-border) !important;
}

body.polar-home .mobile-nav-header {
  border-bottom: 1px solid var(--polar-border) !important;
}

body.polar-home .mobile-brand-wrapper span {
  font-family: var(--polar-font-sans);
  font-weight: 600;
  color: var(--polar-text) !important;
}

body.polar-home .mobile-nav-link {
  color: var(--polar-text-secondary) !important;
}

body.polar-home .mobile-nav-link:hover,
body.polar-home .mobile-nav-link.active {
  color: var(--polar-text) !important;
  background-color: var(--polar-surface) !important;
}

/* 4. Polar Pill Buttons (Strict Monochrome) */
.btn-polar-primary {
  background-color: var(--polar-pill-bg);
  color: var(--polar-pill-text);
  border: 1px solid var(--polar-pill-bg);
  border-radius: 9999px;
  font-family: var(--polar-font-sans);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 20px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.1s ease;
  white-space: nowrap;
}

.btn-polar-primary:hover {
  opacity: 0.85;
}

.btn-polar-secondary {
  background-color: transparent;
  color: var(--polar-text);
  border: 1px solid var(--polar-border);
  border-radius: 9999px;
  font-family: var(--polar-font-sans);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 20px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.1s ease, background-color 0.1s ease;
  white-space: nowrap;
}

.btn-polar-secondary:hover {
  border-color: var(--polar-border-strong);
  background-color: var(--polar-surface-elevated);
}

/* 5. Polar Vector Icons (Custom Monochrome SVGs) */
.polar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* 6. Hero Section (Polar Style) */
.polar-hero-band {
  background-color: var(--polar-bg);
  padding: clamp(48px, 8vh, 88px) 0 clamp(64px, 10vh, 108px) 0;
  flex: 1 0 auto;
}

.polar-hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

/* Hero Intro Block */
.polar-hero-intro {
  margin-bottom: clamp(40px, 6vh, 64px);
}

.polar-hero-title {
  font-family: var(--polar-font-display);
  font-size: clamp(76px, 12vw, 120px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--polar-text);
  margin: 0 0 18px 0;
}

.polar-hero-subtitle {
  font-family: var(--polar-font-sans);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--polar-text-secondary);
  margin: 0 0 28px 0;
  max-width: 660px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.polar-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Split Showcase */
.polar-hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.polar-hero-card-col {
  width: 100%;
}

/* Realistic Discord Card Component */
.polar-discord-card {
  background-color: var(--polar-surface);
  border: 1px solid var(--polar-border);
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.polar-discord-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--polar-surface-elevated);
  border-bottom: 1px solid var(--polar-border-subtle);
  font-size: 13px;
}

.polar-channel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--polar-text);
  font-weight: 500;
}

.polar-channel-meta .polar-icon {
  color: var(--polar-text-secondary);
}

.polar-discord-messages {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.polar-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.polar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--polar-surface-elevated);
  border: 1px solid var(--polar-border);
  color: var(--polar-text);
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

.polar-avatar-bot {
  border-radius: 50% !important;
  object-fit: contain !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  background-color: #0c0c0c !important;
}

.polar-msg-content {
  flex: 1;
  min-width: 0;
}

.polar-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  line-height: 1.2;
}

.polar-author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--polar-text);
  letter-spacing: -0.01em;
}

.polar-bot-tag {
  font-family: var(--polar-font-sans);
  font-size: 10px;
  font-weight: 500;
  background-color: #242424;
  color: #E5E5E5;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.polar-msg-time {
  font-size: 11.5px;
  color: var(--polar-text-muted);
}

.polar-msg-text {
  font-size: 14px;
  line-height: 1.55;
  color: #D4D4D4;
}

.polar-msg-text strong {
  color: #FFFFFF;
  font-weight: 500;
}

.polar-msg-list {
  margin: 6px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polar-msg-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  color: #D4D4D4;
}

.polar-msg-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--polar-text-secondary);
}

.polar-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.polar-discord-btn {
  background-color: var(--polar-surface-elevated);
  color: var(--polar-text);
  border: 1px solid var(--polar-border);
  border-radius: 6px;
  font-family: var(--polar-font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
}

/* Right Summary Column */
.polar-hero-summary-col {
  display: flex;
  flex-direction: column;
}

.polar-summary-title {
  font-family: var(--polar-font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.028em;
  color: var(--polar-text);
  margin: 0 0 28px 0;
  max-width: 480px;
}

.polar-summary-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--polar-text-secondary);
  margin: 0 0 28px 0;
  max-width: 440px;
}

.polar-summary-label {
  font-family: var(--polar-font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--polar-text-muted);
  margin-bottom: 14px;
}

.polar-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.polar-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--polar-text-secondary);
  line-height: 1.4;
}

.polar-summary-item .polar-icon {
  color: var(--polar-text-muted);
}

.polar-summary-item span {
  color: #D4D4D4;
}

/* 7. Final Call to Action Band */
.polar-cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vh, 120px) 0;
  border-top: 1px solid var(--polar-border);
  background-color: var(--polar-bg);
  text-align: center;
}

.polar-cta-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.polar-cta-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polar-cta-title {
  font-family: var(--polar-font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--polar-text);
  margin: 0 0 32px 0;
  max-width: 820px;
}

.polar-cta-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--polar-text-secondary);
  margin: 0 0 32px 0;
  max-width: 520px;
}

.polar-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 8. Minimalist 4-Column Directory Footer (Polar Style) */
.polar-footer {
  border-top: 1px solid var(--polar-border);
  background-color: var(--polar-bg);
  padding: clamp(56px, 8vh, 88px) 0 clamp(40px, 6vh, 60px) 0;
  color: var(--polar-text-secondary);
  font-family: var(--polar-font-sans);
  font-size: 13.5px;
}

.polar-footer-container {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: clamp(48px, 6vw, 88px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.polar-footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.polar-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--polar-text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.polar-footer-brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.polar-footer-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--polar-text-muted);
  max-width: 280px;
  margin: 0;
}

.polar-footer-direct-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--polar-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.polar-footer-direct-link:hover {
  color: #FFFFFF;
}

.polar-footer-copy {
  font-size: 12px;
  color: var(--polar-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.polar-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.polar-footer-group {
  display: flex;
  flex-direction: column;
}

.polar-footer-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--polar-text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.polar-footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.polar-footer-link {
  font-size: 13px;
  color: var(--polar-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.3;
}

.polar-footer-link:hover {
  color: #FFFFFF;
}

/* 8. Numbered Feature Chapters (Phase 3: 01-04) */
.polar-chapter-section {
  padding: clamp(64px, 10vh, 104px) 0;
  border-top: 1px solid var(--polar-border);
  background-color: var(--polar-bg);
}

.polar-chapter-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.polar-chapter-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: clamp(36px, 5.5vh, 56px);
  align-items: start;
}

@media (min-width: 1024px) {
  .polar-chapter-header {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(40px, 5vw, 64px);
  }
}

.polar-chapter-tag {
  font-family: var(--polar-font-mono);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--polar-text);
}

.polar-chapter-num {
  color: var(--polar-text-muted);
}

.polar-chapter-name {
  color: var(--polar-text);
  font-weight: 500;
}

.polar-chapter-heading-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.polar-chapter-title {
  font-family: var(--polar-font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0;
}

.polar-lead-white {
  color: #FFFFFF;
  font-weight: 500;
}

.polar-lead-muted {
  color: #737373;
  font-weight: 500;
}

.polar-title-line-1 {
  color: #FFFFFF;
}

.polar-title-line-2 {
  color: #737373;
}

.polar-chapter-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #8C8C8C;
  max-width: 580px;
  margin: 0;
  font-weight: 400;
}

/* Textured Backdrop Frame for Preview Cards (Polar Reference) */
.polar-preview-backdrop {
  position: relative;
  min-height: clamp(20rem, 32vw, 28rem);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--polar-border);
  padding: clamp(16px, 3.5vw, 48px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polar-preview-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.polar-backdrop-flow-1 {
  background-image: url('../../assets/Polar_Flow_01_No_Logo.jpg');
}

.polar-backdrop-flow-2 {
  background-image: url('../../assets/Polar_Flow_02_No_Logo.jpg');
}

.polar-backdrop-flow-3 {
  background-image: url('../../assets/Polar_Flow_03_No_Logo.jpg');
}

/* Wide Preview Card */
.polar-preview-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: var(--polar-surface);
  border: 1px solid var(--polar-border);
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75);
}

.polar-preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--polar-surface-elevated);
  border-bottom: 1px solid var(--polar-border-subtle);
  font-size: 13px;
}

/* Chapter 2: Media Split Card */
.polar-media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  divide-x: 1px solid var(--polar-border-subtle);
}

.polar-media-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.polar-media-col:first-child {
  border-right: 1px solid var(--polar-border-subtle);
}

.polar-media-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.polar-media-col-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--polar-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.polar-waveform-wrapper {
  background-color: var(--polar-surface-elevated);
  border: 1px solid var(--polar-border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.polar-waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 24px;
}

.polar-bar {
  width: 2.5px;
  background-color: #404040;
  border-radius: 2px;
}

.polar-bar.played {
  background-color: #FFFFFF;
}

.polar-audio-duration {
  font-family: var(--polar-font-mono);
  font-size: 11.5px;
  color: var(--polar-text-muted);
}

/* Chapter 2: Voice Note Interactive & Animated Thread Replica */
.polar-voice-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.polar-voice-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.polar-voice-msg.msg-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.polar-voice-msg.msg-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.polar-avatar-spenpai {
  background-color: #1a1a1a;
  color: #E5E5E5;
}

.polar-voice-msg-body {
  flex: 1;
  min-width: 0;
}

.polar-author-pink {
  color: #EB459E !important;
  font-weight: 600;
}

.polar-user-badge {
  font-family: var(--polar-font-sans);
  font-size: 9.5px;
  font-weight: 600;
  background-color: #1E1F22;
  color: #D4D4D4;
  border: 1px solid #2B2D31;
  padding: 1.5px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  line-height: 1;
}

.polar-badge-leaf {
  color: #57F287;
  flex-shrink: 0;
}

.polar-app-badge {
  font-family: var(--polar-font-sans);
  font-size: 9.5px;
  font-weight: 600;
  background-color: #5865F2;
  color: #FFFFFF;
  padding: 1.5px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

/* Playable Voice Player */
.polar-voice-player {
  background-color: var(--polar-surface-elevated);
  border: 1px solid var(--polar-border-subtle);
  border-radius: 24px;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 4px;
  user-select: none;
}

.polar-voice-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #5865F2;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.polar-voice-play-btn:hover {
  background-color: #4752C4;
}

.polar-voice-play-btn:active {
  transform: scale(0.95);
}

.polar-voice-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.polar-vbar {
  width: 2.5px;
  background-color: #404040;
  border-radius: 2px;
  transition: background-color 0.12s ease;
}

.polar-vbar.played {
  background-color: #FFFFFF;
}

.polar-voice-time {
  font-family: var(--polar-font-mono);
  font-size: 11.5px;
  color: var(--polar-text-muted);
  min-width: 26px;
}

.polar-voice-speed {
  font-family: var(--polar-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #A1A1AA;
  background-color: #242424;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}

.polar-voice-volume {
  color: var(--polar-text-muted);
  flex-shrink: 0;
}

/* Reply Reference */
.polar-voice-reply-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.polar-voice-reply-wrap.reply-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.polar-voice-reply-wrap.reply-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.polar-voice-reply-ref {
  position: relative;
  margin-left: 18px;
  padding-left: 28px;
  min-height: 16px;
  display: flex;
  align-items: center;
}

.polar-reply-spine {
  position: absolute;
  left: 0;
  top: -10px;
  width: 20px;
  height: 18px;
  border-left: 2px solid #36373D;
  border-top: 2px solid #36373D;
  border-top-left-radius: 6px;
}

.polar-reply-ref-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--polar-text-muted);
}

.polar-reply-mini-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #262626;
  color: #D4D4D4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 600;
}

.polar-reply-author {
  font-size: 12px;
  font-weight: 500;
}

.polar-badge-subtle {
  font-size: 8.5px;
  padding: 1px 4px;
}

.polar-reply-italic {
  font-style: italic;
  color: #8C8C8C;
}

.polar-reply-mic {
  color: #8C8C8C;
  flex-shrink: 0;
}

/* Components V2 Confirmation Card */
.polar-transcription-card {
  background-color: #161616;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 6px;
}

.polar-transcription-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.polar-transcription-text {
  font-size: 13.5px;
  color: #D4D4D4;
  line-height: 1.5;
}

.polar-transcription-divider {
  height: 1px;
  background-color: #222222;
  margin: 12px 0 10px 0;
}

.polar-transcription-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.polar-action-btn {
  font-family: var(--polar-font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
  user-select: none;
}

.polar-btn-yes {
  background-color: #142318;
  border: 1px solid #1e3d26;
  color: #7ee787;
}

.polar-btn-yes:hover,
.polar-btn-yes.simulated-hover {
  background-color: #1a2f20;
  border-color: #274f32;
  color: #9cf0a4;
}

.polar-btn-yes:active,
.polar-btn-yes.simulated-active {
  transform: scale(0.95);
  background-color: #182c1e;
}

.polar-btn-no {
  background-color: #241416;
  border: 1px solid #3f1e22;
  color: #f87171;
}

.polar-btn-no:hover {
  background-color: #301a1d;
  border-color: #52252a;
  color: #fca5a5;
}

.polar-btn-no:active {
  transform: scale(0.95);
}

.polar-btn-translate {
  background-color: #18181b;
  border: 1px solid #27272a;
  color: #d4d4d8;
}

.polar-btn-translate:hover {
  background-color: #202024;
  border-color: #3f3f46;
  color: #ffffff;
}

.polar-btn-translate:active {
  transform: scale(0.95);
}

.polar-vector-icon {
  flex-shrink: 0;
  display: inline-block;
}

.polar-status-vector-icon {
  flex-shrink: 0;
  display: inline-block;
}

.polar-vector-confirmed {
  color: #7ee787;
}

.polar-vector-rejected {
  color: #f87171;
}

.polar-action-globe {
  color: currentColor;
}

.polar-transcription-status {
  padding: 4px 0;
}

.polar-status-text {
  font-size: 12px;
  color: var(--polar-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.polar-transcription-footer {
  font-size: 11px;
  color: var(--polar-text-muted);
  margin-top: 8px;
  padding-top: 4px;
}

.polar-lang-tag {
  font-family: var(--polar-font-mono);
  font-size: 10px;
  font-weight: 500;
  color: #a1a1aa;
  background-color: #222225;
  padding: 1.5px 5px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.polar-transcript-box {
  background-color: #161616;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #D4D4D4;
}

.polar-transcript-label {
  font-family: var(--polar-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--polar-text-muted);
  margin-bottom: 6px;
}

.polar-command-snippet {
  font-family: var(--polar-font-mono);
  font-size: 12.5px;
  color: #E5E5E5;
  background-color: #161616;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.polar-command-prefix {
  color: #737373;
}

.polar-image-wireframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--polar-surface-elevated);
  border: 1px solid var(--polar-border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.polar-image-wireframe svg {
  width: 70%;
  height: 70%;
  opacity: 0.85;
}

.polar-image-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Chapter 3: Moderation Audit Table */
.polar-audit-table {
  display: flex;
  flex-direction: column;
}

.polar-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--polar-border-subtle);
  gap: 16px;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.polar-audit-row:last-child {
  border-bottom: none;
}

.polar-audit-row:hover {
  background-color: var(--polar-surface-elevated);
}

.polar-audit-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.polar-audit-badge {
  font-family: var(--polar-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #242424;
  background-color: #161616;
  color: #D4D4D4;
  white-space: nowrap;
}

.polar-audit-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.polar-audit-target {
  font-weight: 500;
  color: var(--polar-text);
  letter-spacing: -0.01em;
}

.polar-audit-detail {
  color: var(--polar-text-secondary);
  font-size: 12.5px;
}

.polar-audit-time {
  font-family: var(--polar-font-mono);
  font-size: 11.5px;
  color: var(--polar-text-muted);
  white-space: nowrap;
}

/* Chapter 4: Music Booth Player */
.polar-music-booth {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.polar-music-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.polar-track-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polar-track-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--polar-text);
  letter-spacing: -0.015em;
}

.polar-track-artist {
  font-size: 13px;
  color: var(--polar-text-secondary);
}

.polar-scrubber-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.polar-scrubber-time {
  font-family: var(--polar-font-mono);
  font-size: 11.5px;
  color: var(--polar-text-muted);
}

.polar-scrubber-track {
  flex: 1;
  height: 4px;
  background-color: var(--polar-surface-hover);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.polar-scrubber-fill {
  width: 58%;
  height: 100%;
  background-color: #FFFFFF;
}

.polar-music-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.polar-music-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.polar-music-btn {
  background-color: var(--polar-surface-elevated);
  border: 1px solid var(--polar-border);
  color: var(--polar-text);
  border-radius: 6px;
  font-family: var(--polar-font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  cursor: default;
}

.polar-music-queue {
  border-top: 1px solid var(--polar-border-subtle);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--polar-text-secondary);
}

.polar-queue-next {
  color: var(--polar-text-muted);
}

/* 9. Operational Wireframe Grid (Phase 4: 8-Card Matrix) */
.polar-wireframe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.polar-wireframe-card {
  background-color: var(--polar-surface);
  border: 1px solid var(--polar-border);
  border-radius: 12px;
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.polar-wireframe-card:hover {
  transform: translateY(-3px);
  border-color: var(--polar-border-strong);
  background-color: var(--polar-surface-elevated);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.polar-wireframe-card:active {
  transform: translateY(-1px);
}

.polar-wireframe-num {
  font-family: var(--polar-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--polar-text-muted);
  letter-spacing: -0.01em;
}

.polar-wireframe-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  width: 100%;
  height: 140px;
}

.polar-wireframe-svg {
  width: 118px;
  height: 118px;
  stroke: #8C8C8C;
  stroke-width: 1.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease, transform 0.18s ease;
}

.polar-wireframe-card:hover .polar-wireframe-svg {
  stroke: #FFFFFF;
  transform: scale(1.03);
}

.polar-wireframe-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polar-wireframe-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--polar-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.polar-wireframe-arrow {
  color: #737373;
  font-size: 13px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.polar-wireframe-card:hover .polar-wireframe-arrow {
  transform: translateX(3px);
  color: #FFFFFF;
}

.polar-wireframe-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: #8C8C8C;
  line-height: 1.45;
}

/* 10. Testimonials: "What people say" (Polar Style - Exact Match to Reference) */
.polar-testimonials-section {
  padding: clamp(64px, 10vh, 104px) 0;
  border-top: 1px solid var(--polar-border);
  background-color: var(--polar-bg);
}

.polar-testimonials-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 6vh, 60px);
  align-items: start;
}

@media (min-width: 1024px) {
  .polar-testimonials-header {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(40px, 5vw, 64px);
  }
}

.polar-testimonials-label {
  font-family: var(--polar-font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--polar-text);
  margin: 0;
}

.polar-featured-quote-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.polar-featured-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.polar-featured-quote {
  font-family: var(--polar-font-sans);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 0;
}

.polar-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.polar-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #1A1A1A;
  color: #D4D4D4;
  font-family: var(--polar-font-mono);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.polar-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.polar-author-name {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.polar-author-title {
  font-size: 13px;
  font-weight: 400;
  color: #737373;
  line-height: 1.25;
}

/* 3-Column Testimonial Grid (Dominant #111111 & 12px Gap - Matches Reference Image) */
.polar-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.polar-testimonial-card {
  background-color: var(--polar-surface);
  border: 1px solid var(--polar-border);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  box-sizing: border-box;
  margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.polar-testimonial-card:hover {
  border-color: #282828;
  background-color: #151515;
}

.polar-card-quote {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #D4D4D4;
  margin: 0 0 24px 0;
}

/* 11. Transparent Pricing Section (4-Card Matrix Inspired by Reference Image) */
.polar-pricing-outer-frame {
  background-color: #0C0C0C;
  border: 1px solid #1A1A1A;
  border-radius: 16px;
  padding: 12px;
  box-sizing: border-box;
  margin-top: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.polar-pricing-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px 12px;
  font-size: 12.5px;
  color: #737373;
  border-bottom: 1px solid #161616;
  margin-bottom: 12px;
}

.polar-pricing-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-weight: 500;
  font-family: var(--polar-font-mono);
  font-size: 12px;
}

.polar-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: stretch;
}

.polar-pricing-card {
  background-color: var(--polar-surface);
  border: 1px solid var(--polar-border);
  border-radius: 12px;
  padding: 24px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.polar-pricing-card:hover {
  border-color: #282828;
  background-color: #151515;
}

.polar-pricing-card-featured {
  background-color: var(--polar-surface);
  border: 1px solid #282828;
  position: relative;
}

.polar-pricing-card-featured:hover {
  border-color: #383838;
  background-color: #151515;
}

.polar-pricing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}

.polar-pricing-tier-name {
  font-size: 17px;
  font-weight: 450;
  color: #FFFFFF;
  letter-spacing: -0.015em;
}

.polar-pricing-audience {
  font-size: 12.5px;
  font-family: var(--polar-font-sans);
  font-weight: 400;
  color: #737373;
  text-align: right;
  white-space: nowrap;
}

.polar-pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.polar-pricing-amount {
  font-family: var(--polar-font-display);
  font-size: 34px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
}

.polar-pricing-period {
  font-size: 13px;
  font-weight: 400;
  color: #737373;
}

.polar-pricing-metric-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.polar-pricing-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #737373;
  font-weight: 400;
}

.polar-pricing-metric-val {
  color: #FFFFFF;
  font-weight: 450;
  font-family: var(--polar-font-sans);
}

.polar-pricing-spacer {
  flex: 1 0 auto;
  min-height: 48px;
}

.polar-pricing-divider {
  border-top: 1px solid #1C1C1C;
  margin-bottom: 20px;
}

.polar-pricing-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.polar-pricing-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: #D4D4D4;
  font-weight: 400;
}

.polar-check-svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  color: #FFFFFF;
  flex-shrink: 0;
}

.polar-pricing-card .btn-polar-primary,
.polar-pricing-card .btn-polar-secondary {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* 11. Responsive Breakpoints */
@media (max-width: 900px) {
  .polar-hero-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .polar-hero-summary-col {
    order: 2;
  }

  .polar-hero-card-col {
    order: 1;
  }

  .polar-chapter-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .polar-media-split {
    grid-template-columns: 1fr;
  }

  .polar-media-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--polar-border-subtle);
  }

  .polar-wireframe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .polar-testimonials-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .polar-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .polar-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .polar-footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .polar-footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .polar-hero-band {
    padding: 36px 0 56px 0;
  }

  .polar-chapter-section,
  .polar-cta-band {
    padding: 48px 0;
  }

  .polar-hero-container,
  .polar-chapter-container,
  .polar-cta-container,
  .polar-footer-container {
    padding: 0 16px;
  }

  .polar-hero-intro {
    margin-bottom: 32px;
  }

  .polar-hero-actions,
  .polar-cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-polar-primary,
  .btn-polar-secondary {
    width: 100%;
    justify-content: center;
  }

  .polar-discord-messages {
    padding: 16px;
  }

  .polar-audit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .polar-audit-time {
    align-self: flex-end;
  }

  .polar-wireframe-grid {
    grid-template-columns: 1fr;
  }

  .polar-pricing-grid {
    grid-template-columns: 1fr;
  }

  .polar-pricing-card {
    padding: 24px 20px;
  }

  .polar-footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
