/*
Theme Name: AIHealthTech Child
Theme URI: https://aihealthtech.io
Description: Dark futuristic medical AI platform child theme for Astra
Author: AIHealthTech
Author URI: https://aihealthtech.io
Template: astra
Version: 1.0.0
Text Domain: aihealthtech
Tags: dark, medical, futuristic, ai, health, technology
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg-base:        #06111F;
  --bg-card:        #0C1825;
  --bg-card-hover:  #101E30;
  --bg-elevated:    #0F1F30;
  --accent-teal:    #00C8E8;
  --accent-blue:    #0088CC;
  --accent-violet:  #7B4FE0;
  --accent-glow:    rgba(0, 200, 232, 0.15);
  --accent-glow-strong: rgba(0, 200, 232, 0.35);
  --text-primary:   #E8F4F8;
  --text-secondary: #7A9BB5;
  --text-muted:     #4A6580;
  --border-subtle:  rgba(0, 200, 232, 0.08);
  --border-active:  rgba(0, 200, 232, 0.3);
  --font-display:   'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --shadow-card:    0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(0,200,232,0.05) inset;
  --shadow-glow:    0 0 40px rgba(0, 200, 232, 0.15);
  --shadow-glow-strong: 0 0 80px rgba(0, 200, 232, 0.25);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:          1280px;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Astra overrides */
body.ast-plain-container .ast-container,
.ast-container,
.ast-narrow-container,
#ast-fixed-header,
.site-header,
.ast-above-header-wrap,
.ast-below-header-wrap {
  background-color: transparent !important;
}

.ast-masthead-custom-menu-items,
#masthead {
  background: transparent !important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: #fff;
}

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

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-teal); border-radius: 3px; opacity: 0.6; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.aiht-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.aiht-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

.aiht-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.aiht-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.aiht-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.aiht-flex { display: flex; align-items: center; gap: 1rem; }
.aiht-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 50%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Labels */
.aiht-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-teal);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-active);
  border-radius: 100px;
  background: rgba(0, 200, 232, 0.06);
  margin-bottom: 1.5rem;
}

.aiht-section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.aiht-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.aiht-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.aiht-btn:hover::before { opacity: 1; }

.aiht-btn-primary {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
  color: #06111F;
  box-shadow: 0 4px 20px rgba(0, 200, 232, 0.3);
}

.aiht-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 200, 232, 0.5);
  color: #06111F;
}

.aiht-btn-secondary {
  background: transparent;
  color: var(--accent-teal);
  border: 1px solid var(--border-active);
}

.aiht-btn-secondary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  color: var(--accent-teal);
}

.aiht-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.aiht-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-active);
  color: var(--text-primary);
}

.aiht-btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ============================================================
   CARDS
   ============================================================ */
.aiht-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.aiht-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.aiht-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
#aiht-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--transition-slow);
  padding: 0;
}

#aiht-header.scrolled {
  background: rgba(6, 17, 31, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.aiht-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* Logo */
.aiht-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.aiht-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-violet));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 200, 232, 0.4);
}

.aiht-logo-icon svg { width: 22px; height: 22px; }

.aiht-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.aiht-logo-text .brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.aiht-logo-text .brand-tld {
  color: var(--accent-teal);
}

.aiht-logo-text .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav Menu */
.aiht-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.aiht-nav-menu li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  display: block;
  text-decoration: none;
  position: relative;
}

.aiht-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent-teal);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.aiht-nav-menu li a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.aiht-nav-menu li a:hover::after,
.aiht-nav-menu li.current-menu-item a::after {
  left: 0.85rem;
  right: 0.85rem;
}

.aiht-nav-menu li.current-menu-item a {
  color: var(--accent-teal);
}

/* Nav Actions */
.aiht-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Toggle */
.aiht-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.aiht-menu-toggle:hover {
  border-color: var(--border-active);
  color: var(--accent-teal);
}

/* Mobile Menu */
.aiht-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(6, 17, 31, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

.aiht-mobile-menu.open { display: block; }

.aiht-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.aiht-mobile-menu ul li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-base);
}

.aiht-mobile-menu ul li a:hover {
  color: var(--accent-teal);
  background: var(--accent-glow);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.aiht-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* Grid background */
.aiht-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,232,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.aiht-hero-orb-1,
.aiht-hero-orb-2,
.aiht-hero-orb-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite;
}

