/* ═══════════════════════════════════════════════════════════
   site.css — shared public page styles  ·  Professional Edition
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ───────────────────────────────────────────────── */
:root {
  --bg:      #060810;
  --panel:   #0b0f1a;
  --panel2:  #101523;
  --border:  #1c2338;
  --b2:      #30395a;
  --gold:    #3d84ff;
  --gold2:   #7fb1ff;
  --purple:  #a855f7;
  --teal:    #00e5ff;
  --green:   #00ff88;
  --pink:    #ff2f6e;
  --blue:    #3d84ff;
  --text:    #f3f5fc;
  --muted:   #5b6478;
  --muted2:  #9aa4bc;
  --accent:  #3d84ff;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%,  rgba(61,132,255,.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 100%, rgba(0,229,255,.10) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 60%,  rgba(168,85,247,.06) 0%, transparent 60%);
}
a { text-decoration: none; color: inherit; }

/* ─── Glow / motion utilities ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--gold), var(--teal));
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(61,132,255,.45), 0 4px 22px rgba(61,132,255,.3); }
  50%      { box-shadow: 0 0 42px rgba(61,132,255,.8),  0 4px 30px rgba(61,132,255,.5); }
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(24px,-28px) scale(1.08); }
}
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; opacity: .5; animation: floatOrb 10s ease-in-out infinite;
}
@keyframes shakeText {
  0%, 100% { transform: translate(0,0) rotate(0); }
  20%      { transform: translate(-2px,1px) rotate(-1deg); }
  40%      { transform: translate(2px,-1px) rotate(1deg); }
  60%      { transform: translate(-1px,2px) rotate(0); }
  80%      { transform: translate(1px,-2px) rotate(1deg); }
}
.shake-hover:hover { animation: shakeText .4s ease; }
@keyframes shimmerSweep { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── Nav ───────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10,14,23,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 2rem; gap: 2rem;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 1.08rem; color: var(--text);
  text-shadow: 0 0 18px rgba(61,132,255,.55), 0 0 40px rgba(61,132,255,.2);
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: .5rem;
}
.nav-links {
  display: flex; align-items: center; gap: 1.6rem; flex: 1;
}
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: .84rem; font-weight: 600;
  letter-spacing: .01em; color: var(--muted2);
  transition: color .15s, text-shadow .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); text-shadow: 0 0 12px rgba(0,229,255,.5); }
.nav-links a.active {
  color: var(--gold2);
  text-shadow: 0 0 14px rgba(61,132,255,.55);
  border-bottom: 2px solid var(--gold); padding-bottom: 1px;
}
.nav-auth { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.btn-ghost {
  font-family: 'Inter', sans-serif; font-size: .84rem; font-weight: 600;
  color: var(--muted2); padding: .42rem .95rem;
  border: 1px solid var(--border); border-radius: 8px;
  transition: all .15s; white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--teal); color: var(--teal);
  background: rgba(0,229,255,.05);
  box-shadow: 0 0 14px rgba(0,229,255,.2);
}
.btn-cta-sm {
  font-family: 'Inter', sans-serif; font-size: .84rem; font-weight: 700;
  color: #fff;
  padding: .46rem 1.2rem;
  background: linear-gradient(135deg, #1d4fd8, #3d84ff, #7fb1ff);
  border-radius: 8px; white-space: nowrap;
  box-shadow: 0 0 22px rgba(61,132,255,.5), 0 2px 14px rgba(61,132,255,.35);
  transition: all .2s;
}
.btn-cta-sm:hover {
  box-shadow: 0 0 36px rgba(61,132,255,.8), 0 5px 22px rgba(61,132,255,.55);
  transform: translateY(-1px) scale(1.03);
}

/* ─── Nav: hamburger (hidden on desktop) ────────────────────────── */
.nav-burger {
  display: none;
  width: 38px; height: 38px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer; padding: 0;
}
.nav-burger:hover { border-color: var(--b2); }

