/* ============================================================
   TERMI — CSS Principal
   Style : Discord × Vercel × Apple × Supabase
   Font : Syne (display) + DM Sans (body)
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --bg:           #0d0d14;
  --bg-2:         #111118;
  --bg-card:      rgba(255,255,255,0.035);
  --bg-card-h:    rgba(255,255,255,0.06);
  --border:       rgba(255,255,255,0.08);
  --border-h:     rgba(255,255,255,0.15);

  --text:         #f2f2f7;
  --text-muted:   #8b8b9e;
  --text-dim:     #4a4a5a;

  --accent:       #5865F2;   /* Discord Blue */
  --accent-h:     #4752c4;
  --green:        #57F287;   /* Discord Green */
  --green-2:      #00dc82;   /* Supabase Green */
  --yellow:       #FEE75C;
  --red:          #ED4245;
  --pink:         #EB459E;

  --radius:       14px;
  --radius-lg:    20px;
  --radius-sm:    8px;

  --shadow-card:  0 0 0 1px var(--border), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 60px rgba(88,101,242,0.15);

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

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(88,101,242,0.3), 0 4px 16px rgba(88,101,242,0.3);
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(88,101,242,0.5), 0 8px 24px rgba(88,101,242,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-outline:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Gradient text ──────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--green-2) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar--scrolled {
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img { width: 128px; height: 128px; border-radius: 48px; object-fit: contain; }
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
  min-width: 0;
}
.nav-primary,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-primary {
  min-width: 0;
  flex-wrap: wrap;
}
.nav-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}
.nav-link {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-s);
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }

.nav-user-shell,
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.nav-user-card {
  all: unset;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: all var(--transition-s);
  cursor: pointer;
  color: var(--text);
  font: inherit;
  line-height: 1.2;
  text-align: left;
  box-shadow: none;
  outline: none;
  max-width: 240px;
  min-width: 0;
  justify-content: flex-start;
}
.nav-user-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
}
.nav-user-card::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.nav-user-chevron {
  color: var(--text-dim);
  font-size: 11px;
  flex-shrink: 0;
}
.nav-user-avatar-frame {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  aspect-ratio: 1 / 1;
}
.nav-user-avatar {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.nav-user-avatar--fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--green-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.nav-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nav-user-label {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.1;
}
.nav-user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(17,17,24,0.96);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--transition-s);
}
.nav-user-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-user-menu-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.nav-user-menu-kicker {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-user-menu-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.nav-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  transition: all var(--transition-s);
}
.nav-user-menu-item:hover {
  background: var(--bg-card-h);
  color: var(--text);
}
.nav-user-menu-item i {
  width: 14px;
  text-align: center;
}
.nav-user-menu-item--accent {
  color: #aeb6ff;
}
.nav-user-menu-item--danger {
  color: #ff8a8c;
}

/* Lang switcher */
.lang-btn {
  all: unset;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-s);
  font-family: var(--font-body);
  box-shadow: none;
  min-height: 42px;
}
.lang-btn:hover { border-color: var(--border-h); color: var(--text); }
.lang-chevron { font-size: 10px; transition: transform var(--transition-s); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 140px;
  padding: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all var(--transition-s);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lang-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition-s);
}
.lang-dropdown a:hover, .lang-dropdown a.active { background: var(--bg-card-h); color: var(--text); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent); top: -100px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: var(--green-2); bottom: -50px; right: 10%; }
.glow-3 { width: 300px; height: 300px; background: var(--pink); top: 50%; right: -100px; opacity: 0.12; }

.orb {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 12px; height: 12px; background: var(--accent); top: 30%; left: 20%; animation-delay: 0s; }
.orb-2 { width: 8px;  height: 8px;  background: var(--green);  top: 60%; right: 25%; animation-delay: 2s; }
.orb-3 { width: 6px;  height: 6px;  background: var(--yellow); top: 20%; right: 40%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #a5acff;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-runtimes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.runtime-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Terminal flottant */
.hero-terminal {
  position: absolute;
  right: max(40px, calc(50% - 580px));
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), 0 0 80px rgba(0,0,0,0.6);
  overflow: hidden;
  z-index: 3;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
}
.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
}
.terminal-line { display: flex; align-items: center; gap: 8px; }
.t-prompt { color: var(--green-2); font-weight: bold; }
.t-success { color: var(--green); }
.t-muted { color: var(--text-dim); }
.t-icon { width: 16px; }
.t-running {
  color: var(--green);
  background: rgba(87,242,135,0.1);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}
