/* ================================================================
   MAA — ChronoTask-Inspired Premium Minimalist SaaS Landing Page
   AI Assistant on Telegram for Nigerian Professionals
   ================================================================ */

/* ----------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* AbokiWise Brand Palette */
  --color-terracotta: #C1440E;
  --color-amber: #D4850A;
  --color-deep-brown: #2D1810;
  --color-warm-sand: #F5E6C8;
  --color-cream: #FDF8F0;
  --color-dark-roast: #1A0A05;
  --color-warm-charcoal: #3D2A1E;
  --color-muted: #7A5C4A;

  /* Semantic aliases */
  --accent: var(--color-terracotta);
  --accent-rgb: 193, 68, 14;
  --accent-light: var(--color-amber);
  --accent-glow: rgba(193, 68, 14, 0.08);
  --neutral-warm: var(--color-muted);

  --bg-base: var(--color-dark-roast);
  --bg: var(--bg-base);
  --bg-surface: rgba(26, 10, 5, 0.45);
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(26, 10, 5, 0.75);

  /* Text */
  --text-main: var(--color-cream);
  --text-secondary: #C4B0A5;
  --text-muted: #A38E83;

  /* Borders */
  --border-color: rgba(193, 68, 14, 0.2);
  --border-hover: rgba(193, 68, 14, 0.45);
  --border-accent: var(--color-terracotta);

  /* Semantic */
  --success: #2E7D32;
  --error: #C62828;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(45, 24, 16, 0.05);
  --shadow-md: 0 4px 16px rgba(45, 24, 16, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 24, 16, 0.12);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-base);
}

body {
  position: relative;
  z-index: 1; /* Establishes local stacking context to prevent pseudo-elements from falling behind html background */
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed Parallax Background Image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(26, 10, 5, 0.35) 0%, rgba(26, 10, 5, 0.9) 100%), url('./hero-dashboard.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: -2;
}

/* Fixed Grid Lines Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(193, 68, 14, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 68, 14, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

/* Disable fixed background attachment on mobile/tablet for performance */
@media (max-width: 1024px) {
  body::before {
    position: absolute;
  }
  body::after {
    position: absolute;
  }
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-warm);
}

/* General Layout elements */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Section headers */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
}

/* ----------------------------------------------------------------
   3. NAVBAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  border-bottom: 1px solid rgba(193, 68, 14, 0.15);
  background: rgba(26, 10, 5, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled {
  background: rgba(26, 10, 5, 0.75);
  border-bottom: 1px solid rgba(193, 68, 14, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ----------------------------------------------------------------
   4. BUTTONS & BADGES
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: #A33A0C;
  border-color: #A33A0C;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-deep-brown);
  background: var(--color-warm-sand);
  border: 1.5px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.btn-secondary:hover {
  background: #e6d7b9;
  border-color: #A33A0C;
}

.nav-links a.btn-secondary {
  color: var(--color-deep-brown);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-links a.btn-secondary:hover {
  color: var(--color-dark-roast);
  background: #e6d7b9;
  border-color: #A33A0C;
}


.btn-cta {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-cta:hover {
  background: #A33A0C;
  border-color: #A33A0C;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(193, 68, 14, 0.1);
  border: 1px solid rgba(193, 68, 14, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-amber);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-terracotta);
}

/* ----------------------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: transparent;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 95px 24px 50px; /* Reduced vertical padding */
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-left-column {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

.hero-right-column {
  width: 100%;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem); /* Slightly smaller on desktop to fit page */
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: 16px;
  text-align: left;
}

.hero-title span.gradient-text {
  color: var(--color-amber);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-warm-sand);
  max-width: 600px;
  margin: 0 0 28px 0;
  text-align: left;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

/* Hero Showcase Grid */
/* Hero Mockup (Telegram UI Style) */
/* Hero Mockup (Telegram UI Style) */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  z-index: 5;
}

.hero-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  background: radial-gradient(circle, rgba(193, 68, 14, 0.3) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.hero-mockup {
  width: 100%;
  background: rgba(26, 10, 5, 0.85); /* Glassy background */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(193, 68, 14, 0.05);
  text-align: left;
  backdrop-filter: blur(12px); /* Glassmorphism */
  -webkit-backdrop-filter: blur(12px);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.mockup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  display: block;
  object-fit: cover;
}

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

.mockup-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.mockup-status {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
}

.mockup-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  padding: 8px 16px;
  gap: 8px;
}