.aiht-hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,232,0.12) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.aiht-hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123,79,224,0.1) 0%, transparent 70%);
  bottom: 0; left: -100px;
  animation-delay: 3s;
}

.aiht-hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,136,204,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

.aiht-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.aiht-hero-left {}

.aiht-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 200, 232, 0.06);
  border: 1px solid rgba(0, 200, 232, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  animation: fadeInUp 0.6s ease both;
}

.aiht-hero-badge .badge-icon {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-violet));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
}

.aiht-hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.aiht-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aiht-hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 50ch;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.aiht-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.aiht-hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.aiht-hero-trust-avatars {
  display: flex;
}

.aiht-hero-trust-avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: -8px;
}

.aiht-hero-trust-avatars span:first-child { margin-left: 0; }
.aiht-hero-trust-avatars .av1 { background: linear-gradient(135deg, #00C8E8, #0088CC); color: #fff; }
.aiht-hero-trust-avatars .av2 { background: linear-gradient(135deg, #7B4FE0, #0088CC); color: #fff; }
.aiht-hero-trust-avatars .av3 { background: linear-gradient(135deg, #0088CC, #00C8E8); color: #fff; }
.aiht-hero-trust-avatars .av4 { background: linear-gradient(135deg, #00C8E8, #7B4FE0); color: #fff; }

.aiht-hero-trust-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.aiht-hero-trust-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Hero Right - Visual */
.aiht-hero-visual {
  position: relative;
  animation: fadeInRight 0.8s 0.3s ease both;
}

.aiht-hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-strong);
}

.aiht-hero-card-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-violet), var(--accent-blue));
}

.aiht-scan-area {
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-md);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.aiht-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: scan 3s ease-in-out infinite;
}

.aiht-scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,232,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,232,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.aiht-scan-icon {
  font-size: 4rem;
  z-index: 1;
  filter: drop-shadow(0 0 20px var(--accent-teal));
}

.aiht-analysis-result {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 200, 232, 0.05);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.aiht-analysis-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
  flex-shrink: 0;
  margin-top: 0.35rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

.aiht-analysis-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.aiht-analysis-text strong {
  color: var(--accent-teal);
  font-weight: 600;
}

/* Floating mini-cards */
.aiht-hero-float-1,
.aiht-hero-float-2 {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
  animation: float-card 4s ease-in-out infinite;
  white-space: nowrap;
}

.aiht-hero-float-1 {
  top: -20px; left: -30px;
  animation-delay: 1s;
}

.aiht-hero-float-2 {
  bottom: -20px; right: -20px;
  animation-delay: 2.5s;
}

.aiht-float-icon {
  font-size: 1.25rem;
}

.aiht-float-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.aiht-float-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-teal);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.aiht-stats {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(0,200,232,0.02) 0%, transparent 100%);
}

.aiht-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.aiht-stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.aiht-stat-item::after {
  content: '';
  position: absolute;
  top: 20%; right: 0; bottom: 20%;
  width: 1px;
  background: var(--border-subtle);
}

.aiht-stat-item:last-child::after { display: none; }

.aiht-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.aiht-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.aiht-categories-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.aiht-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.aiht-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  group: true;
}

.aiht-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--cat-color-glow, rgba(0,200,232,0.08)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.aiht-category-card:hover {
  border-color: var(--cat-color, var(--accent-teal));
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--cat-color, var(--accent-teal));
  text-decoration: none;
}

.aiht-category-card:hover::before { opacity: 1; }

.aiht-category-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--cat-color-bg, rgba(0,200,232,0.1));
  border: 1px solid var(--cat-color, var(--accent-teal));
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.aiht-category-card:hover .aiht-category-icon {
  box-shadow: 0 0 20px var(--cat-color, var(--accent-teal));
  transform: scale(1.1) rotate(-5deg);
}

.aiht-category-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  transition: color var(--transition-base);
}

.aiht-category-card:hover .aiht-category-title {
  color: var(--cat-color, var(--accent-teal));
}

.aiht-category-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

.aiht-category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.aiht-category-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cat-color, var(--accent-teal));
  letter-spacing: 0.05em;
}

.aiht-category-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.aiht-category-card:hover .aiht-category-arrow {
  color: var(--cat-color, var(--accent-teal));
  transform: translateX(4px);
}

