/* ============================================================
   AI Service Platform - Public Website Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@200;300;400;500;600;700&family=Nunito:wght@300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', 'Mitr', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navbar
   ============================================================ */
#navbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-link {
  color: #94a3b8;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

.nav-link.active {
  color: #818cf8;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem;
  display: none;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #94a3b8;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-dropdown-item:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

/* Language switcher */
.lang-btn {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

/* Mobile nav */
.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  color: #94a3b8;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

.mobile-nav-sub {
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  background: radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    #0f172a;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.12);
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.08);
  top: 40%;
  left: 40%;
  animation: float 12s ease-in-out infinite 2s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(2deg);
  }

  66% {
    transform: translateY(10px) rotate(-1deg);
  }
}

/* Hero title gradient */
.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats */
.stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

/* ============================================================
   Gradient Text
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  color: white;
  border-color: rgba(99, 102, 241, 0.7);
  background: rgba(99, 102, 241, 0.1);
}

/* ============================================================
   Feature Cards
   ============================================================ */
.feature-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #818cf8;
  margin-bottom: 1rem;
}

/* ============================================================
   News Cards
   ============================================================ */
.news-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(30, 41, 59, 1);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.news-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(99, 102, 241, 0.4);
}

.news-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Category filter buttons */
.category-btn {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: white;
}

/* Pagination */
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: white;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   CTA Card
   ============================================================ */
.cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

/* ============================================================
   Page Content (prose)
   ============================================================ */
.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  color: #f1f5f9;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom h1 {
  font-size: 2rem;
}

.prose-custom h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 0.5rem;
}

.prose-custom h3 {
  font-size: 1.3rem;
  color: #818cf8;
}

.prose-custom p {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose-custom ul,
.prose-custom ol {
  color: #94a3b8;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose-custom a {
  color: #818cf8;
  text-decoration: underline;
}

.prose-custom a:hover {
  color: #a5b4fc;
}

.prose-custom img {
  border-radius: 0.75rem;
  max-width: 100%;
}

.prose-custom blockquote {
  border-left: 3px solid #6366f1;
  padding-left: 1.25rem;
  color: #64748b;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.prose-custom th {
  background: rgba(99, 102, 241, 0.15);
  color: #e2e8f0;
  padding: 0.75rem;
  text-align: left;
}

.prose-custom td {
  border-top: 1px solid rgba(30, 41, 59, 1);
  color: #94a3b8;
  padding: 0.75rem;
}

.prose-custom code {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-family: monospace;
  color: #a5b4fc;
  font-size: 0.9em;
}

.prose-custom pre {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-custom pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   Intro — Brain Visualization
   ============================================================ */
.brain-container {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(10px);
}

.brain-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.3s;
}

.brain-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.brain-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.memory-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  color: #a5b4fc;
}

/* ============================================================
   How it Works — Step Flow
   ============================================================ */
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.step-card {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.step-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
}

.code-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.25rem;
  padding: 0.1rem 0.4rem;
  font-family: monospace;
  font-size: 0.8em;
  color: #a5b4fc;
}

/* ============================================================
   Pricing Cards
   ============================================================ */
.pricing-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
}

.pricing-card-featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.pricing-card-featured:hover {
  transform: translateY(-6px);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-price {
  margin: 0.75rem 0;
}

.pricing-divider {
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  margin: 1.25rem 0;
}

.pricing-feature {
  color: #94a3b8;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.pricing-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pricing-btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.pricing-btn-secondary:hover {
  color: white;
  border-color: rgba(99, 102, 241, 0.7);
  background: rgba(99, 102, 241, 0.08);
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* ============================================================
   LIGHT THEME OVERRIDE — วางไว้ท้ายสุดของ style.css
   ============================================================ */

/* ─── CSS Variables ─── */
:root {
  --brand: #13417c;
  --brand-dark: #0d2f5a;
  --brand-mid: #1a5299;
  --brand-light: #2969c0;
  --brand-pale: #e8f0fb;
  --brand-pale2: #f0f5ff;
  --white: #ffffff;
  --bg: #f4f7fc;
  --bg2: #eaf0f9;
  --surface: #ffffff;
  --border: #cfdcef;
  --border-light: #e2ecf7;
  --text: #0d1f35;
  --text-mid: #2c4a6e;
  --text-muted: #5a7a9e;
  --text-faint: #8aa4c0;
  --shadow-sm: 0 1px 8px rgba(19, 65, 124, 0.07);
  --shadow-md: 0 4px 24px rgba(19, 65, 124, 0.11);
  --shadow-lg: 0 8px 48px rgba(19, 65, 124, 0.15);
}

/* ─── Base overrides ─── */
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navbar ─── */
#navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

#site-name {
  color: var(--brand) !important;
}

#desktop-nav a {
  color: var(--text-mid) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  transition: all .2s;
}

