/* ==========================================================================
   ProCPA Network Platform - Tutti Design System
   Exact fonts, layout, tokens, light mode & dark mode from https://tutti.so/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ==========================================================================
   CSS Variables & Color Tokens (Tutti.so Exact Specifications)
   ========================================================================== */
:root {
  /* Tutti Light Mode (Default) */
  --canvas: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #fdfdfc;
  --ui-fill: #ebe8e1;
  --ui-fill-hover: #e2dfd7;
  
  --ink: #1c1917;
  --ink-secondary: #6b6a67;
  --ink-tertiary: #a8a6a1;
  
  --border: #dcd8cf;
  --border-subtle: #e8e5dd;
  --divider: #e2dfd8;
  
  --primary: #007a5e; /* Tutti signature deep emerald */
  --primary-foreground: #ffffff;
  --primary-hover: #005c47;
  --primary-tint: rgba(0, 122, 94, 0.08);
  --primary-border: rgba(0, 122, 94, 0.25);
  --primary-glow: rgba(0, 122, 94, 0.18);

  --secondary-btn-bg: #1c1917;
  --secondary-btn-fg: #f7f6f2;
  --secondary-btn-hover: #292524;

  --blue-accent: #0284c7;
  --blue-tint: rgba(2, 132, 199, 0.08);
  --blue-border: rgba(2, 132, 199, 0.25);

  --code-bg: #1e2227;
  --code-fg: #e2e8f0;

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radius & Shadows matching Tutti */
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-element: 10px;
  --radius-sm: 8px;

  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-soft-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-soft-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  --max-w-page: 1136px;
  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tutti Dark Mode */
[data-theme="dark"], html.dark {
  --canvas: #101010;
  --surface: #171717;
  --surface-2: #1e1e1e;
  --ui-fill: #222222;
  --ui-fill-hover: #2a2a2a;

  --ink: #fafafa;
  --ink-secondary: #a3a3a3;
  --ink-tertiary: #6b6b6b;

  --border: #2c2c2c;
  --border-subtle: #242424;
  --divider: #242424;

  --primary: #10b981; /* Luminous emerald for dark mode */
  --primary-foreground: #042f22;
  --primary-hover: #059669;
  --primary-tint: rgba(16, 185, 129, 0.12);
  --primary-border: rgba(16, 185, 129, 0.3);
  --primary-glow: rgba(16, 185, 129, 0.25);

  --secondary-btn-bg: #fafafa;
  --secondary-btn-fg: #101010;
  --secondary-btn-hover: #e5e5e5;

  --blue-accent: #38bdf8;
  --blue-tint: rgba(56, 189, 248, 0.12);
  --blue-border: rgba(56, 189, 248, 0.3);

  --code-bg: #0d0f12;
  --code-fg: #f1f5f9;

  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-soft-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-soft-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

.font-mono, [class*="tabular-nums"] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--max-w-page);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}

/* ==========================================================================
   Header & Tabs Navigation (Replacing multiple dropdown menus)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Logos for Light & Dark Mode */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.logo-dark { display: none !important; }
.logo-light { display: block !important; }

[data-theme="dark"] .logo-dark,
html.dark .logo-dark { display: block !important; }

[data-theme="dark"] .logo-light,
html.dark .logo-light { display: none !important; }

/* Clean Modern Top Navigation (Replacing Circle Menu) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item-dropdown {
  position: static;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-link-btn:hover,
.nav-item-dropdown:hover .nav-link-btn,
.nav-item-dropdown.active .nav-link-btn {
  color: var(--ink);
  background: var(--ui-fill);
}

.nav-link-plain {
  cursor: pointer;
}

.nav-link-btn .chevron-ico {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  color: var(--ink-tertiary);
}

.nav-item-dropdown:hover .nav-link-btn .chevron-ico {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Mega Dropdown Panel - Perfectly centered in container */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 20px;
  right: 20px;
  margin: 0 auto;
  max-width: 960px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft-lg);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

/* Invisible hover bridge */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel,
.nav-item-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown Content Grid */
.dropdown-content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.dropdown-promo {
  padding: 20px;
  border-radius: var(--radius-element);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ci-promo {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0.02) 100%);
  border: 1px solid var(--blue-border);
}