/* Category color themes */
.cat-ai     { --cat-color: #00C8E8; --cat-color-glow: rgba(0,200,232,0.1); --cat-color-bg: rgba(0,200,232,0.08); }
.cat-genomics { --cat-color: #7B4FE0; --cat-color-glow: rgba(123,79,224,0.1); --cat-color-bg: rgba(123,79,224,0.08); }
.cat-robotics { --cat-color: #0088CC; --cat-color-glow: rgba(0,136,204,0.1); --cat-color-bg: rgba(0,136,204,0.08); }
.cat-neuro  { --cat-color: #E84393; --cat-color-glow: rgba(232,67,147,0.1); --cat-color-bg: rgba(232,67,147,0.08); }
.cat-drug   { --cat-color: #00E676; --cat-color-glow: rgba(0,230,118,0.1); --cat-color-bg: rgba(0,230,118,0.08); }
.cat-digital { --cat-color: #FFB300; --cat-color-glow: rgba(255,179,0,0.1); --cat-color-bg: rgba(255,179,0,0.08); }
.cat-surgery { --cat-color: #FF5722; --cat-color-glow: rgba(255,87,34,0.1); --cat-color-bg: rgba(255,87,34,0.08); }
.cat-data   { --cat-color: #00BCD4; --cat-color-glow: rgba(0,188,212,0.1); --cat-color-bg: rgba(0,188,212,0.08); }
.cat-ethics { --cat-color: #9C27B0; --cat-color-glow: rgba(156,39,176,0.1); --cat-color-bg: rgba(156,39,176,0.08); }

/* ============================================================
   FEATURED ARTICLES
   ============================================================ */
.aiht-articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.aiht-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.aiht-article-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.aiht-article-img {
  height: 200px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.aiht-article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.aiht-article-card:hover .aiht-article-img img {
  transform: scale(1.05);
}

.aiht-article-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,24,37,0.8) 0%, transparent 60%);
}

.aiht-article-category-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(0, 200, 232, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 200, 232, 0.3);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.aiht-article-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.aiht-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.aiht-article-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.aiht-article-read-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.aiht-article-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color var(--transition-base);
}

.aiht-article-card:hover .aiht-article-title {
  color: var(--accent-teal);
}

.aiht-article-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
  max-width: none;
}

.aiht-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.aiht-article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aiht-article-author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.aiht-article-author-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.aiht-article-link {
  font-size: 0.75rem;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-base);
}

.aiht-article-card:hover .aiht-article-link {
  gap: 0.6rem;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.aiht-newsletter {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aiht-newsletter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), var(--accent-violet), transparent);
}

.aiht-newsletter-orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,200,232,0.05) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.aiht-newsletter-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  position: relative;
}

.aiht-newsletter-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 55ch;
  margin: 0 auto 2.5rem;
  position: relative;
}

.aiht-newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  gap: 0.75rem;
  position: relative;
  flex-wrap: wrap;
}

.aiht-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
}

.aiht-newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.aiht-newsletter-form input[type="email"]:focus {
  border-color: var(--accent-teal);
  background: rgba(0, 200, 232, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.1);
}

.aiht-newsletter-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
}

.aiht-newsletter-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  flex-wrap: wrap;
}

.aiht-nl-stat {
  text-align: center;
}

.aiht-nl-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-teal);
  display: block;
}

.aiht-nl-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.aiht-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
}

.aiht-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.aiht-footer-brand {}

.aiht-footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  max-width: 36ch;
}

.aiht-footer-social {
  display: flex;
  gap: 0.5rem;
}

.aiht-social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.aiht-social-link:hover {
  background: var(--accent-glow);
  border-color: var(--border-active);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.aiht-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.aiht-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.aiht-footer-links li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.aiht-footer-links li a:hover {
  color: var(--accent-teal);
  padding-left: 4px;
}

.aiht-footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.aiht-footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.aiht-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.aiht-footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.aiht-footer-legal a:hover { color: var(--accent-teal); }

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */

/* About */
.aiht-about-hero {
  padding: clamp(8rem, 15vw, 14rem) 0 clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.aiht-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.aiht-team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
}

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

.aiht-team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.aiht-team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.aiht-team-role {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.aiht-team-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: none;
  margin: 0;
}

/* Services */
.aiht-service-hero {
  padding: clamp(8rem, 15vw, 14rem) 0 clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.aiht-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.aiht-service-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.aiht-service-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-teal);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.aiht-service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.aiht-service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.aiht-service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
  margin: 0 0 1.5rem;
}