#desktop-nav a:hover {
  color: var(--brand) !important;
  background: var(--brand-pale);
}

.lang-btn {
  color: var(--text-muted) !important;
  background: transparent !important;
}

.lang-btn.active {
  background: var(--brand) !important;
  color: #fff !important;
}

/* lang switch container */
nav .flex.items-center.bg-slate-800 {
  background: var(--bg2) !important;
  border: 1px solid var(--border);
}

#mobile-menu-btn {
  color: var(--text-muted) !important;
}

#mobile-nav {
  background: #fff !important;
  border-color: var(--border) !important;
}

#mobile-nav a {
  color: var(--text-mid) !important;
}

/* ─── Hero ─── */
.hero-section {
  background: linear-gradient(160deg, #ffffff 0%, #eaf1fb 45%, #daeaf8 100%) !important;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 80% 20%, rgba(19, 65, 124, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(41, 105, 192, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* hide dark orbs, use light grid */
.orb {
  display: none !important;
}

.grid-overlay {
  opacity: 0.03 !important;
  background-image:
    linear-gradient(var(--brand) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

/* Hero badge */
.hero-section [class*="bg-indigo-500/10"] {
  background: rgba(19, 65, 124, 0.07) !important;
  border-color: rgba(19, 65, 124, 0.2) !important;
}

.hero-section [class*="text-indigo-300"] {
  color: var(--brand) !important;
}

.hero-section [class*="bg-green-400"] {
  background: #22c55e !important;
}

/* Hero headline */
.hero-title-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 60%, #3b82f6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hero subtitle */
#hero-subtitle {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn-primary {
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(19, 65, 124, 0.25) !important;
  font-weight: 600;
  border-radius: 9px;
  padding: 11px 24px;
  transition: all .2s;
}

.btn-primary:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(19, 65, 124, 0.3) !important;
}

.btn-secondary {
  background: #fff !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--border) !important;
  font-weight: 600;
  border-radius: 9px;
  padding: 11px 24px;
  transition: all .2s;
}

.btn-secondary:hover {
  border-color: var(--brand) !important;
  background: var(--brand-pale) !important;
}

/* Stats */
.stat-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
}

.stat-card [class*="text-indigo-400"] {
  color: var(--brand) !important;
}

.stat-card [class*="text-violet-400"] {
  color: var(--brand-mid) !important;
}

.stat-card [class*="text-cyan-400"] {
  color: var(--brand-light) !important;
}

.stat-card [class*="text-emerald-400"] {
  color: #0f7c4e !important;
}

.stat-card [class*="text-slate-400"] {
  color: var(--text-muted) !important;
}

/* ─── Philosophy section ─── */
#philosophy {
  background: #fff !important;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

#philosophy .absolute {
  background: none !important;
}

#philosophy [class*="bg-indigo-500/10"] {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.15) !important;
}

#philosophy [class*="text-indigo-400"] {
  color: var(--brand) !important;
}

#philosophy [class*="text-indigo-300"] {
  color: var(--brand) !important;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

#philosophy [class*="text-slate-400"] {
  color: var(--text-muted) !important;
}

/* ─── Features section ─── */
#features {
  background: var(--bg) !important;
}

#features [class*="bg-indigo-500/10"] {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.15) !important;
}

#features [class*="text-indigo-300"] {
  color: var(--brand) !important;
}

#features [class*="text-indigo-400"] {
  color: var(--brand) !important;
}

/* feature cards (loaded via JS — pre-style the grid wrapper) */
#features-grid>div,
.feature-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all .2s !important;
}

#features-grid>div:hover,
.feature-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
  border-color: rgba(19, 65, 124, 0.25) !important;
}

/* ─── Pricing section ─── */
#pricing {
  background: var(--bg2) !important;
}

#pricing [class*="bg-violet-500/10"] {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.15) !important;
}