.laravel-promo {
  background: linear-gradient(135deg, rgba(0, 122, 94, 0.08) 0%, rgba(0, 122, 94, 0.02) 100%);
  border: 1px solid var(--primary-border);
}

.dropdown-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
}

.dropdown-pill.blue {
  background: var(--blue-tint);
  color: var(--blue-accent);
}

.dropdown-pill.green {
  background: var(--primary-tint);
  color: var(--primary);
}

.dropdown-promo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.dropdown-promo-desc {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dropdown-cta-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  gap: 4px;
  transition: var(--transition);
}

.dropdown-cta-btn.ci-cta { color: var(--blue-accent); }
.dropdown-cta-btn.ci-cta:hover { text-decoration: underline; }

.dropdown-cta-btn.laravel-cta { color: var(--primary); }
.dropdown-cta-btn.laravel-cta:hover { text-decoration: underline; }

.dropdown-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dropdown-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
  display: block;
}

.dropdown-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-link-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-link-row:hover {
  background: var(--ui-fill);
}

.link-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.link-icon.blue {
  background: var(--blue-tint);
}

.link-icon.green {
  background: var(--primary-tint);
}

.link-info {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.link-desc {
  font-size: 0.72rem;
  color: var(--ink-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .dropdown-panel {
    display: none;
  }
}

/* Nav Actions & Theme Switcher */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme Toggle Button (Tutti Light/Dark) */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--ui-fill);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

.icon-moon { display: none; }
.icon-sun { display: block; }

[data-theme="dark"] .icon-sun,
html.dark .icon-sun { display: none; }

[data-theme="dark"] .icon-moon,
html.dark .icon-moon { display: block; }

/* Buttons (Tutti rounded-full style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 7px 14px;
}

.btn-lg {
  font-size: 0.98rem;
  padding: 13px 26px;
  height: 48px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.btn-secondary {
  background: var(--secondary-btn-bg);
  color: var(--secondary-btn-fg);
}

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

.btn-ghost {
  background: var(--ui-fill);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--ui-fill-hover);
}

/* ==========================================================================
   Hero Section (Tutti Layout)
   ========================================================================== */
.hero-section {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-title .text-primary {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 32px;
}

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

/* Tags Cloud (Matching Tutti's "Where creators publish") */
.section-tag-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.pill-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.pill-tag {
  background: var(--ui-fill);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Centered Hero Header Layout */
.hero-header-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
}

.hero-subtitle-center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.hero-actions-center {
  justify-content: center;
  margin-bottom: 24px;
}

.hero-tags-center {
  margin-top: 6px;
}

.pill-tags-center {
  justify-content: center;
}

/* ==========================================================================
   Interactive Hero Comparison Slider (Invofox & Tutti Theme)
   ========================================================================== */
.hero-compare-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft-lg);
  position: relative;
  transition: border-color var(--transition);
  --scan-pos: 50%;
}

.hero-compare-wrapper:hover {
  border-color: var(--primary-border);
}

.compare-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.compare-card-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-card-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.compare-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
}

.badge-old {
  color: var(--blue-accent);
  background: var(--blue-tint);
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-vs {
  color: var(--ink-tertiary);
  font-size: 0.8rem;
}

.badge-new {
  color: var(--primary);
  background: var(--primary-tint);
  padding: 2px 8px;
  border-radius: 4px;
}

.compare-hint-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
}

.hint-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-compare-stage {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  background: #0f172a;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

@media (max-width: 992px) {
  .hero-compare-stage {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-compare-stage {
    height: 280px;
  }
}

.compare-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-layer-new {
  z-index: 1;
}

.compare-layer-old {
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--scan-pos, 50%)) 0 0);
  will-change: clip-path;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
}