.mockup-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mockup-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.mockup-tab-btn.active {
  color: #fff;
  background: rgba(193, 68, 14, 0.18);
  border-color: rgba(193, 68, 14, 0.35);
}

.mockup-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 320px; /* Squeezed height to ensure it fits the desktop viewport beautifully */
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Responsive columns adjustment */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left-column {
    align-items: center;
    text-align: center;
  }
  .hero-left-column .hero-title,
  .hero-left-column .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-left-column .hero-buttons {
    justify-content: center;
  }
  .hero-mockup-wrapper {
    margin-top: 30px;
  }
  .hero {
    padding: 120px 24px 60px;
  }
}

/* Custom Scrollbar for Mockup Body */
.mockup-body::-webkit-scrollbar {
  width: 6px;
}

.mockup-body::-webkit-scrollbar-track {
  background: transparent;
}

.mockup-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.mockup-body::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-warm);
}

/* Dynamic active state to hide messages initially in JS */
.mockup-body.js-active .mockup-message {
  opacity: 0;
  transform: translateY(12px);
}

.mockup-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mockup-message.show-bubble {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-message.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  border-bottom-right-radius: 2px;
}

.mockup-message.bot {
  align-self: flex-start;
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid rgba(193, 68, 14, 0.15);
  color: var(--color-cream);
  border-bottom-left-radius: 2px;
}

