/* AionUi Website - Modern, SEO-friendly, attractive */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #a78bfa;
  --bg: #0f0f14;
  --bg-card: #18181f;
  --bg-elevated: #1e1e28;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary); }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-link:hover { color: var(--accent); text-decoration: none; }

.logo-link img { height: 36px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-main a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration: none;
}

.nav-main a.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  text-decoration: none;
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.section-tight {
  padding: 24px 0 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(99, 102, 241, 0.08);
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--text);
}

.section-subtitle { color: var(--text-muted); margin-bottom: 32px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cards-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card a { display: inline-block; margin-top: 12px; font-weight: 500; }

.section-split {
  padding-top: 20px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.split-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.switch-section {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.switch-benefits {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.benefit-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.benefit-list li {
  display: grid;
  gap: 12px;
  align-items: start;
}

.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.benefit-list span:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.switch-cta {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
}

.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.button-stack .btn {
  justify-content: center;
}

.callout {
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.1));
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 24px 16px;
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--gradient);
  font-weight: 700;
  margin-bottom: 12px;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  font-style: italic;
}

.quote-card span {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-style: normal;
}

@media (max-width: 768px) {
  .site-header .container {
    height: auto;
    padding: 12px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .js-nav .nav-main {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: none;
    gap: 12px;
  }

  .js-nav .nav-main.nav-open {
    display: flex;
  }

  .nav-main a {
    width: 100%;
    padding: 10px 0;
  }

  .nav-main .btn {
    width: 100%;
    justify-content: center;
  }

  .card, .split-card, .switch-benefits, .switch-cta, .step-card, .quote-card {
    padding: 20px;
  }

  .badge-row {
    justify-content: flex-start;
  }

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

  .hero .lead {
    font-size: 1.05rem;
  }
}

/* Content */
.content h1 { font-size: 2rem; margin-bottom: 16px; }
.content h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.content h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.content p { margin-bottom: 16px; color: var(--text-muted); }
.content ul, .content ol { margin: 0 0 16px 24px; }
.content li { margin-bottom: 6px; }
.content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 8px; }

/* Page title */
.page-title { font-size: 2rem; margin-bottom: 8px; }
.page-lead { color: var(--text-muted); margin-bottom: 32px; }

/* Link grid for internal links */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.link-grid a {
  display: block;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.link-grid a:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: var(--accent);
}

/* Table */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.content th, .content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.content th { background: var(--bg-elevated); font-weight: 600; }
.content tr:last-child td { border-bottom: none; }

/* Code */
code, kbd {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

pre { background: var(--bg-elevated); padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 16px 0; }
pre code { padding: 0; background: none; }

/* External link icon */
.ext-link::after { content: " ↗"; font-size: 0.85em; opacity: 0.8; }