.compare-badge {
  position: absolute;
  top: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.compare-badge-left {
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-badge-right {
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .compare-badge-right {
  background: rgba(24, 24, 27, 0.9);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.badge-dot.blue { background: #38bdf8; }
.badge-dot.green { background: #10b981; }

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--scan-pos, 50%);
  width: 3px;
  background: #10b981;
  z-index: 10;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
  pointer-events: none;
  will-change: left;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.9);
  cursor: ew-resize;
  pointer-events: auto;
  transition: transform .15s ease, background-color .15s ease;
}

.compare-handle:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: #059669;
}

.compare-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 0.73rem;
  color: var(--ink-secondary);
}

.compare-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.compare-footer-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-footer-stats strong {
  color: var(--ink);
}

.stat-sep {
  color: var(--ink-tertiary);
}

/* Tutti Hero Right Chart Card */
.hero-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.chart-header-stat {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.chart-header-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.chart-header-desc {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.chart-svg-box {
  position: relative;
  width: 100%;
  height: 140px;
}

.chart-svg-box svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--primary);
}

.chart-tooltip-pin {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-element);
  padding: 6px 10px;
  box-shadow: var(--shadow-soft-md);
  pointer-events: none;
}

.chart-tooltip-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}

.chart-tooltip-sub {
  font-size: 0.65rem;
  color: var(--ink-tertiary);
  display: block;
}

.chart-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Interactive Dual-Engine Showcase (Tutti Segmented Tab Style)
   ========================================================================== */