/* Typing Indicator Bubble */
.mockup-message.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  align-self: flex-start;
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid rgba(193, 68, 14, 0.15);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 2px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-light);
  border-radius: 50%;
  animation: typing-blink 1.4s infinite both;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-blink {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.mockup-message p {
  margin-bottom: 4px;
}

.mockup-message p:last-child {
  margin-bottom: 0;
}

.mockup-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-input {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s, background-color 0.25s;
}

.mockup-input:focus:not(:disabled) {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.mockup-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mockup-send {
  width: 42px;
  height: 42px;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.mockup-send:hover:not(:disabled) {
  background: var(--accent-light);
}

.mockup-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----------------------------------------------------------------
   6. STATS BAR
   ---------------------------------------------------------------- */
.stats-bar {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  color: var(--color-cream);
  padding: 40px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-warm-sand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
}

/* ----------------------------------------------------------------
   7. HOW IT WORKS (Flat Bento Panels)
   ---------------------------------------------------------------- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step-wrapper:hover {
  border-color: var(--color-amber);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(193, 68, 14, 0.12);
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(193, 68, 14, 0.1);
  border: 1px solid rgba(193, 68, 14, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 24px;
}

.step-card {
  width: 100%;
}

.step-illustration {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: screen;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  display: none; /* Removed connectors for clean ChronoTask panel look */
}

/* ----------------------------------------------------------------
   8. PRICING SECTION
   ---------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pricing-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(193, 68, 14, 0.2);
}

.pricing-card.featured {
  border: 2px solid var(--color-terracotta);
  background: rgba(193, 68, 14, 0.05);
  box-shadow: 0 0 32px rgba(193, 68, 14, 0.08);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-amber));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-amber);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-tier-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 12px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.pricing-btn.outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.pricing-btn.outline:hover {
  border-color: var(--neutral-warm);
  background: rgba(255, 255, 255, 0.02);
}

.pricing-btn.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.pricing-btn.primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* ----------------------------------------------------------------
   9. MODELS SECTION (Clean Bento Boxes)
   ---------------------------------------------------------------- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.model-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.model-card:hover {
  border-color: var(--color-amber);
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(212, 133, 10, 0.12);
}

.model-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.model-icon svg {
  width: 24px;
  height: 24px;
}

.model-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.model-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   10. COMPARISON SECTION (Flat Checklist Matrix)
   ---------------------------------------------------------------- */
.comparison-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.comparison-text {
  text-align: left;
}

.comparison-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.comparison-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.comparison-bullets li::before {
  content: '✓';
  color: var(--accent-light);
  font-weight: 700;
}

.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comparison-block {
  padding: 36px;
}

.comparison-chatgpt {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.005);
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comparison-brand-bad {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.comparison-brand-good {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-light);
}

.comparison-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.marker-red {
  color: #ff5252;
  font-weight: 700;
}

.marker-green {
  color: var(--accent-light);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   11. ONBOARDING SECTION & FORM
   ---------------------------------------------------------------- */
.onboarding-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.onboarding-card .onboarding-form {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 24px;
}

/* Progress indicator bar at the top of wizard card */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 40px;
}

.progress-bar-track {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
  border-radius: 2px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
  gap: 8px;
  flex: 1;
}

.progress-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.progress-step .step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.progress-step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px rgba(193, 68, 14, 0.4);
}

.progress-step.active .step-label {
  color: var(--text-main);
}

.progress-step.completed .step-num {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

.progress-step.completed .step-label {
  color: var(--accent-light);
}

/* Wizard Steps styling and transition */
.wizard-step {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: opacity 0.35s ease, max-height 0.4s ease, visibility 0.35s;
  pointer-events: none;
}

.wizard-step.active {
  opacity: 1;
  max-height: 2000px; /* generous upper bound */
  visibility: visible;
  pointer-events: auto;
}

/* Wizard Actions (Back & Next buttons) styling */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.wizard-actions .btn-secondary,
.wizard-actions .btn-primary {
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wizard-actions .btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.wizard-actions .btn-secondary:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.wizard-actions .btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  margin-left: auto; /* push next to the right if back is hidden */
}

.wizard-actions .btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.wizard-actions .btn-secondary.hidden {
  display: none !important;
}

.onboarding-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  height: 48px;
  background: rgba(26, 10, 5, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0 16px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group select option {
  background: var(--color-dark-roast);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.1);
}

.form-group input::placeholder {
  color: var(--neutral-warm);
}

.field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.btn-submit {
  width: 100%;
  height: 52px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-submit:hover {
  background: #A33A0C;
  border-color: #A33A0C;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow {
  opacity: 0;
}

.btn-submit.loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form highlight effect */
.onboarding-form.form-highlight {
  animation: borderHighlight 1.5s ease;
}

@keyframes borderHighlight {
  0%, 100% { border-color: var(--border-color); }
  50% { border-color: var(--accent); }
}

/* Step 3: Agent Customization Styles */
.tone-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .tone-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tone-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: rgba(26, 10, 5, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.tone-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tone-pill:hover {
  border-color: var(--color-terracotta);
  color: var(--text-main);
  background: rgba(193, 68, 14, 0.05);
}

.tone-pill:has(input[type="radio"]:checked) {
  background: rgba(193, 68, 14, 0.08);
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.12);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

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

.capability-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: rgba(26, 10, 5, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.capability-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.capability-card:hover:not(.disabled-card) {
  border-color: var(--color-terracotta);
  background: rgba(193, 68, 14, 0.05);
}

.capability-card.disabled-card {
  cursor: not-allowed;
  opacity: 0.6;
}

.capability-card:has(input[type="checkbox"]:checked):not(.disabled-card) {
  background: rgba(193, 68, 14, 0.08);
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.12);
}

.capability-card.disabled-card:has(input[type="checkbox"]:checked) {
  background: rgba(255, 255, 255, 0.01);
  border-color: var(--border-color);
}

.capability-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.capability-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.capability-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.capability-details strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.capability-details span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.custom-skills-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.custom-skills-wrapper textarea {
  width: 100%;
  height: 120px;
  background: rgba(26, 10, 5, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 16px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.custom-skills-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.1);
}

.custom-skills-wrapper textarea:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.5;
}

.skills-upgrade-lock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 10, 5, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.custom-skills-wrapper.locked .skills-upgrade-lock {
  opacity: 1;
  pointer-events: all;
}

.lock-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 320px;
}

.lock-content svg {
  color: var(--accent-light);
  margin-bottom: 4px;
}

.lock-content strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.lock-content span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tone-pill:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.capability-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Success Card */
.onboarding-success {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(193, 68, 14, 0.1);
  border: 1px solid rgba(193, 68, 14, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-amber);
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.onboarding-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.onboarding-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.success-detail {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* Onboarding Success Terminal Animation */
.terminal-mockup {
  background: #0d0e12;
  color: #00ffcc;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 204, 0.25);
  text-align: left;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.15);
  margin-bottom: 24px;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.terminal-mockup.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.terminal-line {
  margin-bottom: 6px;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-line.success {
  color: #00ff88;
  font-weight: 600;
}

.terminal-line.info {
  color: #33ccff;
}

.terminal-line.warning {
  color: #ffcc00;
}

/* Success Card Reveal Animation */
#success-message-card:not(.hidden) {
  animation: successReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ----------------------------------------------------------------
   12. CTA SECTION
   ---------------------------------------------------------------- */
.cta-section {
  position: relative;
  background: transparent;
  color: var(--color-cream);
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-cream);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-warm-sand);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ----------------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: rgba(26, 10, 5, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(193, 68, 14, 0.15);
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.footer-social a:hover {
  color: var(--text-main);
}

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

/* ----------------------------------------------------------------
   14. ANIMATIONS & SCROLL REVEALS
   ---------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-left.visible,
.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

/* Stagger delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .onboarding-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(26, 10, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(193, 68, 14, 0.25);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a.btn-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 120px;
  }

  .hero::before {
    background-position: center;
    background-size: 550px;
    opacity: 0.05; /* highly transparent on mobile for contrast */
    filter: blur(6px);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 48px;
  }

  .hero-buttons a {
    width: 100%;
  }

  .stats-inner {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

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

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

  .comparison-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .comparison-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 20px;
  }

  .onboarding-form {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

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

/* ----------------------------------------------------------------
   16. ACCESSIBILITY OVERRIDES
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none !important;
  }
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

#onboarding-view {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 80px;
  background: var(--bg);
}

/* SPA view toggling — use visibility instead of display to prevent layout shifts */
#onboarding-view.hidden,
#landing-page-content.hidden {
  display: block !important;
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  overflow: hidden;
  height: 0;
  min-height: 0;
  padding: 0;
}

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

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

.gradient-text {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Margin helpers */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================ */
/* STEP 4: TELEGRAM BOT INTEGRATION & VERIFY    */
/* ============================================ */
.setup-guide-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guide-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

.guide-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(193, 68, 14, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.step-text code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--text-main);
}

.guide-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(193, 68, 14, 0.5);
  transition: all 0.2s ease;
}

.guide-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.input-with-action {
  display: flex;
  gap: 12px;
  width: 100%;
}

.input-with-action input {
  flex: 1;
}

.btn-verify {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-verify .btn-text {
  transition: opacity 0.2s ease;
}

.btn-verify.loading .btn-text {
  opacity: 0;
}

.btn-verify.loading .btn-spinner {
  display: block;
}

.btn-verify .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--text-main);
  animation: spin 0.8s linear infinite;
  position: absolute;
}

.btn-verify:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-verify:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-verify:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInDown 0.2s ease forwards;
}

.status-alert span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-alert.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}

