/* ==========================================================================
   TAG - Cosmic Midnight Orbit UI Theme (Matching Reference Image 2)
   Obsidian Matrix Canvas | Cosmic Violet & Cyan Ambient Glows
   Concentric Orbital Constellation | Precision Floating Cards | Pill CTA
   High-Contrast WCAG-Compliant Typography for Both Light & Dark Modes
   ========================================================================== */

:root {
  /* Day / Light Mode (High Contrast & Crystal-Clear Readability) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-orbit-center: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(255, 255, 255, 0.98) 75%);

  --border-subtle: #cbd5e1;
  --border-light: #e2e8f0;
  --border-active: #2563eb;
  --border-glass: rgba(0, 0, 0, 0.08);

  /* Orbit Card High-Contrast Floating Colors (Light Mode) */
  --bg-orbit-card: #ffffff;
  --border-orbit-card: #cbd5e1;
  --shadow-orbit-card: 0 12px 32px rgba(15, 23, 42, 0.1), 0 3px 8px rgba(15, 23, 42, 0.04);
  --orbit-card-title: #0f172a;
  --orbit-card-sub: #334155;
  --orbit-card-icon-bg: #f1f5f9;

  /* Crisp Typography Colors (Light Mode) */
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #334155;
  --text-dim: #475569;
  --text-inverse: #ffffff;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  --dot-color: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

/* Dark Mode - Exact Image 2 Cosmic Midnight Atmosphere */
[data-theme="dark"] {
  --bg-primary: #06070e;
  --bg-secondary: #0c0e18;
  --bg-tertiary: #111422;
  --bg-card: #0d101d;
  --bg-card-hover: #13172a;
  --bg-glass: rgba(6, 7, 14, 0.85);
  --bg-orbit-center: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(13, 16, 29, 0.95) 70%);

  --border-subtle: #191d2f;
  --border-light: #121524;
  --border-active: #38bdf8;
  --border-glass: rgba(255, 255, 255, 0.1);

  /* Orbit Card High-Contrast Floating Colors (Dark Mode) */
  --bg-orbit-card: rgba(13, 16, 29, 0.92);
  --border-orbit-card: rgba(255, 255, 255, 0.14);
  --shadow-orbit-card: 0 14px 40px rgba(0, 0, 0, 0.7);
  --orbit-card-title: #ffffff;
  --orbit-card-sub: #cbd5e1;
  --orbit-card-icon-bg: rgba(255, 255, 255, 0.08);

  /* Crisp Typography Colors (Dark Mode) */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #06070e;

  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.45);

  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --dot-color: rgba(255, 255, 255, 0.075);
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  /* Dotted Grid Background from Image 2 */
  background-image: 
    radial-gradient(var(--dot-color) 1.2px, transparent 1.2px),
    radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-size: 28px 28px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Precision Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand Logo (Strictly TAG) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

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

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

[data-theme="dark"] .nav-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #38bdf8;
}

.nav-link-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

[data-theme="dark"] .nav-link-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button - Refined & Translucent */
.theme-toggle-btn {
  background: rgba(125, 125, 125, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(125, 125, 125, 0.16);
  border-color: var(--border-active);
  color: var(--primary);
}

[data-theme="dark"] .theme-toggle-btn {
  color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  color: #38bdf8;
}

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

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  padding: 7px;
}

/* Buttons (Pill-shaped CTA matching Image 2) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 18px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 13px 30px;
  font-size: 1.02rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 4px 16px var(--primary-glow);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* ==========================================================================
   Hero Section - Replicating Image 2 Exact Split Layout
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

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

/* Hero Left Column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-capsule-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  box-shadow: none;
}

.capsule-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-headline {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
  max-width: 530px;
  margin-bottom: 34px;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Bottom 3 Metrics Columns from Image 2 */
.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.metric-item-num {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0284c7;
  line-height: 1.1;
  margin-bottom: 4px;
}

[data-theme="dark"] .metric-item-num {
  color: #38bdf8;
}

.metric-item-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Hero Right Column - Concentric Orbital Constellation */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.orbit-system {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Concentric Orbital Rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  width: 450px;
  height: 450px;
  border: 1px dashed rgba(99, 102, 241, 0.22);
  animation: rotate-slow 90s linear infinite;
}

.ring-mid {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(2, 132, 199, 0.2);
  animation: rotate-reverse 60s linear infinite;
}

.ring-inner {
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(124, 58, 237, 0.28);
}

