/* =============================================
   SocioPlex — Marketing Website
   Color System + Custom Properties
   ============================================= */

:root {
  /* Navy palette */
  --navy-950: #050D1A;
  --navy-900: #0A1628;
  --navy-800: #0F1D32;
  --navy-700: #1B2D4F;
  --navy-600: #2A4A7F;
  --navy-500: #3B6CB5;

  /* Teal accent */
  --teal-600: #0284C7;
  --teal-500: #0EA5E9;
  --teal-400: #38BDF8;
  --teal-300: #7DD3FC;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =============================================
   Reset & Base
   ============================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--teal-400);
  letter-spacing: 0.02em;
}

.hide-mobile { display: inline; }

/* =============================================
   Typography
   ============================================= */

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title.light {
  color: var(--white);
}

.section-desc {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

.section-desc.light {
  color: var(--gray-400);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0),
              0 4px 16px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15),
              0 8px 32px rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--gray-300);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

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

.btn-nav {
  background: rgba(14, 165, 233, 0.12);
  color: var(--teal-400);
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
}

.btn-nav:hover {
  background: rgba(14, 165, 233, 0.2);
  color: var(--teal-300);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* =============================================
   Navbar
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo-icon {
  display: flex;
  color: var(--teal-400);
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal-400);
  transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-300);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* =============================================
   Mobile Menu
   ============================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--gray-400);
  padding: 8px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gray-300);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--teal-400);
}

.mobile-cta {
  margin-top: 16px;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(42, 74, 127, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 60% 85%, rgba(14, 165, 233, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(27, 45, 79, 0.4) 0%, transparent 100%);
  animation: meshShift 25s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(14, 165, 233, 0.12);
  z-index: 1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -5%;
  animation: float 12s ease-in-out infinite;
}

.shape-2 {
  width: 180px;
  height: 180px;
  bottom: 15%;
  left: 5%;
  border-color: rgba(14, 165, 233, 0.08);
  animation: float 16s ease-in-out infinite reverse;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 25%;
  left: 15%;
  border-color: rgba(14, 165, 233, 0.15);
  animation: float 10s ease-in-out infinite 2s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 25%;
  right: 15%;
  border-color: rgba(14, 165, 233, 0.06);
  animation: float 14s ease-in-out infinite 4s;
}

/* Pulse glow */
.hero-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  animation: pulse 5s ease-in-out infinite;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--teal-400);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: badgePulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-dot {
  color: var(--teal-400);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal-400), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   Stats
   ============================================= */

.stats {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 48px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--teal-400);
}

.stat-label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
}

/* =============================================
   Features
   ============================================= */

.features {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.feature-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08),
              0 0 0 1px rgba(14, 165, 233, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 12px;
  color: var(--teal-500);
  margin-bottom: 20px;
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover .feature-icon {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

/* =============================================
   AI Showcase
   ============================================= */

.ai-showcase {
  background: var(--navy-900);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.ai-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 70% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
}

.ai-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-showcase-text {
  padding-right: 20px;
}

.ai-features-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-300);
}

.ai-check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 6px;
  color: var(--teal-400);
  flex-shrink: 0;
}

/* Chat Mockup */
.chat-mockup {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(14, 165, 233, 0.06);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

.chat-mockup:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

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

.chat-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  border-radius: 10px;
  color: var(--white);
}

.chat-header-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-400);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: badgePulse 2s ease-in-out infinite;
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 340px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-out);
}

.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-msg.user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg.ai .msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-200);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #22C55E;
  font-weight: 500;
}

.msg-details {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 2px solid var(--teal-500);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.chat-input-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gray-500);
  font-size: 14px;
}

.chat-input-mock svg {
  color: var(--teal-500);
}

/* =============================================
   How It Works
   ============================================= */

.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 340px;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--gray-100);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  border-radius: 14px;
  color: var(--teal-400);
  margin: 0 auto 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 90px;
  color: var(--gray-300);
}

/* =============================================
   Admin Section
   ============================================= */

.admin-section {
  padding: var(--section-pad) 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.admin-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(14, 165, 233, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(42, 74, 127, 0.08) 0%, transparent 100%);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
  margin-bottom: 64px;
}

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

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.4s var(--ease-out);
}

.admin-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

.admin-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  color: var(--teal-400);
  margin-bottom: 14px;
}

.admin-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.admin-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* Dashboard Mock */
.dashboard-mock {
  position: relative;
  z-index: 1;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

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

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
}

.dash-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-600);
  border-radius: 50%;
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 20px;
}

.dash-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 14px 16px;
}

.dash-stat-label {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 4px;
}

.dash-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.dash-stat-change {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

.dash-stat-change.positive {
  color: #22C55E;
}

.dash-stat-change.warning {
  color: #F59E0B;
}

.dash-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 20px;
}

.dash-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 14px 16px;
}

.dash-panel-header {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.dash-list-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-ticket {
  font-size: 12px;
  color: var(--gray-300);
}

.dash-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-badge.open {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.dash-badge.progress {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

.dash-badge.resolved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
}

.dash-badge.active {
  background: rgba(14, 165, 233, 0.15);
  color: var(--teal-400);
}

.dash-badge.used {
  background: rgba(148, 163, 184, 0.15);
  color: var(--gray-400);
}

/* =============================================
   Channels
   ============================================= */

.channels {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
}

.channel-card.featured {
  border-color: var(--teal-500);
  background: linear-gradient(to bottom, rgba(14, 165, 233, 0.03), var(--white));
}

.channel-card.featured:hover {
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
}

.channel-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 16px;
  color: var(--navy-700);
  margin: 0 auto 24px;
  transition: all 0.4s var(--ease-out);
}

.channel-card.featured .channel-icon {
  background: rgba(14, 165, 233, 0.08);
  color: var(--teal-500);
}

.channel-card:hover .channel-icon {
  background: var(--navy-900);
  color: var(--teal-400);
}

.channel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.channel-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

.channel-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal-500);
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* =============================================
   CTA Section
   ============================================= */