.cursor { animation: blink 1s step-end infinite; color: var(--green-2); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-2); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Features Grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--icon-color, var(--accent));
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.pricing-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.pricing-empty i { font-size: 40px; margin-bottom: 16px; display: block; }

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.pricing-card--featured {
  background: linear-gradient(135deg, rgba(88,101,242,0.1) 0%, rgba(0,220,130,0.05) 100%);
  border-color: rgba(88,101,242,0.4);
  box-shadow: 0 0 0 1px rgba(88,101,242,0.2), var(--shadow-glow);
}
.pricing-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pricing-icon { font-size: 28px; margin-bottom: 12px; }
.pricing-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-period { font-size: 14px; color: var(--text-muted); }
.pricing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.pricing-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.pricing-features li.excluded { color: var(--text-dim); text-decoration: line-through; }
.pricing-features li .fa-check { color: var(--green); }
.pricing-features li .fa-xmark { color: var(--text-dim); }

/* ─── CTA Section ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.cta-box {
  position: relative;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 380px);
  gap: 32px;
  align-items: center;
}
.cta-content {
  text-align: left;
}
.cta-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
}
.cta-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
}
.cta-widget {
  display: flex;
  justify-content: center;
}
.cta-widget-frame {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.cta-widget-frame iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 12px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-brand .logo-img {
  width: auto;
  height: 72px;
  border-radius: 0;
}
.footer-tagline { font-size: 14px; color: var(--text-muted); margin-top: 12px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: all var(--transition-s);
}
.social-link:hover { border-color: var(--border-h); color: var(--text); background: var(--bg-card); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color var(--transition-s); }
.footer-col a:hover { color: var(--text); }

.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
.footer-gdpr { display: flex; align-items: center; gap: 6px; }
.footer-gdpr a { color: var(--text-muted); }
.footer-gdpr a:hover { color: var(--text); }

/* ─── Cookie Banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-content { display: flex; align-items: center; gap: 20px; flex: 1; flex-wrap: wrap; }
.cookie-icon { font-size: 24px; color: var(--yellow); flex-shrink: 0; }
.cookie-text { display: flex; align-items: flex-start; gap: 16px; }
.cookie-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cookie-text p { font-size: 13px; color: var(--text-muted); }
.cookie-actions { display: flex; gap: 8px; }

/* ─── Animations fade-in ─────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeInUp 0.7s ease forwards; }
.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.35s; }
.fade-delay-4 { animation-delay: 0.5s; }
.fade-delay-5 { animation-delay: 0.65s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-terminal { display: none; }
  .hero { padding-top: 100px; text-align: center; justify-content: center; }
  .hero-content { max-width: 100%; }
  .hero-actions, .hero-runtimes, .hero-stats { justify-content: center; }
  .cta-layout { grid-template-columns: 1fr; }
  .cta-content { text-align: center; }
  .cta-desc { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13,13,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav-links--open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-toggle { display: flex; }
  .nav-primary,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .lang-switcher { width: 100%; }
  .lang-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .lang-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-user-shell { width: 100%; }
  .nav-user-card { width: 100%; max-width: none; border-radius: var(--radius-sm); padding: 10px 14px; }
  .nav-user-meta { flex: 1; }
  .nav-user-name { max-width: none; }
  .nav-user-menu { position: static; width: 100%; margin-top: 8px; transform: none; opacity: 1; pointer-events: auto; display: none; flex-direction: column; box-shadow: none; border-radius: var(--radius-sm); }
  .nav-user-menu.open { display: block; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand .logo-img { height: 60px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .hero-stats { flex-wrap: wrap; gap: 20px; }

  .cookie-banner { flex-direction: column; bottom: 12px; left: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-brand .logo-img { height: 52px; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-box { padding: 56px 20px; }
  .cta-widget-frame iframe { min-height: 420px; }
}

.news-section {
  background:
    radial-gradient(circle at top left, rgba(88,101,242,0.08), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, rgba(17,17,24,0.92) 100%);
}
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.news-rss-link {
  flex-shrink: 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.news-card {
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    radial-gradient(circle at top right, rgba(88,101,242,0.14), transparent 38%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-height: 220px;
}
.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}
.news-badge--info {
  color: #aeb6ff;
  background: rgba(88,101,242,0.12);
  border-color: rgba(88,101,242,0.28);
}
.news-badge--success {
  color: var(--green);
  background: rgba(87,242,135,0.12);
  border-color: rgba(87,242,135,0.28);
}
.news-badge--warning {
  color: var(--yellow);
  background: rgba(254,231,92,0.12);
  border-color: rgba(254,231,92,0.28);
}
.news-badge--danger {
  color: #ff8a8c;
  background: rgba(237,66,69,0.12);
  border-color: rgba(237,66,69,0.28);
}
.news-date {
  font-size: 12px;
  color: var(--text-dim);
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.news-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-header { align-items: stretch; }
}

@media (max-width: 480px) {
  .news-rss-link { width: 100%; justify-content: center; }
}
