/* ============================================================
   SL Digi-Web — Design System
   Black / white / grey with amber accent. Mobile-first.
   ============================================================ */

:root {
  /* Colors */
  --bg:          #0a0a0a;
  --bg-elev:     #131313;
  --bg-hover:    #1a1a1a;
  --border:      #262626;
  --border-soft: #1f1f1f;

  --text:        #f5f5f5;
  --text-muted:  #a3a3a3;
  --text-dim:    #737373;

  --accent:      #f59e0b;
  --accent-hover:#fbbf24;
  --accent-dim:  #78350f;

  --success:     #10b981;
  --danger:      #ef4444;
  --warn:        #f59e0b;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Container */
  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--text-dim); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
}
.nav-links {
  display: none;
  gap: var(--sp-6);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-ctas { display: flex; gap: var(--sp-2); align-items: center; }
.nav-ctas .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(245,158,11,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto var(--sp-4);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  max-width: 620px;
  margin: 0 auto var(--sp-8);
  font-size: 1.05rem;
  color: var(--text-muted);
}
.hero-ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-soft);
  max-width: 700px;
  margin: var(--sp-8) auto 0;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Section ---------- */
.section { padding: var(--sp-16) 0; }
.section-head {
  text-align: center;
  margin-bottom: var(--sp-12);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { font-size: 0.95rem; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  font-size: 1.25rem;
  font-weight: 800;
}

/* ---------- Package cards ---------- */
.package-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.package-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.package-badge {
  position: absolute;
  top: -12px;
  right: var(--sp-6);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.package-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--sp-2);
}
.package-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--sp-1);
}
.package-price small {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
}
.package-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.package-features {
  list-style: none;
  margin-bottom: var(--sp-6);
  flex: 1;
}
.package-features li {
  padding: var(--sp-2) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.package-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Steps ---------- */
.step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
}
.callout h2 { margin-bottom: var(--sp-3); }
.callout p  { margin-bottom: var(--sp-6); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--sp-8) 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--text); }
/* ---------- Auth pages ---------- */
.auth-page {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: var(--sp-8) var(--sp-4);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}
.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: var(--sp-2);
}
.auth-sub {
  font-size: 0.95rem;
  margin-bottom: var(--sp-6);
}
.auth-footer {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--sp-4);
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--text);
}
.form-group small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: var(--sp-1);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.form-error {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: var(--sp-4);
}
.form-success {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.9rem;
  margin-bottom: var(--sp-4);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: calc(100vw - 2rem);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-success { border-color: var(--success); color: #6ee7b7; }
.toast-error   { border-color: var(--danger);  color: #fca5a5; }
.toast-info    { border-color: var(--accent);  color: var(--accent); }
/* ---------- App layout ---------- */
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 70px);
}
.app-sidebar {
  border-right: 1px solid var(--border-soft);
  padding: var(--sp-4);
  background: var(--bg-elev);
}
.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.app-sidebar nav a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.15s;
}
.app-sidebar nav a:hover { background: var(--bg-hover); color: var(--text); }
.app-sidebar nav a.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.app-main { padding: var(--sp-6); }

@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    padding: var(--sp-2) var(--sp-3);
  }
  .app-sidebar nav { flex-direction: row; gap: var(--sp-1); }
  .app-sidebar nav a { white-space: nowrap; font-size: 0.85rem; }
  .app-main { padding: var(--sp-4); }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-6);
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}
.stat-value { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--sp-1); }
.stat-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Code chip ---------- */
.ref-code {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
code { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); }
/* ============================================================
   ANIMATED BACKGROUND ORBS
   ============================================================ */

/* Create the container for the background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.05), transparent 40%);
  pointer-events: none;
}

/* Add the floating bubbles */
.bg-bubbles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  animation: floatUp 15s infinite ease-in;
}

/* Individual bubbles with different sizes, positions, and speeds */
.bubble:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-duration: 12s; }
.bubble:nth-child(2) { left: 25%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 45%; width: 60px; height: 60px; animation-duration: 22s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 65%; width: 30px; height: 30px; animation-duration: 14s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 80%; width: 50px; height: 50px; animation-duration: 20s; animation-delay: 5s; }
.bubble:nth-child(6) { left: 90%; width: 15px; height: 15px; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(7) { left: 5%; width: 35px; height: 35px; animation-duration: 25s; animation-delay: 7s; }

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(1.5);
    opacity: 0;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; display: none; }
}