[data-theme="dark"] .ring-outer { border-color: rgba(139, 92, 246, 0.18); }
[data-theme="dark"] .ring-mid { border-color: rgba(56, 189, 248, 0.16); }
[data-theme="dark"] .ring-inner { border-color: rgba(168, 85, 247, 0.25); }

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Orbit Center Planetary Core with "TAG" */
.orbit-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-orbit-center);
  border: 2px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

[data-theme="dark"] .orbit-core {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4), inset 0 0 20px rgba(124, 58, 237, 0.3);
}

.orbit-core-text {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #1d4ed8;
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .orbit-core-text {
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

/* Orbiting Satellites */
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 15;
}

.dot-1 {
  width: 8px;
  height: 8px;
  background: #0284c7;
  box-shadow: 0 0 10px #0284c7;
  top: 90px;
  left: 170px;
  animation: pulse-dot 3s infinite;
}

.dot-2 {
  width: 6px;
  height: 6px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  top: 140px;
  right: 170px;
}

.dot-3 {
  width: 8px;
  height: 8px;
  background: #7c3aed;
  box-shadow: 0 0 10px #7c3aed;
  bottom: 120px;
  left: 140px;
}

.dot-4 {
  width: 7px;
  height: 7px;
  background: #d97706;
  box-shadow: 0 0 10px #d97706;
  bottom: 160px;
  right: 150px;
}

[data-theme="dark"] .dot-1 { background: #38bdf8; box-shadow: 0 0 12px #38bdf8; }
[data-theme="dark"] .dot-3 { background: #a855f7; box-shadow: 0 0 12px #a855f7; }
[data-theme="dark"] .dot-4 { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* ==========================================================================
   3 Floating Orbit Glass Cards - Optimized for 100% Crystal-Clear Readability
   ========================================================================== */
.orbit-card {
  position: absolute;
  background: var(--bg-orbit-card);
  border: 1px solid var(--border-orbit-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-orbit-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: default;
}

.orbit-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-active);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .orbit-card:hover {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85);
}

.orbit-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--orbit-card-icon-bg);
  flex-shrink: 0;
}

.orbit-card-text {
  display: flex;
  flex-direction: column;
}

.orbit-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--orbit-card-title);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.orbit-card-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orbit-card-sub);
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* Card Positioning matching Image 2 */
.card-iepl {
  top: 80px;
  right: 0;
}

.card-res {
  top: 240px;
  right: -20px;
}

.card-map {
  bottom: 100px;
  left: -20px;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 500;
}

/* Core Advantages (3 Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

[data-theme="dark"] .feature-icon-box {
  color: #38bdf8;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 22px;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-top: auto;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list svg {
  color: #059669;
  flex-shrink: 0;
}

[data-theme="dark"] .feature-list svg {
  color: #10b981;
}

/* Media & AI Sections */
.media-ai-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.showcase-card:hover {
  border-color: var(--border-active);
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.showcase-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

[data-theme="dark"] .showcase-badge-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.showcase-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
}

.showcase-tagline {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dim);
}