/* ─── Nav: mobile collapse ───────────────────────────────────────── */
@media (max-width: 860px) {
  .site-nav { padding: 0 1.25rem; gap: 1rem; }
  .nav-links, .nav-auth { display: none; }
  .nav-burger { display: inline-flex; }
  .site-nav.nav-open { flex-wrap: wrap; height: auto; padding-bottom: 1rem; }
  .site-nav.nav-open .nav-links,
  .site-nav.nav-open .nav-auth {
    display: flex; flex-basis: 100%; order: 3;
  }
  .site-nav.nav-open .nav-links {
    flex-direction: column; align-items: flex-start; gap: 0;
    border-top: 1px solid var(--border); margin-top: .75rem; padding-top: .5rem;
  }
  .site-nav.nav-open .nav-links a {
    width: 100%; padding: .7rem 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.nav-open .nav-links a.active { border-bottom-color: var(--gold); }
  .site-nav.nav-open .nav-auth {
    flex-direction: column; align-items: stretch; gap: .6rem; margin-top: .75rem;
  }
  .site-nav.nav-open .nav-auth .theme-toggle { align-self: flex-start; }
  .site-nav.nav-open .btn-ghost, .site-nav.nav-open .btn-cta-sm { text-align: center; }
}

/* ─── Page Hero (inner pages) ───────────────────────────────────── */
.page-hero {
  text-align: center; padding: 4.5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 380px;
  background: radial-gradient(ellipse, rgba(61,132,255,.24) 0%, rgba(168,85,247,.12) 50%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,.4) 30%, rgba(168,85,247,.4) 70%, transparent 100%);
}
.page-label {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  color: var(--teal); text-transform: uppercase; margin-bottom: .8rem;
  text-shadow: 0 0 14px rgba(0,229,255,.5);
}
.page-hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--text); line-height: 1.2;
  text-shadow: 0 0 36px rgba(61,132,255,.4);
  margin-bottom: .9rem;
}
.page-hero p {
  color: var(--muted2); font-size: 1.05rem;
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ─── Section wrapper ────────────────────────────────────────────── */
.site-section { padding: 4.5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section-center { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  color: var(--teal); text-transform: uppercase; margin-bottom: .6rem;
  text-shadow: 0 0 14px rgba(0,229,255,.5);
}
.section-title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  color: var(--text); margin-bottom: .7rem; line-height: 1.25;
  text-shadow: 0 0 26px rgba(61,132,255,.3);
}
.section-sub { color: var(--muted2); font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }
.divider {
  border: none; height: 1px; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.35), rgba(168,85,247,.35), transparent);
}
.alt-bg {
  background: rgba(0,229,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.2rem;
  background: linear-gradient(135deg, #1d4fd8, #3d84ff, #7fb1ff);
  color: #fff; font-weight: 700; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .95rem;
  animation: pulseGlow 2.8s ease-in-out infinite;
  transition: all .22s;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  animation-play-state: paused;
  box-shadow: 0 0 50px rgba(61,132,255,.85), 0 12px 36px rgba(61,132,255,.5);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.2rem;
  border: 1px solid rgba(0,229,255,.4); color: var(--teal);
  border-radius: 10px; font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 600; transition: all .2s;
}
.btn-outline:hover {
  background: rgba(0,229,255,.08); border-color: rgba(0,229,255,.8);
  box-shadow: 0 0 24px rgba(0,229,255,.3), inset 0 0 14px rgba(0,229,255,.06);
  transform: translateY(-2px);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10,14,23,.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px; margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-brand-name {
  display: flex; align-items: center; gap: .55rem;
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--text); margin-bottom: .8rem;
  text-shadow: 0 0 18px rgba(61,132,255,.4);
}
.footer-brand-desc {
  font-size: .875rem; color: var(--muted); line-height: 1.7; max-width: 280px;
}
.footer-col-title {
  font-family: 'Inter', sans-serif; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); font-weight: 700;
  margin-bottom: 1.1rem;
}
.footer-col-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-col-links a {
  font-size: .87rem; color: var(--muted);
  transition: color .15s, text-shadow .15s; line-height: 1.4;
}
.footer-col-links a:hover { color: var(--teal); text-shadow: 0 0 10px rgba(0,229,255,.4); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; justify-content: center; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.footer-copy {
  font-family: 'Inter', sans-serif; font-size: .78rem;
  color: var(--muted); opacity: .8;
}

/* ─── Scroll fade-in ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── Theme toggle ────────────────────────────────────────────────── */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1rem; line-height: 1;
  transition: all .18s; color: var(--muted2); flex-shrink: 0; padding: 0;
}
.theme-toggle:hover {
  border-color: var(--b2); background: rgba(255,255,255,.04);
}

/* ─── Pricing note ───────────────────────────────────────────────── */
.pricing-note {
  text-align: center; font-size: .8rem; color: var(--muted2);
  margin-top: 1.8rem; line-height: 1.7; padding: .75rem 1rem;
  border-radius: 10px;
  background: rgba(79,124,255,.05);
  border: 1px solid rgba(79,124,255,.16);
}

/* ─── Light Mode ─────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:      #f6f7fb;
  --panel:   #ffffff;
  --panel2:  #eef1f8;
  --border:  #dde2ee;
  --b2:      #c3cbe0;
  --gold:    #2354e0;
  --gold2:   #3d6fe8;
  --purple:  #7c1fe0;
  --teal:    #0891b2;
  --green:   #059669;
  --pink:    #be123c;
  --blue:    #2354e0;
  --text:    #131a2c;
  --muted:   #6b7280;
  --muted2:  #4b5563;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%,  rgba(35,84,224,.06) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 100%, rgba(8,145,178,.05)  0%, transparent 55%);
}
[data-theme="light"] .site-nav {
  background: rgba(246,247,251,.94);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav-logo, [data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active, [data-theme="light"] .page-label,
[data-theme="light"] .page-hero h1, [data-theme="light"] .section-label,
[data-theme="light"] .section-title, [data-theme="light"] .footer-brand-name,
[data-theme="light"] .footer-col-links a:hover { text-shadow: none; }
[data-theme="light"] .btn-ghost:hover { box-shadow: none; }
[data-theme="light"] .btn-cta-sm { box-shadow: 0 2px 12px rgba(35,84,224,.25); }
[data-theme="light"] .btn-cta-sm:hover { box-shadow: 0 4px 18px rgba(35,84,224,.35); }
[data-theme="light"] .page-hero::before { background: radial-gradient(ellipse, rgba(35,84,224,.08) 0%, rgba(124,31,224,.04) 50%, transparent 70%); }
[data-theme="light"] .alt-bg  { background: rgba(0,0,0,.015); border-color: var(--border); }
[data-theme="light"] .btn-primary  { animation: none; box-shadow: 0 4px 16px rgba(35,84,224,.25); }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 24px rgba(35,84,224,.35); }
[data-theme="light"] .btn-outline  { border-color: rgba(8,145,178,.4); color: var(--teal); box-shadow: none; }
[data-theme="light"] .btn-outline:hover { background: rgba(8,145,178,.06); box-shadow: none; }
[data-theme="light"] .site-footer { background: rgba(255,255,255,.6); border-top-color: var(--border); }
[data-theme="light"] .footer-col-title { color: var(--teal); }
[data-theme="light"] .theme-toggle { border-color: var(--border); }
[data-theme="light"] .theme-toggle:hover { border-color: var(--b2); }
[data-theme="light"] .pricing-note { background: rgba(35,84,224,.05); border-color: rgba(35,84,224,.16); }
[data-theme="light"] .glow-orb { display: none; }