.cta-section {
  padding: var(--section-pad) 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(42, 74, 127, 0.1) 0%, transparent 100%);
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-form {
  max-width: 480px;
  margin: 0 auto;
}

.cta-input-wrapper {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.3s var(--ease-out);
}

.cta-input-wrapper:focus-within {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
}

.cta-input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
}

.cta-input::placeholder {
  color: var(--gray-500);
}

.cta-form .btn {
  border-radius: 10px;
  flex-shrink: 0;
}

.cta-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 14px;
}

/* =============================================
   Footer
   ============================================= */

.footer {
  background: var(--navy-950);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 18px;
}

.footer-tagline {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 12px;
  font-style: italic;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}

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

.footer-socials a {
  color: var(--gray-500);
  transition: color 0.3s;
  display: flex;
}

.footer-socials a:hover {
  color: var(--teal-400);
}

/* =============================================
   Animations
   ============================================= */

@keyframes meshShift {
  0% {
    background:
      radial-gradient(ellipse 60% 50% at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 100%),
      radial-gradient(ellipse 50% 60% at 80% 20%, rgba(42, 74, 127, 0.2) 0%, transparent 100%),
      radial-gradient(ellipse 40% 40% at 60% 85%, rgba(14, 165, 233, 0.06) 0%, transparent 100%),
      radial-gradient(ellipse 80% 50% at 50% 50%, rgba(27, 45, 79, 0.4) 0%, transparent 100%);
  }
  100% {
    background:
      radial-gradient(ellipse 50% 60% at 40% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 100%),
      radial-gradient(ellipse 60% 50% at 60% 30%, rgba(42, 74, 127, 0.15) 0%, transparent 100%),
      radial-gradient(ellipse 50% 50% at 30% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 100%),
      radial-gradient(ellipse 70% 60% at 70% 60%, rgba(27, 45, 79, 0.35) 0%, transparent 100%);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.admin-cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.admin-cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.admin-cards .reveal:nth-child(4) { transition-delay: 0.24s; }
.admin-cards .reveal:nth-child(5) { transition-delay: 0.32s; }
.admin-cards .reveal:nth-child(6) { transition-delay: 0.4s; }

.channels-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.channels-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.steps-grid .step-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.steps-grid .step-card.reveal:nth-child(5) { transition-delay: 0.3s; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

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

  .ai-showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ai-showcase-text {
    padding-right: 0;
    text-align: center;
  }

  .ai-features-list {
    align-items: center;
  }

  .chat-mockup {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }

  .chat-mockup:hover {
    transform: none;
  }

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

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

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

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

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .nav-links, .btn-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hide-mobile {
    display: none;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex-basis: 40%;
  }

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

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    max-width: 100%;
  }

  .admin-cards {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .dash-content-row {
    grid-template-columns: 1fr;
  }

  .cta-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .cta-form .btn {
    width: 100%;
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .section-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .feature-card {
    padding: 28px 24px;
  }

  .chat-body {
    min-height: 280px;
  }

  .dash-stats-row {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Legal / Policy Pages
   ============================================= */

.legal-hero {
  background: var(--navy-900);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(42, 74, 127, 0.08) 0%, transparent 100%);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

.legal-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 8px;
}

.legal-content {
  padding: 80px 0 120px;
  background: var(--gray-50);
}

.legal-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* Table of Contents */
.legal-toc {
  position: sticky;
  top: 100px;
}

.legal-toc h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--gray-200);
  transition: all 0.3s var(--ease-out);
  line-height: 1.4;
}

.legal-toc a:hover {
  color: var(--navy-900);
  border-left-color: var(--gray-400);
}

.legal-toc a.active {
  color: var(--teal-500);
  border-left-color: var(--teal-500);
  font-weight: 500;
}

/* Legal Body */
.legal-body {
  max-width: 740px;
}

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-800);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.legal-section ul {
  margin: 12px 0 20px;
  padding-left: 0;
  list-style: none;
}

.legal-section ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  padding: 4px 0 4px 24px;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
}

.legal-section ul li strong {
  color: var(--gray-700);
}

.legal-link {
  color: var(--teal-500);
  font-weight: 500;
  transition: color 0.3s;
}

.legal-link:hover {
  color: var(--teal-600);
}

.legal-callout {
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-600);
}

.legal-callout strong {
  color: var(--teal-600);
}

/* Security Page Cards */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.security-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s var(--ease-out);
}

.security-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
}

.security-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 10px;
  color: var(--teal-500);
  margin-bottom: 12px;
}

.security-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.security-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Security Table */
.security-table {
  margin: 20px 0;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.security-table-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
  align-items: center;
}

.security-table-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-100);
}

.security-table-row:nth-child(odd) {
  background: var(--white);
}

.security-table-row:nth-child(even) {
  background: var(--gray-50);
}

.security-table-row span:first-child {
  color: var(--navy-800);
  font-weight: 500;
}

.security-table-row span:last-child {
  color: var(--gray-500);
  line-height: 1.5;
}

/* Legal Page Responsive */
@media (max-width: 1024px) {
  .legal-container {
    grid-template-columns: 180px 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 110px 0 48px;
  }

  .legal-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-toc {
    position: relative;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
  }

  .legal-toc h4 {
    width: 100%;
    margin-bottom: 8px;
  }

  .legal-toc a {
    border-left: none;
    padding: 4px 0;
    font-size: 13px;
  }

  .legal-toc a.active {
    border-left: none;
  }

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

  .security-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-section h2 {
    font-size: 24px;
  }
}