#pricing [class*="text-violet-300"],
#pricing [class*="text-violet-400"] {
  color: var(--brand) !important;
}

.pricing-card {
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all .2s !important;
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px);
}

.pricing-card-featured {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md) !important;
}

.pricing-popular-badge {
  background: var(--brand) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 0;
  right: 24px;
}

.pricing-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-icon.bg-indigo-500\/20 {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.2) !important;
}

.pricing-icon.bg-violet-500\/30 {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.25) !important;
}

.pricing-icon.bg-cyan-500\/20 {
  background: var(--brand-pale2) !important;
  border-color: rgba(19, 65, 124, 0.15) !important;
}

.pricing-icon [class*="text-indigo-400"],
.pricing-icon [class*="text-violet-400"],
.pricing-icon [class*="text-cyan-400"] {
  color: var(--brand) !important;
}

.pricing-card h3 {
  color: var(--text) !important;
}

.pricing-card [class*="text-indigo-400"],
.pricing-card [class*="text-violet-300"],
.pricing-card [class*="text-cyan-400"] {
  color: var(--brand-mid) !important;
}

.pricing-card [class*="text-slate-400"],
.pricing-card [class*="text-slate-500"] {
  color: var(--text-muted) !important;
}

.pricing-card [class*="text-slate-300"] {
  color: var(--text-mid) !important;
}

.pricing-divider {
  border-top: 1px solid var(--border-light) !important;
  margin: 16px 0;
}

.pricing-feature {
  color: var(--text-mid) !important;
  font-size: 13px;
}

/* price info boxes */
.pricing-card [class*="bg-indigo-500/5"],
.pricing-card [class*="bg-cyan-500/5"] {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.12) !important;
}

.pricing-card [class*="bg-violet-500/10"] {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.15) !important;
}

.pricing-card [class*="text-indigo-300"],
.pricing-card [class*="text-violet-200"],
.pricing-card [class*="text-cyan-300"] {
  color: var(--brand) !important;
}

.pricing-card [class*="text-violet-400"],
.pricing-card [class*="text-cyan-400/70"] {
  color: var(--brand-mid) !important;
  opacity: 1 !important;
}

.pricing-btn-primary {
  display: block;
  text-align: center;
  background: var(--brand) !important;
  color: #fff !important;
  padding: 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(19, 65, 124, 0.2);
}

.pricing-btn-primary:hover {
  background: var(--brand-dark) !important;
  box-shadow: 0 4px 20px rgba(19, 65, 124, 0.3);
}

.pricing-btn-secondary {
  display: block;
  text-align: center;
  background: transparent !important;
  color: var(--brand) !important;
  padding: 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border) !important;
  transition: all .2s;
}

.pricing-btn-secondary:hover {
  border-color: var(--brand) !important;
  background: var(--brand-pale) !important;
}

/* ─── A Day with Weiss ─── */
#a-day-with-weiss {
  background: #fff !important;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

#a-day-with-weiss [class*="bg-emerald-500/10"] {
  background: rgba(15, 124, 78, 0.07) !important;
  border-color: rgba(15, 124, 78, 0.15) !important;
}

#a-day-with-weiss [class*="text-emerald-300"] {
  color: #0f7c4e !important;
}

#a-day-with-weiss [class*="text-emerald-400"] {
  color: #0f7c4e !important;
}

/* timeline line */
#a-day-with-weiss .before\:bg-gradient-to-b::before {
  background: linear-gradient(to bottom, transparent, var(--border), transparent) !important;
}

/* timeline circles */
#a-day-with-weiss [class*="rounded-full.border"] {
  background: #fff !important;
  border-color: var(--border) !important;
}

/* timeline cards */
#a-day-with-weiss [class*="border-slate-800"] {
  border-color: var(--border) !important;
  background: var(--bg) !important;
  box-shadow: var(--shadow-sm);
}

#a-day-with-weiss [class*="text-slate-100"] {
  color: var(--text) !important;
}

#a-day-with-weiss [class*="text-slate-400"] {
  color: var(--text-muted) !important;
}

#a-day-with-weiss [class*="text-indigo-400"] {
  color: var(--brand) !important;
}

#a-day-with-weiss [class*="text-violet-400"] {
  color: var(--brand-mid) !important;
}

/* timeline icon circles */
#a-day-with-weiss .shrink-0.rounded-full {
  background: #fff !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
}

