/* ============================
   DESIGN TOKENS
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #050b18;
  --bg-2: #080f22;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-soft: rgba(99, 102, 241, 0.12);

  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 68px;
}

[data-theme="light"] {
  --bg: #f8faff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-hover: #ffffff;
  --border: rgba(99, 102, 241, 0.1);
  --border-strong: rgba(99, 102, 241, 0.2);
  --text: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.05);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background orbs (dark mode only) */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -150px;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
}

/* In light mode: white background, hide orbs */
[data-theme="light"] body::before,
[data-theme="light"] body::after {
  opacity: 0;
}


/* ============================
   LAYOUT
   ============================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5, 11, 24, 0.85);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
  user-select: none;
}

/* Nav */
.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow) !important;
  background: var(--surface-hover) !important;
  color: #fff !important;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.burger:hover {
  background: var(--surface-hover);
}

/* Header right group (theme toggle + burger) */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle — ON/OFF switch style */
.theme-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-toggle-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.theme-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover .theme-toggle-slider {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Checked state (Light mode ON) */
.theme-toggle-checkbox:checked + .theme-toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.theme-toggle-checkbox:checked + .theme-toggle-slider::before {
  transform: translateX(24px);
  background: #ffffff;
}

/* Light mode adjustments */
[data-theme="light"] .theme-toggle-slider {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .theme-toggle-checkbox:checked + .theme-toggle-slider {
  background: #4f46e5;
  border-color: #4f46e5;
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text>p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 30rem;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats>div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

[data-theme="light"] .hero-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: var(--shadow-lg);
}

@keyframes float {

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

  50% {
    transform: translateY(-8px);
  }
}

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

.hero-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.hero-card .badge {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 1rem;
}

.hero-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  flex-shrink: 0;
}

.hero-card .small {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.7rem;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  border-radius: var(--radius-full);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity var(--transition);
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn.ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
}

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section.muted {
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.04), transparent);
}

[data-theme="light"] .section.muted {
  background: #f1f4ff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.7rem;
  opacity: 0.9;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================
   FILTER BAR
   ============================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-soft);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

/* ============================
   COURSE CARDS
   ============================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

[data-theme="light"] .course-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card:hover {
  background: var(--surface-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.course-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.course-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.course-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.meta-level {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: #a5b4fc;
}

.meta-duration {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================
   FEATURES
   ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

[data-theme="light"] .feature-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow);
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================
   FAQ
   ============================ */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition);
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow);
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1rem;
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.contact-info-block>p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .contact-form {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  margin-top: 0.35rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
  background: #f8faff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form select option {
  background: #111827;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #6ee7b7;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============================
   CHATBOT — FLOATING LAUNCHER
   ============================ */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-launcher-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.chat-launcher-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: transform var(--transition);
}

.chat-launcher:hover .chat-launcher-btn {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 40px var(--accent-glow), 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Online dot */
.chat-launcher-btn::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg);
  animation: blink-online 2s ease-in-out infinite;
}

@keyframes blink-online {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
}

/* Label pill beside button */
.chat-launcher-label {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: slide-in-label 0.5s ease 2s both;
  pointer-events: none;
}

@keyframes slide-in-label {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================
   CHATBOT — WIDGET
   ============================ */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 360px;
  max-height: 72vh;
  background: rgba(8, 15, 34, 0.96);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

[data-theme="light"] .chat-widget {
  background: rgba(248, 250, 255, 0.97);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.chat-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Chat header */
.chat-header {
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.chat-header-info {
  flex: 1;
}

.chat-header-info strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 500;
}

.chat-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.chat-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* Messages area */
.chat-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  flex: 1;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 2px;
}

.chat-message {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  max-width: 82%;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
  animation: msg-in 0.2s ease-out;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

[data-theme="light"] .chat-message.bot {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.12);
}

.chat-message.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Typing indicator */
.typing-dots {
  display: inline-flex;
  gap: 3px;
  padding: 0.2rem 0;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {

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

  30% {
    transform: translateY(-5px);
  }
}

/* Quick replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}

.quick-reply-btn {
  font-size: 0.77rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
  cursor: pointer;
  transition: all var(--transition);
}

.quick-reply-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Input row */
.chat-input-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .chat-input-row {
  background: rgba(99, 102, 241, 0.03);
  border-top-color: rgba(99, 102, 241, 0.1);
}

.chat-input-row input {
  flex: 1;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}

[data-theme="light"] .chat-input-row input {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
}

.chat-input-row input::placeholder {
  color: var(--text-dim);
}

.chat-input-row input:focus {
  border-color: var(--accent);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-card {
    order: -1;
    animation: none;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 11, 24, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 99;
  }

  [data-theme="light"] .nav {
    background: rgba(240, 244, 255, 0.98);
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-stats {
    gap: 1.2rem;
  }

  .chat-widget {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }

  .chat-launcher-label {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-form {
    padding: 1.4rem 1.1rem;
  }
}

/* ============================
   GRAVITY CANVAS
   ============================ */
#gravityCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

main,
.footer {
  position: relative;
  z-index: 1;
}