/* ═══════════════════════════════════════════════════════
   ELARA — Shared Design System
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #060203;
  --panel: rgba(11, 6, 7, 0.92);
  --panel-2: rgba(7, 2, 4, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #fff4f5;
  --muted: #b69499;
  --brand: #ff5067;
  --brand-2: #8f1429;
  --shadow: 0 28px 80px rgba(0,0,0,0.42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 90px; }

/* ── SCROLL PROGRESS ── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ff8796);
  z-index: 200;
  transition: width 0.1s ease-out;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,80,103,0.8); }

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,80,103,0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(143,20,41,0.16), transparent 28%),
    linear-gradient(180deg, #030102 0%, #080304 46%, #050203 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.9), transparent 80%);
  z-index: 0;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(6,2,3,0.82);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.16s, background 0.16s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-back {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-back:hover { 
  color: var(--text); 
  border-color: var(--brand); 
  background: rgba(255, 80, 103, 0.1);
  transform: translateX(-3px);
  box-shadow: 0 0 20px rgba(255, 80, 103, 0.15);
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,2,3,0.8);
  backdrop-filter: blur(20px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-overlay a {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s;
}
.mobile-nav-overlay a:hover { transform: scale(1.1); color: var(--brand); }

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: 6px;
  transition: all 0.2s;
}
.cat-btn.active .count-badge { background: white; color: var(--brand); }
/* ── BUTTONS ──────────────────────────────────────────── */
.btn-ghost {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255,255,255,0.03);
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.btn-ghost:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.07); }
.btn-primary {
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: #fff8f9;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(143,20,41,0.28);
  transition: transform 0.16s, box-shadow 0.16s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(143,20,41,0.4); }
.btn-hero-primary {
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #fff8f9;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(143,20,41,0.35);
  transition: transform 0.16s, box-shadow 0.16s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(143,20,41,0.48); }
.btn-hero-ghost {
  padding: 13px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.btn-hero-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); }

/* ── SECTIONS ─────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.section-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── FEATURE GRID ─────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  backdrop-filter: blur(14px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,80,103,0.12);
  border: 1px solid rgba(255,80,103,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── COMMANDS ─────────────────────────────────────────── */
.commands-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cmd-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.cmd-panel h3 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.cmd-list { display: grid; gap: 8px; }
.cmd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.16s, background 0.16s;
}
.cmd-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
.cmd-name {
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 100px;
}
.cmd-desc { color: var(--muted); font-size: 0.82rem; }

/* ── DASHBOARD CTA ────────────────────────────────────── */
.dashboard-cta {
  position: relative;
  padding: 60px 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,80,103,0.08), rgba(143,20,41,0.12));
  overflow: hidden;
  text-align: center;
}
.dashboard-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,80,103,0.14), transparent 60%);
  pointer-events: none;
}
.dashboard-cta h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  position: relative;
}
.dashboard-cta p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
  position: relative;
}
.dashboard-cta .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.16s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.82rem; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 140px 24px 120px;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255,80,103,0.3);
  border-radius: 999px;
  background: rgba(255,80,103,0.08);
  color: #ffb3bc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  animation: fadeInUp 0.5s 0.1s ease both;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--brand) 20%, #ff8796 60%, var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.5s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.5s 0.3s ease both;
}

/* ── DOC PAGES (TOS / PRIVACY) ────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-tag::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.page-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.page-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.doc-section {
  margin-bottom: 42px;
  animation: fadeInUp 0.4s ease both;
}
.doc-section h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,80,103,0.14);
  border: 1px solid rgba(255,80,103,0.24);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.doc-section p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.doc-section ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.doc-section ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}
.doc-section ul li::before {
  content: "—";
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255,80,103,0.08);
  border: 1px solid rgba(255,80,103,0.16);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.data-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
  background: rgba(255,255,255,0.015);
}
.data-table tr:hover td { background: rgba(255,255,255,0.03); }
.highlight-box {
  padding: 16px 20px;
  border: 1px solid rgba(255,80,103,0.22);
  border-radius: 14px;
  background: rgba(255,80,103,0.07);
  color: #ffe3e7;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.green-box {
  padding: 16px 20px;
  border: 1px solid rgba(52,211,153,0.22);
  border-radius: 14px;
  background: rgba(52,211,153,0.06);
  color: #a7f3d0;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.contact-box {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  margin-top: 48px;
  text-align: center;
}
.contact-box h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 8px 20px rgba(143,20,41,0.28);
}
.contact-link:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(143,20,41,0.4); }

/* ── MOBILE NAV ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 860px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 80px 20px 70px; }
  .commands-showcase { grid-template-columns: 1fr; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .dashboard-cta { padding: 40px 24px; }
}
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .page-wrap { padding: 40px 16px 80px; }
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .dashboard-cta .actions { flex-direction: column; width: 100%; }
  .dashboard-cta .actions a { width: 100%; box-sizing: border-box; }
}