#a-day-with-weiss [class*="text-slate-500"] {
  color: var(--text-faint) !important;
}

/* ─── ICP section ─── */
#icp {
  background: var(--bg) !important;
}

#icp [class*="bg-indigo-500/10"] {
  background: var(--brand-pale) !important;
  border-color: rgba(19, 65, 124, 0.15) !important;
}

#icp [class*="text-indigo-300"] {
  color: var(--brand) !important;
}

#icp [class*="bg-slate-900/50"] {
  background: #fff !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm);
}

#icp [class*="bg-slate-900/50"]:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

#icp [class*="bg-indigo-500/10"].w-12 {
  background: var(--brand-pale) !important;
}

#icp [class*="bg-violet-500/10"].w-12 {
  background: rgba(19, 65, 124, 0.07) !important;
}

#icp [class*="bg-emerald-500/10"].w-12 {
  background: rgba(15, 124, 78, 0.07) !important;
}

#icp [class*="bg-cyan-500/10"].w-12 {
  background: rgba(19, 65, 124, 0.05) !important;
}

#icp [class*="text-indigo-400"] {
  color: var(--brand) !important;
}

#icp [class*="text-violet-400"] {
  color: var(--brand-mid) !important;
}

#icp [class*="text-emerald-400"] {
  color: #0f7c4e !important;
}

#icp [class*="text-cyan-400"] {
  color: var(--brand-light) !important;
}

#icp [class*="text-slate-100"] {
  color: var(--text) !important;
}

#icp [class*="text-slate-400"] {
  color: var(--text-muted) !important;
}

/* hover states for ICP cards */
#icp [class*="hover:border-indigo-500/30"]:hover {
  border-color: rgba(19, 65, 124, 0.3) !important;
}

#icp [class*="hover:border-violet-500/30"]:hover {
  border-color: rgba(19, 65, 124, 0.25) !important;
}

#icp [class*="hover:border-emerald-500/30"]:hover {
  border-color: rgba(15, 124, 78, 0.25) !important;
}

#icp [class*="hover:border-cyan-500/30"]:hover {
  border-color: rgba(19, 65, 124, 0.2) !important;
}

#icp [class*="hover:bg-indigo-500/20"]:hover,
#icp [class*="hover:bg-violet-500/20"]:hover,
#icp [class*="hover:bg-emerald-500/20"]:hover,
#icp [class*="hover:bg-cyan-500/20"]:hover {
  background: var(--brand-pale) !important;
}

/* ─── News section ─── */
#news-section {
  background: var(--bg2) !important;
}

#news-section [class*="text-slate-400"] {
  color: var(--text-muted) !important;
}

/* news cards (loaded via JS) */
#news-grid>div,
.news-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}

#news-grid>div:hover,
.news-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

/* ─── CTA ─── */
#final-cta {
  background: var(--bg2) !important;
}

.cta-card {
  background: #ffffff !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
}

#final-cta h2,
#final-cta h2 * {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

#final-cta p,
#final-cta [class*="text-slate-300"],
#final-cta [class*="text-slate-400"] {
  color: var(--text-muted) !important;
}

#final-cta .btn-primary {
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(19, 65, 124, 0.25) !important;
}

#final-cta .btn-primary:hover {
  background: var(--brand-dark) !important;
  box-shadow: 0 8px 28px rgba(19, 65, 124, 0.3) !important;
}

#final-cta .btn-secondary {
  background: #fff !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--border) !important;
}

#final-cta .btn-secondary:hover {
  border-color: var(--brand) !important;
  background: var(--brand-pale) !important;
}

/* ─── Footer ─── */
footer {
  background: var(--brand-dark) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

footer #footer-site-name {
  color: #fff !important;
}

footer #footer-tagline {
  color: rgba(255, 255, 255, 0.6) !important;
}

footer h3 {
  color: rgba(255, 255, 255, 0.85) !important;
}

footer [class*="text-slate-400"] {
  color: rgba(255, 255, 255, 0.55) !important;
}

footer [class*="text-slate-500"] {
  color: rgba(255, 255, 255, 0.35) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color .2s;
}

footer a:hover {
  color: #fff !important;
}

footer [class*="text-indigo-400"] {
  color: rgba(255, 255, 255, 0.5) !important;
}

footer [class*="hover:text-indigo-400"]:hover {
  color: #fff !important;
}

