/**
 * Q-DASH Search Intelligence & Organic Growth Center (Platform V3)
 * Core Design Tokens, Analytics Terminal Typography, Card Color Hierarchy, Live Indicators & Layouts
 * File: assets/css/seo-platform-v3.css
 * Strictly Scoped to .seo3
 */

:root {
  --seo-navy: #091322;
  --seo-navy-deep: #040810;
  --seo-navy-terminal: #0c182c;
  --seo-navy-card: #112038;
  --seo-navy-border: #1a3052;
  --seo-orange: #f26522;
  --seo-orange-light: #ff7e3e;
  --seo-orange-hover: #d95315;
  --seo-orange-glow: rgba(242, 101, 34, 0.35);
  --seo-green: #10b981;
  --seo-green-glow: rgba(16, 185, 129, 0.3);
  --seo-cyan: #06b6d4;
  --seo-cyan-glow: rgba(6, 182, 212, 0.3);
  --seo-gold: #f59e0b;
  --seo-gold-glow: rgba(245, 158, 11, 0.3);
  --seo-red: #ef4444;
  --seo-purple: #8b5cf6;
  --seo-cream: #faf8f5;
  --seo-alabaster: #f2ecdf;
  --seo-white: #ffffff;
  --seo-slate-50: #f8fafc;
  --seo-slate-100: #f1f5f9;
  --seo-slate-200: #e2e8f0;
  --seo-slate-300: #cbd5e1;
  --seo-slate-400: #94a3b8;
  --seo-slate-600: #475569;
  --seo-slate-700: #334155;
  --seo-slate-800: #1e293b;
  --seo-slate-900: #0f172a;
  --seo-text-dark: #0f172a;
  --seo-text-muted: #475569;
  --seo-text-light: #f8fafc;
  --seo-text-dim: #94a3b8;
  --seo-radius-sm: 8px;
  --seo-radius-md: 14px;
  --seo-radius-lg: 20px;
  --seo-radius-xl: 30px;
  --seo-shadow-soft: 0 10px 28px rgba(9, 19, 34, 0.08);
  --seo-shadow-elevated: 0 18px 45px rgba(9, 19, 34, 0.14);
  --seo-shadow-terminal: 0 25px 60px rgba(4, 8, 16, 0.7);
  --seo-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.seo3 {
  font-family: inherit;
  color: var(--seo-text-dark);
  background-color: var(--seo-cream);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.seo3 a:focus-visible,
.seo3 button:focus-visible,
.seo3 input:focus-visible,
.seo3 select:focus-visible,
.seo3 textarea:focus-visible {
  outline: 3px solid var(--seo-orange);
  outline-offset: 3px;
}

/* Container */
.seo3-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Structure */
.seo3-section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 54px);
  position: relative;
}

.seo3-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
  color: var(--seo-orange);
  border: 1px solid rgba(242, 101, 34, 0.35);
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.1);
}

.seo3-badge-orange {
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.2) 0%, rgba(255, 126, 62, 0.12) 100%);
  color: #f26522;
  border-color: rgba(242, 101, 34, 0.45);
}

.seo3-badge-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(34, 211, 238, 0.12) 100%);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.45);
}

.seo3-badge-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.12) 100%);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.45);
}

.seo3-badge-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.12) 100%);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
}

.seo3-sec-dark .seo3-section-badge {
  background: rgba(242, 101, 34, 0.2);
  color: #ff9d6c;
  border-color: rgba(242, 101, 34, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.seo3-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 16px auto;
  width: 160px;
}

.seo3-title-divider::before,
.seo3-title-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--seo-orange), transparent);
}

.seo3-title-divider span {
  color: var(--seo-orange);
  font-size: 0.95rem;
  animation: seoPulse 2s infinite ease-in-out;
}

/* Typography Scale & Stylistic Variants */
.seo3-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  color: var(--seo-navy);
}

.seo3-h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--seo-navy);
  letter-spacing: -0.01em;
}

.seo3-h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px 0;
  color: var(--seo-navy);
}