.status-alert.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.05);
}

.status-alert.loading {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .input-with-action {
    flex-direction: column;
    align-items: stretch;
  }
  .input-with-action .btn-verify {
    width: 100%;
  }
}


/* ----------------------------------------------------------------
   SKILLS.SH INTEGRATION — Organization Type + Skills Browser
   ---------------------------------------------------------------- */

/* --- Organization Type Grid --- */
.org-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.org-type-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px 12px;
  background: rgba(26, 10, 5, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-align: center;
  position: relative;
  user-select: none;
}

.org-type-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.org-type-pill:hover {
  border-color: var(--color-terracotta);
  background: rgba(193, 68, 14, 0.05);
  transform: translateY(-1px);
}

.org-type-pill:has(input:checked) {
  border-color: var(--color-terracotta);
  background: rgba(193, 68, 14, 0.08);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.12);
}

.org-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.org-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: var(--text-main);
  transition: stroke 0.2s ease, transform 0.2s ease;
  margin: 0 auto;
}

.org-type-pill:has(input:checked) .org-icon svg {
  stroke: var(--accent-light);
}

.org-type-pill:hover .org-icon svg {
  transform: scale(1.05);
}

.org-type-pill > span:not(.org-icon) {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.org-type-pill small {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.2;
  display: block;
}

.org-type-pill:has(input:checked) > span:not(.org-icon) {
  color: var(--accent-light);
}

/* --- Skills Browser Panel --- */
.skills-browser-group {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.skills-browser-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.skills-browser-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-browser-title-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* skills.sh attribution badge */
.skills-sh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(193, 68, 14, 0.07);
  border: 1px solid rgba(193, 68, 14, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.skills-sh-badge:hover {
  background: rgba(193, 68, 14, 0.15);
  border-color: rgba(193, 68, 14, 0.4);
}

/* Directory Selector Tabs */
.skills-directory-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.dir-tab {
  background: rgba(26, 10, 5, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dir-tab:hover {
  background: rgba(193, 68, 14, 0.05);
  color: var(--text-main);
  border-color: var(--color-terracotta);
}

.dir-tab.active {
  background: rgba(193, 68, 14, 0.08);
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  box-shadow: 0 0 10px rgba(193, 68, 14, 0.08);
}

@media (max-width: 600px) {
  .skills-directory-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Selected count badge */
.skills-selected-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease;
}

.skills-selected-badge.hidden {
  display: none;
}

/* Section label (e.g. "Recommended for Government") */
.skills-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skills-section-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
}

.skills-section-label.hidden {
  display: none;
}

/* --- Search Input --- */
.skills-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.skills-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.skills-search-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.skills-search-input:focus {
  border-color: var(--accent);
  background: rgba(193, 68, 14, 0.04);
}

.skills-search-input::placeholder {
  color: var(--text-muted);
}

.skills-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.skills-search-clear:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.skills-search-clear.hidden {
  display: none;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 120px;
}

/* --- Skill Card --- */
.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(26, 10, 5, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  overflow: hidden;
  user-select: none;
}

.skill-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-1px);
  background: rgba(193, 68, 14, 0.05);
}

.skill-card.selected {
  border-color: var(--color-terracotta);
  background: rgba(193, 68, 14, 0.08);
  box-shadow: 0 0 0 2px rgba(193, 68, 14, 0.12), inset 0 0 20px rgba(193, 68, 14, 0.04);
}

/* Check indicator in corner */
.skill-card .skill-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.skill-card.selected .skill-check {
  border-color: var(--accent);
  background: var(--accent);
}

.skill-check svg {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.skill-card.selected .skill-check svg {
  opacity: 1;
}

.skill-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 22px;
}

.skill-card.selected .skill-card-name {
  color: var(--accent-light);
}

.skill-card-source {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.skill-card-installs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 500;
}

.skill-card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.67rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s ease;
}

.skill-card-link:hover {
  color: var(--accent-light);
}

/* --- Loading Skeleton --- */
.skills-loading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.skills-loading.hidden {
  display: none;
}

.skill-skeleton {
  height: 80px;
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
}

@keyframes skeleton-shimmer {
  0%  { background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* --- Empty / Error State --- */
.skills-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  color: var(--text-muted);
  text-align: center;
}

.skills-empty-state p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.5;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .skills-grid,
  .skills-loading {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-browser-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .skills-grid,
  .skills-loading {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Field Hint styles --- */
.field-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* --- Active Plan Badge styles --- */
.active-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  align-self: flex-start;
  transition: all 0.3s ease;
}

/* --- Selected Skills Panel styles --- */
.skills-selected-panel {
  margin-top: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  overflow: hidden;
}

.skills-panel-toggle {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.skills-panel-toggle:hover {
  background: rgba(193, 68, 14, 0.05);
}

.skills-panel-body {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid var(--border-color);
  color: var(--color-terracotta);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.skills-chip .remove {
  background: none;
  border: none;
  color: var(--color-terracotta);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.skills-chip .remove:hover {
  opacity: 0.7;
}

/* --- Review Step (Step 6) styles --- */
.review-step-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.review-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-edit-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.review-edit-link:hover {
  opacity: 0.7;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(193, 68, 14, 0.08);
}

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

.review-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.review-value {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.review-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.review-skill-tag {
  background: rgba(193, 68, 14, 0.05);
  border: 1px solid var(--border-color);
  color: var(--color-terracotta);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
