/* ===== CSS VARIABLES (Day / Night) ===== */
:root {
  --bg: #0b0b0f;
  --surface: rgba(255,255,255,0.04);
  --text: #e9e9ee;
  --muted: #a6a6b3;
  --brand: #7c5cff;       /* accent */
  --brand-2: #00e0ff;     /* secondary accent */
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --gap: 18px;
  --maxw: 1100px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Light theme vars */
html.theme-light {
  --bg: #fbfbfe;
  --surface: rgba(0,0,0,0.04);
  --text: #101014;
  --muted: #5a5a66;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Base resets */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -20%, #142040 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Top glow bar */
.top-glow {
  position: fixed; inset: 0 0 auto 0; height: 120px;
  background: linear-gradient(180deg, rgba(124,92,255,0.35), rgba(124,92,255,0) 70%);
  pointer-events: none; z-index: 1;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,10,14,0.85), rgba(10,10,14,0.55));
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

.brand {
  font-weight: 800; letter-spacing: 0.5px; text-decoration: none; color: var(--text);
  padding: 10px 12px; border-radius: 10px; transition: transform .12s ease;
}
.brand:hover { transform: translateY(-1px); }

.nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
  position: relative; text-decoration: none; color: var(--muted);
  padding: 10px 6px; border-radius: 8px; transition: color .15s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-ctas { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* Buttons */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.2); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; box-shadow: none; }

/* Mobile nav */
.nav-toggle {
  display: none; background: transparent; border: none; padding: 10px;
  border-radius: 10px; cursor: pointer;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { 
    position: fixed; inset: 64px 12px auto 12px; border: 1px solid var(--border);
    background: rgba(10,10,14,0.9); border-radius: 16px; padding: 10px;
    display: grid; gap: 6px; transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-ctas { margin: 6px 2px 2px; justify-content: end; }
}

/* Sticky header subtle shrink */
[data-sticky].shrink .nav-wrap { min-height: 56px; transition: min-height .2s ease; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 60px;
  background: radial-gradient(800px 400px at 80% -20%, rgba(0,224,255,0.2), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-title { font-size: clamp(32px, 4vw, 56px); margin: 0 0 8px; letter-spacing: .5px; }
.hero-sub { color: var(--muted); margin: 0 0 16px; font-size: clamp(16px, 1.7vw, 20px); }
.hero-actions { display: flex; gap: 12px; margin-top: 12px; }
#orb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }

/* ===== Content / Utilities ===== */
.page-content { padding: 36px 0 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .nav-link::after, .btn, .brand { transition: none !important; }
}

/* Provide default no-js state */
.no-js .reveal { opacity: 1; transform: none; }


/* ===== Header Cart Badge ===== */
.cart-link {
  position: relative; display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text); margin-left: 6px;
}
.cart-icon { font-size: 18px; line-height: 1; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--brand); color: #fff; border-radius: 999px; box-shadow: var(--shadow);
}

/* Email Signup — ensure email inputs are styled like others */
.form input[type="email"],
.form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form input[type="email"]:focus,
.form input[type="text"]:focus { border-color: rgba(255,255,255,0.22); box-shadow: var(--shadow); }

/* Nice success / error banners */
.notice {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.notice.success { background: #1a3b1f; border-color: #2c7a36; color: #d9ffe3; }
.notice.error   { background: #3b1a1a; border-color: #7a2c2c; color: #ffdfdf; }


/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #2c2c2c;
  background: #0a0a0a;
}
.footer-inner {
  max-width: 960px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.social-bar {
  display: flex;
  gap: 12px;
}
.social-bar a {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1a1a1a;
  align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-bar a:hover {
  background: #7c5cff;
  transform: translateY(-2px);
}
.icon {
  width: 16px; height: 16px;
  fill: #ccc;
}
.social-bar a:hover .icon { fill: #fff; }