.seo3-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--seo-text-muted);
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Color Highlights */
.seo3-orange-text {
  background: linear-gradient(135deg, var(--seo-orange) 0%, #ff8548 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.seo3-cyan-text {
  background: linear-gradient(135deg, #06b6d4 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.seo3-green-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Sections Rhythm & Backgrounds */
.seo3-sec {
  padding: clamp(65px, 8vw, 110px) 0;
  position: relative;
}

.seo3-sec-light {
  background-color: var(--seo-cream);
  color: var(--seo-text-dark);
}

.seo3-sec-white {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  color: var(--seo-text-dark);
}

.seo3-sec-alabaster {
  background: linear-gradient(180deg, var(--seo-alabaster) 0%, #e8dfcc 100%);
  color: var(--seo-text-dark);
}

.seo3-sec-dark {
  background: radial-gradient(circle at 80% 20%, #152442 0%, var(--seo-navy) 60%, var(--seo-navy-deep) 100%);
  color: var(--seo-text-light);
}

.seo3-sec-dark .seo3-h2,
.seo3-sec-dark .seo3-h3 {
  color: var(--seo-white);
}

.seo3-sec-dark .seo3-lead {
  color: var(--seo-text-dim);
}

/* Hero Section */
.seo3-sec-hero {
  background: 
    radial-gradient(ellipse at 85% 0%, rgba(242, 101, 34, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 100%, rgba(6, 182, 212, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 50% 10%, #12223c 0%, #091322 55%, #040810 100%);
  color: var(--seo-text-light);
  border-bottom: 1px solid rgba(242, 101, 34, 0.3);
  position: relative;
  overflow: hidden;
}

.seo3-sec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 182, 212, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

.seo3-sec-hero .seo3-h1 {
  color: #ffffff;
}

.seo3-sec-hero .seo3-lead {
  color: #cbd5e1;
}

.seo3-hero-features {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
  flex-wrap: wrap;
  margin-top: 24px;
}

.seo3-hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Action Buttons */
.seo3-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--seo-orange) 0%, #ff7e3e 100%);
  color: var(--seo-white) !important;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(242, 101, 34, 0.35);
  transition: var(--seo-transition);
}

.seo3-btn-primary:hover {
  background: linear-gradient(135deg, #e05412 0%, var(--seo-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(242, 101, 34, 0.45);
}

.seo3-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  background: #25d366;
  color: var(--seo-white) !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
  transition: var(--seo-transition);
}

.seo3-btn-wa:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

/* Grids */
.seo3-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.seo3-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.seo3-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.seo3-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* =========================================================
   CARD STYLES & COLOR VARIETY (Search Analytics Hierarchy)
   ========================================================= */

.seo3-card {
  background: var(--seo-white);
  border-radius: var(--seo-radius-lg);
  border: 1px solid rgba(242, 101, 34, 0.2);
  box-shadow: var(--seo-shadow-soft);
  padding: clamp(22px, 3vw, 34px);
  transition: var(--seo-transition);
  position: relative;
  overflow: hidden;
}

.seo3-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--seo-shadow-elevated);
  border-color: var(--seo-orange);
}

.seo3-card-navy {
  background: linear-gradient(145deg, #0e1c34 0%, #060d1a 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--seo-radius-lg);
  box-shadow: 0 14px 40px rgba(4, 8, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: clamp(22px, 3vw, 34px);
  color: #ffffff;
  transition: var(--seo-transition);
}

.seo3-card-navy:hover {
  transform: translateY(-6px);
  border-color: #06b6d4;
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.25);
}

.seo3-card-navy .seo3-h3 { color: #ffffff; }
.seo3-card-navy p { color: #cbd5e1; }

.seo3-card-accent {
  background: linear-gradient(145deg, #fff9f5 0%, #fff0e7 100%);
  border: 1.5px solid rgba(242, 101, 34, 0.4);
  border-radius: var(--seo-radius-lg);
  box-shadow: 0 12px 32px rgba(242, 101, 34, 0.12);
  padding: clamp(22px, 3vw, 34px);
  transition: var(--seo-transition);
}

.seo3-card-accent:hover {
  transform: translateY(-6px);
  border-color: var(--seo-orange);
  box-shadow: 0 18px 45px rgba(242, 101, 34, 0.22);
}

.seo3-card-accent .seo3-h3 { color: var(--seo-orange); }

.seo3-card-cyan {
  background: linear-gradient(145deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--seo-radius-lg);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
  padding: clamp(22px, 3vw, 34px);
  transition: var(--seo-transition);
}

.seo3-card-cyan:hover {
  transform: translateY(-6px);
  border-color: #06b6d4;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.22);
}

.seo3-card-cyan .seo3-h3 { color: #0891b2; }

.seo3-card-gold {
  background: linear-gradient(145deg, #fffdf8 0%, #fef7e7 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--seo-radius-lg);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12);
  padding: clamp(22px, 3vw, 34px);
  transition: var(--seo-transition);
}

.seo3-card-gold:hover {
  transform: translateY(-6px);
  border-color: #f59e0b;
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.22);
}

.seo3-card-gold .seo3-h3 { color: #d97706; }

.seo3-card-slate {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--seo-radius-lg);
  box-shadow: var(--seo-shadow-elevated);
  padding: clamp(22px, 3vw, 34px);
  color: #ffffff;
  transition: var(--seo-transition);
}

.seo3-card-slate:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.2);
}

.seo3-card-slate .seo3-h3 { color: #ffffff; }
.seo3-card-slate p { color: #cbd5e1; }

/* Demo Badge */
.seo3-demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--seo-slate-400);
  border: 1px solid rgba(148, 163, 184, 0.3);
  text-transform: uppercase;
}

/* Keyframe Animations */
@keyframes seoPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px var(--seo-orange)); }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes seoFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* FAQ Accordion */
.seo3-faq-item {
  border-bottom: 1px solid rgba(9, 19, 34, 0.08);
  padding: 20px 0;
}

.seo3-faq-item:last-child {
  border-bottom: none;
}

.seo3-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--seo-navy);
  text-align: start;
  cursor: pointer;
}

.seo3-faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(242, 101, 34, 0.1);
  color: var(--seo-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--seo-transition);
}

.seo3-faq-item.active .seo3-faq-icon {
  transform: rotate(45deg);
  background: var(--seo-orange);
  color: #fff;
}

.seo3-faq-answer {
  display: none;
  padding-top: 14px;
  font-size: 0.95rem;
  color: var(--seo-text-muted);
  line-height: 1.7;
}

.seo3-faq-item.active .seo3-faq-answer {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .seo3-grid-3,
  .seo3-grid-4,
  .seo3-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .seo3-grid-2,
  .seo3-grid-3,
  .seo3-grid-4,
  .seo3-grid-5 {
    grid-template-columns: 1fr;
  }
  .seo3-sec {
    padding: 50px 0;
  }
  .seo3-btn-primary,
  .seo3-btn-wa {
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .seo3 *,
  .seo3 *::before,
  .seo3 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