.showcase-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 22px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.app-item:hover {
  border-color: var(--border-active);
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.icon-netflix { background: #e50914; }
.icon-youtube { background: #ff0000; }
.icon-disney { background: #0063e5; }
.icon-hbo { background: #5822b4; }
.icon-chatgpt { background: #10a37f; }
.icon-claude { background: #cc785c; }
.icon-midjourney { background: #121317; }
.icon-copilot { background: #0969da; }

.app-details {
  overflow: hidden;
}

.app-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-status {
  font-size: 0.76rem;
  font-weight: 600;
  color: #059669;
}

[data-theme="dark"] .app-status {
  color: #10b981;
}

/* Pricing Grid (Authentic TAG Pricing) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.04) 100%);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  padding: 3px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-currency {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-alt-cycle {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.pricing-features li svg {
  color: #0284c7;
  flex-shrink: 0;
}

[data-theme="dark"] .pricing-features li svg {
  color: #38bdf8;
}

.pricing-cta {
  width: 100%;
}

/* User Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.review-rating {
  display: flex;
  gap: 4px;
  color: #d97706;
  margin-bottom: 14px;
}

[data-theme="dark"] .review-rating {
  color: #f59e0b;
}

.review-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
}

.author-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-active);
}

.faq-question {
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-tertiary);
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

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

[data-theme="dark"] .faq-item.active .faq-icon {
  color: #38bdf8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 22px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  padding-bottom: 18px;
  padding-top: 2px;
  border-top: 1px solid var(--border-subtle);
}

/* Bottom CTA Banner */
.cta-banner-section {
  padding: 70px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 54px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.cta-banner-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Footer - STRICTLY 4 TITLES ONLY (Opening new page) */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 28px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

[data-theme="dark"] .footer-link:hover {
  color: #38bdf8;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Sub-Pages Styling (about, terms, privacy, sitemap, insights) */
.subpage-hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.subpage-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.subpage-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
}

.subpage-body {
  padding: 50px 0 70px;
  max-width: 860px;
  margin: 0 auto;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}

.content-block h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: #0284c7;
  border-radius: 2px;
  display: inline-block;
}

[data-theme="dark"] .content-block h2::before {
  background: #38bdf8;
}

.content-block p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: 14px;
}

.content-block ul {
  list-style: none;
  margin: 14px 0;
}

.content-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-block ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #0284c7;
  font-weight: bold;
}

[data-theme="dark"] .content-block ul li::before {
  color: #38bdf8;
}

/* Insights Feed */
.insights-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-fast);
}

.article-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.article-category {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .article-category {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.article-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 16px;
}

.article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.article-link-btn {
  color: #0284c7;
  font-weight: 700;
}

[data-theme="dark"] .article-link-btn {
  color: #38bdf8;
}

/* Responsive Media Queries (@media) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btn-row {
    justify-content: center;
  }
  .hero-metrics-row {
    max-width: 500px;
    margin: 0 auto;
  }
  .features-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-card);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-headline {
    font-size: 2.6rem;
  }

  .hero-btn-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btn-row .btn {
    width: 100%;
    padding: 13px 20px;
  }

  .orbit-system {
    width: 320px;
    height: 320px;
    transform: scale(0.85);
  }

  .ring-outer { width: 310px; height: 310px; }
  .ring-mid { width: 220px; height: 220px; }
  .ring-inner { width: 140px; height: 140px; }

  .card-iepl { top: 0; right: -10px; }
  .card-res { top: 120px; right: -25px; }
  .card-map { bottom: 0; left: -20px; }

  .orbit-card {
    padding: 8px 14px;
    gap: 8px;
  }

  .orbit-card-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .orbit-card-title {
    font-size: 0.88rem;
  }

  .orbit-card-sub {
    font-size: 0.72rem;
  }

  .features-grid,
  .media-ai-container,
  .pricing-grid,
  .reviews-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-metrics-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Long-form SEO Article Page System (High Authority, TOC, FAQ, Breadcrumbs)
   ========================================================================== */
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  opacity: 0.5;
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main Article Card */
.article-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .article-main-card {
    padding: 26px 18px;
    border-radius: var(--radius-md);
  }
  .breadcrumb-current {
    max-width: 220px;
  }
}

/* Article Header */
.article-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.article-header-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

[data-theme="dark"] .article-header-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.article-h1 {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .article-h1 {
    font-size: 1.6rem;
  }
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
}

.article-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Table of Contents (TOC) */
.article-toc {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 32px 0 40px;
}

.toc-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item {
  font-size: 0.94rem;
}

.toc-item.level-2 {
  font-weight: 600;
}

.toc-item.level-3 {
  padding-left: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.toc-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Article Typography and Content Elements */
.article-body {
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 46px 0 18px;
  padding-top: 10px;
  border-left: 4px solid #0284c7;
  padding-left: 14px;
  letter-spacing: -0.4px;
  scroll-margin-top: 90px;
}

[data-theme="dark"] .article-body h2 {
  border-left-color: #38bdf8;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 14px;
  scroll-margin-top: 90px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-primary);
}

.article-body a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .article-body a {
  color: #38bdf8;
}

.article-body ul, .article-body ol {
  padding-left: 26px;
  margin-bottom: 22px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}

/* Callout Boxes */
.callout-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.callout-tip {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.callout-warn {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.callout-highlight {
  border-left: 4px solid #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.callout-title {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

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

.article-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

.article-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Code Snippets */
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Promotional CTA Box inside Article */
.article-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin: 44px 0;
  text-align: center;
}

[data-theme="dark"] .article-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(56, 189, 248, 0.12) 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

.article-cta-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
}

/* FAQ Section in Article */
.article-faq-section {
  margin-top: 54px;
  border-top: 2px dashed var(--border-subtle);
  padding-top: 36px;
}

.article-faq-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-qa-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-qa-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-qa-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  padding-left: 24px;
}

/* Related Reading Section */
.related-articles-section {
  margin-top: 54px;
  border-top: 2px dashed var(--border-subtle);
  padding-top: 36px;
}

.related-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.related-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  text-decoration: none !important;
}

.related-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.related-card-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 8px;
}

[data-theme="dark"] .related-card-tag {
  color: #38bdf8;
}

.related-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.related-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.related-card-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-disclaimer {
  margin-top: 36px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

