/* ==========================================================================
   Pollito — Modernist Vector Studio Stylesheet
   Designed under Impeccable standard for pollito.tbelt.online
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-canvas: #0b0f19;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-amber: #f59e0b;
  --brand-amber-glow: rgba(245, 158, 11, 0.25);
  --brand-purple: #8b5cf6;
  --brand-purple-glow: rgba(139, 92, 246, 0.25);
  --brand-emerald: #10b981;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);
  
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);

  /* Typography */
  --font-display: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Layout Frame */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

::selection {
  background: var(--brand-amber);
  color: #0b0f19;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-canvas);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero Frame Wrap & Container (Comp-matched Viewport) */
.hero-frame-wrap {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vh, 24px) clamp(12px, 2vw, 24px);
  box-sizing: border-box;
}

.hero-frame {
  width: 100%;
  max-width: 1344px;
  height: calc(100dvh - clamp(24px, 5vh, 48px));
  max-height: 760px;
  min-height: 520px;
  background-color: #0f172a;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  border-radius: 28px;
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 80px 10px rgba(139, 92, 246, 0.35), inset 0 0 60px rgba(139, 92, 246, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 3.5vw, 48px);
  overflow: hidden;
}

/* Navigation Bar */
.navbar {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-slack {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 0 24px -2px rgba(124, 58, 237, 0.75);
}

.btn-slack:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px 2px rgba(139, 92, 246, 0.9);
}

.slack-logo-icon {
  width: 18px;
  height: 18px;
}

/* Hero Section inside frame */
.hero-section {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  width: 100%;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: clamp(16px, 4vw, 56px);
  gap: clamp(12px, 2vh, 20px);
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  color: #94a3b8;
  line-height: 1.55;
  max-width: 46ch;
  text-align: left;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 4px;
}

.pricing-pill {
  font-size: 0.85rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-pill strong {
  color: #ffffff;
}

/* Hero Stage / Plate Display */
.hero-visual-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-right: clamp(12px, 2.5vw, 40px);
  height: 100%;
  max-height: 100%;
}

.hero-visual-stage img {
  width: auto;
  max-width: 100%;
  max-height: min(480px, calc(100dvh - 180px));
  height: auto;
  object-fit: contain;
  display: block;
}

/* Interactive Poll Simulator (1:1 Slack Experience) */
.simulator-section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* Slack 1:1 Mockup Component (Exact Slack Dark Theme) */
.slack-mockup-card {
  --slack-text: #d1d2d3;
  --slack-text-bright: #f8f8f8;
  --slack-text-muted: #ababad;
  --slack-code-orange: #e8912d;
  --slack-quote-bar: #b9babd;
  --slack-mention-text: #2ba5ce;
  --slack-mention-bg: rgba(3, 102, 150, 0.25);
  --slack-btn-border: rgba(121, 124, 129, 0.5);
  --slack-btn-voted-bg: rgba(0, 122, 90, 0.22);
  --slack-btn-voted-border: #007a5a;

  background: #1a1d21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--slack-text);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.mockup-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slack-text-muted);
}

.channel-hash {
  color: var(--slack-text-muted);
  font-weight: 800;
}

.channel-name {
  color: var(--slack-text-bright);
}

.channel-sep {
  color: var(--slack-text-muted);
}

.channel-topic {
  font-weight: 500;
  color: var(--slack-text-muted);
}

.mockup-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.mockup-badge.concluded {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}

.slack-message {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px 24px 24px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.message-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slack-text-bright);
}

.bot-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--slack-text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.message-time {
  font-size: 0.75rem;
  color: var(--slack-text-muted);
  font-weight: 400;
}

.slack-poll-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slack-text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.slack-poll-context {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--slack-text-muted);
  flex-wrap: wrap;
}

.slack-poll-context strong {
  color: var(--slack-text);
}

.slack-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
  border: none;
}

/* Option Rows */
.slack-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slack-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.slack-option-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.slack-option-row.voted {
  background: rgba(0, 122, 90, 0.08);
  border-color: rgba(0, 122, 90, 0.3);
}

.slack-option-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.slack-option-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slack-text-bright);
}

.slack-option-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* Authentic Slack inline-code block ASCII bar */
.slack-ascii-bar {
  font-family: 'JetBrains Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--slack-code-orange);
  background: rgba(232, 232, 232, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: -0.2px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.slack-vote-count {
  color: var(--slack-text-muted);
}

.slack-vote-count strong {
  color: var(--slack-text-bright);
}

.slack-user-check {
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
}

/* Native Slack Button */
.mockup-btn {
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--slack-btn-border);
  background: transparent;
  color: var(--slack-text-bright);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mockup-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.mockup-btn.mockup-btn-voted {
  background: var(--slack-btn-voted-bg);
  border-color: var(--slack-btn-voted-border);
  color: #34d399;
}

.mockup-btn.mockup-btn-voted:hover {
  background: rgba(0, 122, 90, 0.32);
}

/* Footer telemetry & security */
.slack-poll-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.slack-footer-telemetry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--slack-text-muted);
  flex-wrap: wrap;
}

.slack-footer-telemetry span strong {
  color: var(--slack-text-bright);
}

.mockup-mention {
  background: var(--slack-mention-bg);
  color: var(--slack-mention-text);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.82rem;
}

.slack-footer-security {
  font-size: 0.78rem;
  color: var(--slack-text-muted);
  opacity: 0.85;
}

/* Feature Grid */
.features-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  margin-bottom: var(--space-xs);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Comparison Table (The Pollito Difference) */
.comparison-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.table-wrapper {
  margin-top: var(--space-2xl);
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.diff-table th, .diff-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.diff-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.diff-table th.highlight, .diff-table td.highlight {
  background: rgba(245, 158, 11, 0.04);
  color: #ffffff;
  font-weight: 600;
}

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

/* Footer */
.site-footer {
  margin-top: auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  background: #080c14;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-frame-wrap {
    min-height: auto;
    padding: 12px;
  }
  .hero-frame {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 24px 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .hero-content {
    align-items: center;
    padding-left: 0;
  }
  .hero-visual-stage {
    padding-right: 0;
  }
  .hero-visual-stage img {
    max-height: 360px;
    width: 100%;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* Legal & Documentation Pages */
.legal-container {
  max-width: 860px;
  padding: var(--space-3xl) var(--space-lg);
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xl);
}

.legal-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: var(--space-xs) 0 var(--space-sm);
  color: #ffffff;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: var(--space-md);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: var(--space-sm);
}

.legal-section p, .legal-section li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal-link {
  color: var(--brand-purple);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-link:hover {
  color: #ffffff;
}

/* Command Grid */
.command-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.command-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.command-card code {
  font-family: var(--font-mono);
  color: var(--brand-amber);
  font-size: 0.95rem;
  font-weight: 600;
}

.command-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.contact-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-box p {
  margin: 0;
}