footer [class*="border-slate-800"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ─── Global text overrides ─── */
[class*="text-white"]:not(nav *):not(#final-cta *):not(footer *) {
  color: var(--text) !important;
}

[class*="text-slate-100"]:not(#final-cta *):not(footer *) {
  color: var(--text) !important;
}

[class*="text-slate-200"]:not(#final-cta *):not(footer *) {
  color: var(--text-mid) !important;
}

[class*="text-slate-300"]:not(#final-cta *):not(footer *) {
  color: var(--text-mid) !important;
}

[class*="text-slate-400"]:not(#final-cta *):not(footer *) {
  color: var(--text-muted) !important;
}

[class*="text-slate-500"]:not(#final-cta *):not(footer *) {
  color: var(--text-faint) !important;
}

/* bg-slate overrides */
[class*="bg-slate-900"]:not(nav):not(#mobile-nav):not(#a-day-with-weiss *):not(footer) {
  background-color: var(--bg) !important;
}

:not(#final-cta)[class*="bg-slate-900/40"] {
  background-color: var(--bg2) !important;
}

[class*="bg-slate-900/50"] {
  background-color: #fff !important;
}

[class*="bg-slate-900/20"] {
  background-color: var(--bg) !important;
}

[class*="bg-slate-950"] {
  background-color: var(--bg) !important;
}

/* border-slate overrides (non-footer) */
[class*="border-slate-800"]:not(footer *):not(footer) {
  border-color: var(--border) !important;
}

[class*="border-slate-700"]:not(footer *) {
  border-color: var(--border) !important;
}

/* ─── AOS — force visible for elements that may not have loaded JS ─── */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── Hero headline size ─── */
#hero-title {
  font-size: 2rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

@media (min-width: 768px) {
  #hero-title {
    font-size: 2.5rem !important;
  }
}

@media (min-width: 1024px) {
  #hero-title {
    font-size: 3rem !important;
  }
}

/* ─── Hero subtitle ─── */
#hero-subtitle {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Language toggle styles are handled above at line 803 */

/* ─── Page (About/Contact/etc) light theme ─── */
.page-hero,
.page-header,
[class*="page-hero"],
[class*="page-header"] {
  background: linear-gradient(160deg, #ffffff 0%, #eaf1fb 45%, #daeaf8 100%) !important;
}

.page-hero h1,
.page-hero *,
.page-header h1,
.page-header * {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

.breadcrumb,
.breadcrumb * {
  color: var(--text-muted) !important;
}

/* ─── Page hero banner ─── */
#page-hero {
  background: linear-gradient(160deg, #ffffff 0%, #eaf1fb 50%, #daeaf8 100%) !important;
}

#page-hero * {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* ─── page.html light theme ─── */
body.bg-slate-950 {
  background-color: #f4f7fc !important;
  color: #0d1f35 !important;
}

#page-hero {
  background: linear-gradient(160deg, #ffffff 0%, #eaf1fb 50%, #daeaf8 100%) !important;
  min-height: 280px !important;
}

#page-hero,
#page-hero * {
  color: #0d1f35 !important;
  -webkit-text-fill-color: #0d1f35 !important;
}

/* ─── page-hero: unsplash background ─── */
#page-hero {
  background-image: url('/assets/images/google-deepmind-_HnJfS6WhA8-unsplash.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #13417c !important;
  position: relative !important;
}

#page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 65, 124, 0.6);
}

#page-hero * {
  position: relative;
  z-index: 1;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ─── news.html light theme ─── */

/* hero banner */
#news-hero,
.news-hero {
  background: #13417c !important;
}

#news-hero *,
.news-hero * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* news cards */
#news-grid .bg-slate-800,
#news-grid [class*="bg-slate"],
#news-grid .card,
.news-card {
  background: #ffffff !important;
  border: 1px solid #cfdcef !important;
}

/* filter buttons */
.filter-btn {
  background: transparent !important;
  color: #13417c !important;
  border: 1px solid #13417c !important;
}

.filter-btn.active {
  background: #13417c !important;
  color: #ffffff !important;
}
/* ============================================================
   Tutorial Section
   ============================================================ */
#tutorial {
  position: relative;
  z-index: 10;
}

#tutorial img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

#tutorial .relative:hover img {
  transform: scale(1.02);
}

#tutorial .shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}
