/* ═══════════════════════════════════════════════════════════════════════════
   SixApps Hub — Design System v2  (youth / young-adult)
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:   #07091c;
  --bg-2: #0c0f24;
  --card: #111428;
  --line: rgba(255, 255, 255, 0.07);

  /* Text */
  --text:  #eef0ff;
  --muted: #7a85b0;

  /* Brand accents */
  --accent:   #8b5cf6;   /* vibrant violet */
  --accent-2: #06d6a0;   /* bright mint */

  /* Status */
  --warn:   #fb923c;
  --danger: #f43f5e;

  /* Per-app tints */
  --blue:   #6366f1;
  --green:  #10b981;
  --purple: #a855f7;
  --orange: #f59e0b;
  --teal:   #06b6d4;
  --pink:   #ec4899;

  /* Design tokens */
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 900px 500px at 85% -5%, #1a1450 0%, transparent 55%),
    radial-gradient(ellipse 700px 400px at -5% 110%, #0d2b3e 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
  flex-shrink: 0;
}

.back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.back:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  text-decoration: none;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: 32px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.5px; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.3px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }

.muted { color: var(--muted); }
.lead  { color: var(--muted); font-size: 15px; margin: 0 0 24px; line-height: 1.65; max-width: 760px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.12); }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.28);
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.38);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: none; }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }

.btn.success {
  background: linear-gradient(135deg, var(--green), #059669);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}
.btn.success:hover { box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35); }

.btn.danger {
  background: linear-gradient(135deg, var(--danger), #be123c);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.25);
}
.btn.danger:hover { box-shadow: 0 10px 28px rgba(244, 63, 94, 0.35); }

.btn.full { width: 100%; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.row   { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ── Inputs ───────────────────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; letter-spacing: 0.2px; }
.field { margin-bottom: 14px; }

/* ── List ─────────────────────────────────────────────────────────────────── */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.list li:hover { border-color: rgba(255, 255, 255, 0.12); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.ok   { color: #6ee7c1; border-color: rgba(6, 214, 160, 0.25); background: rgba(6, 214, 160, 0.1); }
.badge.warn { color: #fcd4a1; border-color: rgba(251, 146, 60, 0.25); background: rgba(251, 146, 60, 0.1); }
.badge.info { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.1); }

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ── KPI cards ────────────────────────────────────────────────────────────── */
.kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.kpi .v { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.kpi .l { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; letter-spacing: 0.3px; }

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: none;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

/* ── App footer ───────────────────────────────────────────────────────────── */
footer.app-footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  opacity: 0.6;
}

/* ── Language switcher ────────────────────────────────────────────────────── */
.lang-switch { position: relative; }

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #161929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 200;
  min-width: 160px;
}
.lang-menu.hidden { display: none; }

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
}
.lang-menu button:hover  { background: rgba(255, 255, 255, 0.06); }
.lang-menu button.active { color: var(--accent); background: rgba(139, 92, 246, 0.08); }

[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1d35;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-ok   { border-color: rgba(6, 214, 160, 0.3); }
.toast.toast-warn { border-color: rgba(251, 146, 60, 0.3); }
.toast.toast-err  { border-color: rgba(244, 63, 94, 0.3); }

/* ── Avatar ───────────────────────────────────────────────────────────────── */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
}

/* ── Card accent borders (per-app) ───────────────────────────────────────── */
.card.accent-blue   { border-left: 3px solid #6366f1; }
.card.accent-green  { border-left: 3px solid #10b981; }
.card.accent-purple { border-left: 3px solid #a855f7; }
.card.accent-orange { border-left: 3px solid #f59e0b; }
.card.accent-teal   { border-left: 3px solid #06b6d4; }
.card.accent-pink   { border-left: 3px solid #ec4899; }

.card.accent-blue:hover   { box-shadow: 0 24px 64px rgba(99,  102, 241, 0.15); }
.card.accent-green:hover  { box-shadow: 0 24px 64px rgba(16,  185, 129, 0.15); }
.card.accent-purple:hover { box-shadow: 0 24px 64px rgba(168, 85,  247, 0.15); }
.card.accent-orange:hover { box-shadow: 0 24px 64px rgba(245, 158, 11,  0.15); }
.card.accent-teal:hover   { box-shadow: 0 24px 64px rgba(6,   182, 212, 0.15); }
.card.accent-pink:hover   { box-shadow: 0 24px 64px rgba(236, 72,  153, 0.15); }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeInUp 0.45s ease both; }
.fade-in-1 { animation-delay: 0.06s; }
.fade-in-2 { animation-delay: 0.12s; }
.fade-in-3 { animation-delay: 0.18s; }
.fade-in-4 { animation-delay: 0.24s; }
.fade-in-5 { animation-delay: 0.30s; }
.fade-in-6 { animation-delay: 0.36s; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 14px var(--accent); }
  50%       { box-shadow: 0 0 28px var(--accent), 0 0 56px rgba(139, 92, 246, 0.35); }
}
.brand-dot { animation: pulse-glow 3s ease-in-out infinite; }

/* ── Topbar right group ───────────────────────────────────────────────────── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #141729;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

/* ── Stars ────────────────────────────────────────────────────────────────── */
.stars { color: #f59e0b; font-size: 13px; }

/* ── Chart bars ───────────────────────────────────────────────────────────── */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  margin: 12px 0;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), #6d28d9);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}
.chart-bar.green { background: linear-gradient(180deg, var(--green), #059669); }

/* ══════════════════════════════════════════════════════════════════════════
   HUB PAGE — Hero
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero layout ─────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: min(660px, calc(100vh - 88px));
  padding: 48px 0 32px;
  margin-bottom: 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8%;
  width: 54%;
  height: 280px;
  background: radial-gradient(ellipse at center,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(6, 214, 160, 0.07) 50%,
    transparent 70%);
  transform: translateY(-10%);
  pointer-events: none;
  filter: blur(32px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ── Hero eyebrow ────────────────────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ── Hero heading ────────────────────────────────────────────────────────── */
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #ffffff 0%, #d4caff 45%, #6ee7c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

/* ── Stats bar (in hero) ─────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin-right: -1px;
}
.stat-item:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stat-item:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-right: 0; }

.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

/* ── Hero visual (floating preview cards) ────────────────────────────────── */
.hero-visual {
  position: relative;
  height: 420px;
  z-index: 1;
}

/* Glow blob behind cards */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(139, 92, 246, 0.18) 0%,
    rgba(6, 182, 212, 0.08) 50%,
    transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.preview-card {
  position: absolute;
  background: rgba(20, 23, 45, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  width: 200px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: transform 0.3s ease;
}
.preview-card:hover { transform: translateY(-4px) scale(1.02); }

.pc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pc-val {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.pc-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.pc-bar > div {
  height: 100%;
  border-radius: inherit;
}

.pc-items { display: flex; flex-direction: column; gap: 5px; }
.pc-item  {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-item::before { content: '○'; font-size: 10px; }
.pc-item.done { color: var(--accent-2); }
.pc-item.done::before { content: '✓'; }

.pc-moods { font-size: 20px; letter-spacing: 2px; margin-bottom: 8px; }
.pc-streak { font-size: 12px; font-weight: 700; color: var(--accent-2); }

/* Card positions */
.preview-card-1 {
  top: 24px;
  left: 8px;
  transform: rotate(-2deg);
  border-top: 3px solid var(--blue);
}
.preview-card-2 {
  top: 60px;
  right: 16px;
  transform: rotate(1.5deg);
  border-top: 3px solid var(--teal);
}
.preview-card-3 {
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  border-top: 3px solid var(--pink);
}

.preview-card-1:hover { transform: rotate(-2deg) translateY(-4px); }
.preview-card-2:hover { transform: rotate(1.5deg) translateY(-4px); }
.preview-card-3:hover { transform: translateX(-50%) rotate(-1deg) translateY(-4px); }

/* ── Grid spacing after hero ─────────────────────────────────────────────── */
.grid-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.grid-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ══════════════════════════════════════════════════════════════════════════
   APP CARDS (hub grid)
   ══════════════════════════════════════════════════════════════════════════ */

.app-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.app-card:hover { text-decoration: none; }
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.app-card:hover::after { opacity: 1; }

/* Subtle gradient wash per card color */
.app-card.accent-blue::after   { background: radial-gradient(ellipse at 0% 0%, rgba(99,  102, 241, 0.06), transparent 60%); }
.app-card.accent-green::after  { background: radial-gradient(ellipse at 0% 0%, rgba(16,  185, 129, 0.06), transparent 60%); }
.app-card.accent-purple::after { background: radial-gradient(ellipse at 0% 0%, rgba(168, 85,  247, 0.06), transparent 60%); }
.app-card.accent-orange::after { background: radial-gradient(ellipse at 0% 0%, rgba(245, 158, 11,  0.06), transparent 60%); }
.app-card.accent-teal::after   { background: radial-gradient(ellipse at 0% 0%, rgba(6,   182, 212, 0.06), transparent 60%); }
.app-card.accent-pink::after   { background: radial-gradient(ellipse at 0% 0%, rgba(236, 72,  153, 0.06), transparent 60%); }

.app-card .card-body { flex: 1; position: relative; z-index: 1; }
.app-card .card-footer { margin-top: 20px; position: relative; z-index: 1; }
.app-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

/* ── App icon ─────────────────────────────────────────────────────────────── */
.app-icon {
  font-size: 42px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}
.app-card:hover .app-icon { transform: scale(1.12) rotate(-3deg); }

/* ── RTL ──────────────────────────────────────────────────────────────────── */
[dir="rtl"] .brand { flex-direction: row-reverse; }
[dir="rtl"] .topbar-right { flex-direction: row-reverse; }
[dir="rtl"] .card.accent-blue   { border-left: none; border-right: 3px solid #6366f1; }
[dir="rtl"] .card.accent-green  { border-left: none; border-right: 3px solid #10b981; }
[dir="rtl"] .card.accent-purple { border-left: none; border-right: 3px solid #a855f7; }
[dir="rtl"] .card.accent-orange { border-left: none; border-right: 3px solid #f59e0b; }
[dir="rtl"] .card.accent-teal   { border-left: none; border-right: 3px solid #06b6d4; }
[dir="rtl"] .card.accent-pink   { border-left: none; border-right: 3px solid #ec4899; }
[dir="rtl"] .hero::before { left: auto; right: -8%; }
[dir="rtl"] .stat-item:first-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
[dir="rtl"] .stat-item:last-child  { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.8;
}
.site-footer .footer-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.7;
}
.site-footer .footer-sep { opacity: 0.35; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 0 24px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .stats-bar { flex-direction: column; gap: 0; }
  .stat-item { border-radius: 0 !important; border-bottom: none; margin-right: 0; }
  .stat-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important; }
  .stat-item:last-child  { border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; border-bottom: 1px solid var(--line); }
  .topbar { flex-wrap: wrap; }
  .grid-section-label { margin: 32px 0 12px; }
}