.aiht-service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aiht-service-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aiht-service-features li::before {
  content: '→';
  color: var(--accent-teal);
  font-size: 0.7rem;
}

/* Contact */
.aiht-contact-hero {
  padding: clamp(8rem, 15vw, 14rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.aiht-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.aiht-contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-base);
}

.aiht-contact-info-card:hover {
  border-color: var(--border-active);
}

.aiht-contact-info-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.aiht-contact-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.aiht-contact-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.aiht-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.aiht-form-group {
  margin-bottom: 1.5rem;
}

.aiht-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.aiht-form-input,
.aiht-form-textarea,
.aiht-form-select {
  width: 100%;
  padding: 0.875rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
  appearance: none;
}

.aiht-form-input::placeholder,
.aiht-form-textarea::placeholder {
  color: var(--text-muted);
}

.aiht-form-input:focus,
.aiht-form-textarea:focus,
.aiht-form-select:focus {
  border-color: var(--accent-teal);
  background: rgba(0, 200, 232, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.08);
}

.aiht-form-textarea { resize: vertical; min-height: 140px; }

.aiht-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Page Hero (shared) */
.aiht-page-hero {
  padding: clamp(8rem, 15vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(20px, -30px); }
  66%       { transform: translate(-15px, 20px); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes scan {
  0%   { top: 0; opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px currentColor; opacity: 1; }
  50%       { box-shadow: 0 0 12px currentColor; opacity: 0.7; }
}

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

@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.aiht-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.aiht-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.aiht-reveal-delay-1 { transition-delay: 0.1s; }
.aiht-reveal-delay-2 { transition-delay: 0.2s; }
.aiht-reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .aiht-hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .aiht-hero-visual { display: none; }
  .aiht-hero { min-height: auto; padding: 8rem 0 5rem; }
  .aiht-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .aiht-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .aiht-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .aiht-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .aiht-nav-menu,
  .aiht-nav-actions .aiht-btn:not(.aiht-menu-toggle) { display: none; }
  .aiht-menu-toggle { display: flex; }
  .aiht-grid-2,
  .aiht-grid-3,
  .aiht-grid-4 { grid-template-columns: 1fr; }
  .aiht-categories-grid { grid-template-columns: 1fr; }
  .aiht-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .aiht-team-grid { grid-template-columns: 1fr; }
  .aiht-contact-grid { grid-template-columns: 1fr; }
  .aiht-articles-header { flex-direction: column; align-items: flex-start; }
  .aiht-footer-grid { grid-template-columns: 1fr; }
  .aiht-footer-bottom { flex-direction: column; text-align: center; }
  .aiht-form-row { grid-template-columns: 1fr; }
  .aiht-newsletter-form { flex-direction: column; }
  .aiht-newsletter-form input[type="email"] { min-width: 0; }
}

@media (max-width: 480px) {
  .aiht-stats-grid { grid-template-columns: 1fr; }
  .aiht-stat-item::after { display: none; }
}

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.aiht-archive-header {
  padding: clamp(8rem, 15vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
}

.aiht-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .aiht-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .aiht-post-grid { grid-template-columns: 1fr; }
}

/* Pagination */
.aiht-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.aiht-pagination a,
.aiht-pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
  text-decoration: none;
}

.aiht-pagination a {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.aiht-pagination a:hover,
.aiht-pagination .current {
  background: var(--accent-glow);
  border-color: var(--border-active);
  color: var(--accent-teal);
}

/* Single post */
.aiht-single-hero { padding: clamp(8rem, 15vw, 12rem) 0 3rem; }

.aiht-single-content {
  max-width: 760px;
  margin: 0 auto;
}

.aiht-single-content h2,
.aiht-single-content h3 {
  margin: 2rem 0 1rem;
}

.aiht-single-content p {
  color: var(--text-secondary);
  max-width: none;
  margin-bottom: 1.25rem;
}

.aiht-single-content blockquote {
  border-left: 3px solid var(--accent-teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-active), transparent);
  margin: 4rem 0;
}

.highlight-box {
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

/* WP Admin Bar */
#wpadminbar { background: #06111F !important; }
