/* ============================================================
   LILITH BOT — Global Design System
   Dark Anime Aesthetic | Crimson × Purple
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --bg-base:       #07070d;
  --bg-surface:    #0e0e1a;
  --bg-card:       #111120;
  --bg-card-hover: #161628;

  --primary:       #c0392b;
  --primary-light: #e74c3c;
  --secondary:     #8e44ad;
  --secondary-light:#9b59b6;
  --accent:        #e91e63;
  --accent-glow:   rgba(233, 30, 99, 0.3);

  --grad-primary:  linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
  --grad-dark:     linear-gradient(135deg, #1a0010 0%, #0a0018 100%);
  --grad-card:     linear-gradient(145deg, rgba(192,57,43,0.08) 0%, rgba(142,68,173,0.08) 100%);

  --text-primary:  #f0e6ff;
  --text-secondary:#a89bc2;
  --text-muted:    #6b5f80;

  --border:        rgba(192, 57, 43, 0.2);
  --border-glow:   rgba(233, 30, 99, 0.4);

  --glass-bg:      rgba(14, 14, 26, 0.7);
  --glass-border:  rgba(255, 255, 255, 0.06);

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-glow:   0 0 30px rgba(192, 57, 43, 0.25);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-deep:   0 20px 60px rgba(0, 0, 0, 0.7);

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --nav-height:    72px;
  --max-width:     1200px;
}

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

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

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

::selection {
  background: rgba(233, 30, 99, 0.3);
  color: #fff;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }


/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--grad-primary);
  border-radius: 3px;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  object-fit: cover;
}

.nav-logo .logo-rose {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(233, 30, 99, 0.6));
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
  background: var(--grad-primary) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.35);
  transition: var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5) !important;
}
.nav-cta::after { display: none !important; }

/* ── Mobile Menu ─────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(233, 30, 99, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Ensure all direct children of cards sit ABOVE the ::before gradient overlay */
.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;  /* never block buttons/dropdowns inside cards */
  z-index: 0;
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(233, 30, 99, 0.4));
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Grid helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Badges & Tags ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary { background: rgba(192,57,43,0.2); color: var(--primary-light); border: 1px solid rgba(192,57,43,0.3); }
.badge-secondary { background: rgba(142,68,173,0.2); color: var(--secondary-light); border: 1px solid rgba(142,68,173,0.3); }
.badge-accent { background: rgba(233,30,99,0.2); color: var(--accent); border: 1px solid rgba(233,30,99,0.3); }
.badge-green { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 0;
  border: none;
}

/* ── Glow effects ────────────────────────────────────────── */
.glow-red { box-shadow: 0 0 20px rgba(192,57,43,0.4); }
.glow-purple { box-shadow: 0 0 20px rgba(142,68,173,0.4); }

/* ── Particle Canvas ─────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* ── Page Content Wrapper ────────────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(192,57,43,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 60%, rgba(142,68,173,0.12) 0%, transparent 60%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(233,30,99,0.1);
  border: 1px solid rgba(233,30,99,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

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

/* ── Hero Visual ─────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-logo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(233,30,99,0.2);
  animation: ring-rotate 20s linear infinite;
}

.hero-logo-ring::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--accent);
}

.hero-logo-ring-2 {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(142,68,173,0.15);
  animation: ring-rotate 30s linear infinite reverse;
}

.hero-logo-ring-3 {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  border: 1px dashed rgba(192,57,43,0.1);
  animation: ring-rotate 45s linear infinite;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--grad-primary) border-box;
  box-shadow: var(--shadow-glow), var(--shadow-deep), inset 0 0 30px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

.hero-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* ── Feature Cards Grid ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Command Page ────────────────────────────────────────── */
.commands-page { }

.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(192,57,43,0.1) 0%, transparent 70%);
}

.page-hero h1 { position: relative; z-index: 1; }
.page-hero p { position: relative; z-index: 1; color: var(--text-secondary); margin-top: 12px; font-size: 1.05rem; }