.showcase-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft-md);
  margin-top: 40px;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--ui-fill);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.engine-segment-control {
  display: inline-flex;
  background: var(--surface);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.segment-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.segment-btn:hover {
  color: var(--ink);
}

.segment-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.segment-btn.active.ci-btn {
  background: var(--blue-accent);
  color: #ffffff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-meta-side {
  padding: 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meta-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  color: var(--primary);
}

.meta-edition-badge.ci-badge {
  background: var(--blue-tint);
  border-color: var(--blue-border);
  color: var(--blue-accent);
}

.meta-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.meta-desc {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.meta-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.spec-cell {
  background: var(--canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.spec-cell-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  display: block;
  margin-bottom: 2px;
}

.spec-cell-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.meta-launch-bar {
  background: var(--ui-fill);
  border: 1px solid var(--border);
  border-radius: var(--radius-element);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta-domain-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-mono);
}

.meta-domain-link.ci-link {
  color: var(--blue-accent);
}

.meta-domain-link:hover {
  text-decoration: underline;
}

/* Code Side */
.showcase-code-side {
  background: var(--code-bg);
  color: var(--code-fg);
  display: flex;
  flex-direction: column;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-sub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-sub-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.code-sub-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.code-sub-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.code-display-box {
  padding: 20px;
  flex: 1;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
}

.code-row {
  display: flex;
  gap: 14px;
}

.code-row-num {
  color: #64748b;
  min-width: 22px;
  text-align: right;
  user-select: none;
}

.code-row-text {
  flex: 1;
}

.c-key { color: #86efac; font-weight: 600; }
.c-val { color: #93c5fd; }
.c-comment { color: #94a3b8; font-style: italic; }
.c-keyword { color: #f472b6; font-weight: 600; }
.c-string { color: #fde047; }

/* ==========================================================================
   Playground Card & Professional Segmented Tabs
   ========================================================================== */
.playground-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.playground-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-soft-lg);
}

.playground-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

/* Professional segmented control pill bar */
.playground-tabs-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--ui-fill);
  border-radius: var(--radius-element);
  border: 1px solid var(--border-subtle);
}

/* Individual Tab Pill Button */
.play-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: calc(var(--radius-element) - 3px);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.play-tab-pill .tab-ico {
  color: var(--ink-tertiary);
  transition: color 0.18s ease;
  flex-shrink: 0;
}

.play-tab-pill:hover {
  color: var(--ink);
  background: var(--ui-fill-hover);
}

.play-tab-pill:hover .tab-ico {
  color: var(--primary);
}

/* Active Tab State */
.play-tab-pill.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.play-tab-pill.active .tab-ico {
  color: var(--primary);
}

[data-theme="dark"] .play-tab-pill.active,
html.dark .play-tab-pill.active {
  background: var(--surface-2);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Playground Code Body */
.playground-code-body {
  background: var(--code-bg);
  padding: 24px 28px;
  overflow-x: auto;
  position: relative;
}

.playground-code-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--code-fg);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Copy Code Toolbar Button */
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.copy-code-btn:hover {
  background: var(--ui-fill);
  color: var(--ink);
  border-color: var(--border);
}

.copy-code-btn svg {
  color: var(--ink-tertiary);
  transition: color 0.18s ease;
}

.copy-code-btn:hover svg {
  color: var(--ink);
}

@media (max-width: 680px) {
  .playground-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 3px;
  }
  .play-tab-pill {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Section Headers (Tutti.so Style)
   ========================================================================== */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 40px;
}

.section-head.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 10px;
}

/* ==========================================================================
   Four Feature Cards (Matching Tutti's 2x2 Feature Grid)
   ========================================================================== */
.features-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .features-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.tutti-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tutti-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tutti-card-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Side-by-Side Dual Project Cards (Tutti Styling)
   ========================================================================== */
.dual-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .dual-projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.project-card.featured {
  border-color: var(--primary-border);
}

.project-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-header-pill.pill-advance {
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  color: var(--primary);
}

.project-header-pill.pill-classic {
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  color: var(--blue-accent);
}

.project-domain-tag {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 12px;
  display: inline-block;
}

.project-domain-tag.ci {
  color: var(--blue-accent);
}

.project-domain-tag:hover {
  text-decoration: underline;
}

.project-bullet-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-bullet-list li {
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bullet-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.bullet-icon.green { color: var(--primary); }
.bullet-icon.blue { color: var(--blue-accent); }

.project-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--divider);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cred-chip {
  background: var(--ui-fill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.cred-chip strong {
  color: var(--ink);
}

/* ==========================================================================
   Interactive Live Tracking Link Generator
   ========================================================================== */
.generator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.gen-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.gen-input-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.gen-input-group input {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-element);
  padding: 10px 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.gen-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-tint);
}

.gen-outputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .gen-outputs-grid {
    grid-template-columns: 1fr;
  }
}

.gen-output-box {
  background: var(--ui-fill);
  border: 1px solid var(--border);
  border-radius: var(--radius-element);
  padding: 16px;
}

.gen-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gen-output-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.gen-output-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* ==========================================================================
   Platform Totals Grid (Matching Tutti's 6-Box Platform Metrics)
   ========================================================================== */
.totals-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 860px) {
  .totals-matrix {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .totals-matrix {
    grid-template-columns: 1fr;
  }
}

.total-cell {
  background: var(--surface);
  padding: 24px;
}

.total-num {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.total-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.total-desc {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   How It Works (Matching Tutti's 2-Column Steps Layout)
   ========================================================================== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}

.how-col-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.how-col-badge.advance-pill {
  background: var(--primary);
  color: var(--primary-foreground);
}

.how-col-badge.classic-pill {
  background: var(--secondary-btn-bg);
  color: var(--secondary-btn-fg);
}

.how-steps-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ui-fill);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.how-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.how-step-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Creator Voices / Testimonials (Matching Tutti Masonry Testimonials)
   ========================================================================== */
.voices-columns {
  columns: 3;
  column-gap: 16px;
}

@media (max-width: 900px) {
  .voices-columns {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .voices-columns {
    columns: 1;
  }
}

.voice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 16px;
  break-inside: avoid;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ui-fill);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.voice-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.voice-quote {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.6;
}

.voice-quote mark {
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 600;
}

.voice-footer {
  font-size: 0.72rem;
  color: var(--ink-tertiary);
}

/* ==========================================================================
   Comparison Table (Tutti Clean Minimal Style)
   ========================================================================== */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

.tutti-table th,
.tutti-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
}

.tutti-table th {
  background: var(--ui-fill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

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

/* ==========================================================================
   FAQ Accordion (Tutti Style)
   ========================================================================== */
.faq-stack {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--ink-secondary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding-bottom: 22px;
}

/* ==========================================================================
   Bottom CTA Banner (Tutti Style)
   ========================================================================== */
.bottom-cta-box {
  text-align: center;
  padding: 48px 20px;
}

.bottom-cta-box .section-title {
  margin-bottom: 12px;
}

.bottom-cta-box .section-desc {
  max-width: 460px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Footer (Tutti.so Style)
   ========================================================================== */
.site-footer {
  background: var(--ui-fill);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid-6col {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-grid-6col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid-6col {
    grid-template-columns: 1fr;
  }
}

.footer-col-head {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--ink);
}

.footer-bottom-row {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  flex-wrap: wrap;
  gap: 12px;
}