/* ── Command Search & Filter ─────────────────────────────── */
.commands-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.1);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: 'Inter', sans-serif;
}
.filter-tab:hover {
  border-color: var(--border);
  color: var(--text-primary);
}
.filter-tab.active {
  background: rgba(233,30,99,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Command Groups ──────────────────────────────────────── */
.command-group {
  margin-bottom: 36px;
  animation: fadeInUp 0.4s ease both;
}

.command-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.command-group-header:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}

.command-group-icon { font-size: 1.5rem; }
.command-group-title { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600; }
.command-group-count {
  margin-left: auto;
  background: rgba(192,57,43,0.2);
  color: var(--primary-light);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.group-toggle {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.command-group.collapsed .group-toggle { transform: rotate(-90deg); }

.command-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.command-group.collapsed .command-list { display: none; }

.command-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: default;
}
.command-card:hover {
  border-color: var(--border);
  background: var(--bg-card);
  transform: translateX(2px);
}

.cmd-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.cmd-info {}
.cmd-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cmd-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Vote Page ───────────────────────────────────────────── */
.vote-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}
.vote-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.vote-platform-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.vote-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.vote-perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.vote-perk-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ── Server Page ─────────────────────────────────────────── */
.server-widget-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.discord-widget-placeholder {
  background: #36393f;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: #dcddde;
  font-family: 'Inter', sans-serif;
}

.server-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.server-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.server-feature:hover {
  border-color: var(--border);
  transform: translateX(4px);
}

.server-feature-icon { font-size: 1.6rem; flex-shrink: 0; }
.server-feature h4 { font-size: 0.9rem; margin-bottom: 4px; }
.server-feature p { font-size: 0.8rem; color: var(--text-muted); }

/* ── Contact Page ────────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.1);
}

.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5f80' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option { background: var(--bg-card); }

.contact-info-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}
.contact-info-card:hover {
  border-color: var(--border);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(233,30,99,0.1);
  border: 1px solid rgba(233,30,99,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── AI Agent Widget ─────────────────────────────────────── */
#ai-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.ai-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(192,57,43,0.5);
  transition: var(--transition);
  position: relative;
  margin-left: auto;
}
.ai-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(192,57,43,0.7);
}

.ai-trigger-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(192,57,43,0.4);
  animation: pulse-ring 2s ease-out infinite;
}

.ai-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
}

.ai-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.ai-panel-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(192,57,43,0.2) 0%, rgba(142,68,173,0.2) 100%);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.1);
}

.ai-header-info {}
.ai-header-name { font-weight: 600; font-size: 0.9rem; }
.ai-header-status { font-size: 0.75rem; color: #2ecc71; display: flex; align-items: center; gap: 4px; }
.ai-header-status::before { content: ''; width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; display: inline-block; }
.ai-close { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 4px; border-radius: 4px; transition: var(--transition-fast); }
.ai-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.ai-messages {
  height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: fadeInUp 0.2s ease;
}

.ai-msg.user {
  flex-direction: row-reverse;
}

.ai-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ai-msg.bot .ai-msg-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}

.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-msg-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ai-msg.bot .ai-msg-icon { background: var(--grad-primary); }
.ai-msg.user .ai-msg-icon { background: rgba(255,255,255,0.1); font-size: 0.8rem; }

.ai-suggestions {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--glass-border);
}

.ai-suggestion {
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(233,30,99,0.1);
  border: 1px solid rgba(233,30,99,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.ai-suggestion:hover {
  background: rgba(233,30,99,0.2);
}

.ai-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 8px;
}

.ai-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition-fast);
}
.ai-input::placeholder { color: var(--text-muted); }
.ai-input:focus { border-color: var(--border-glow); }

.ai-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.ai-send:hover { transform: scale(1.1); }

/* ── Typing Indicator ────────────────────────────────────── */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {}
.footer-brand .brand-name { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition-fast); }
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

.footer-socials { display: flex; gap: 12px; }
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-social-btn:hover { border-color: var(--border-glow); color: var(--accent); transform: translateY(-2px); }

/* ── Toast Notification ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
  z-index: 10000;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes pulse-glow {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ── Scroll reveal (JS added) ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { width: 220px; height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-surface); padding: 16px; flex-direction: column; border-bottom: 1px solid var(--glass-border); }
  .nav-links.mobile-open { display: flex; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ai-panel { width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
  .section { padding: 60px 0; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .ai-panel { width: calc(100vw - 32px); right: -8px; }
  .hero h1 { font-size: 1.9rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}
