/*
Theme Name: Viralytics OS
Theme URI: https://viralytics.thejbneubauer.com
Author: JB Neubauer
Author URI: https://thejbneubauer.com
Description: A modern, catchy marketing theme for the Viralytics OS creator platform. Includes a hero landing page, feature/pricing sections, and a custom login page that hands off to the Viralytics OS app.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viralytics-os
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg:            #0a0a12;
  --bg-2:          #10101d;
  --surface:       rgba(255,255,255,0.04);
  --surface-2:     rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.10);
  --text:          #f4f5fb;
  --muted:         #a2a4bd;
  --brand:         #8b5cf6;
  --brand-2:       #ec4899;
  --brand-3:       #22d3ee;
  --grad:          linear-gradient(120deg, #8b5cf6 0%, #ec4899 50%, #22d3ee 100%);
  --grad-soft:     linear-gradient(120deg, rgba(139,92,246,.18), rgba(236,72,153,.14), rgba(34,211,238,.16));
  --radius:        18px;
  --radius-lg:     28px;
  --shadow:        0 24px 60px -20px rgba(139,92,246,.45);
  --maxw:          1140px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, rgba(139,92,246,.22), transparent 60%),
              radial-gradient(1000px 600px at -10% 20%, rgba(34,211,238,.14), transparent 55%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 28px 70px -18px rgba(236,72,153,.55); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,10,18,0.6);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900;
  box-shadow: 0 8px 20px -6px rgba(139,92,246,.6);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 96px 0 80px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
.hero .sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-visual {
  margin: 64px auto 0; max-width: 960px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 100px -30px rgba(139,92,246,.5);
  overflow: hidden;
}
.hero-visual .bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.hero-visual .bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.dash-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 26px; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: left; }
.dash-card .k { font-size: 13px; color: var(--muted); }
.dash-card .v { font-size: 28px; font-weight: 800; margin-top: 6px; }
.dash-card .trend { font-size: 13px; margin-top: 8px; color: #34d399; font-weight: 600; }
.spark { height: 46px; margin-top: 14px; border-radius: 8px; background: var(--grad-soft); position: relative; overflow: hidden; }
.spark::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); animation: sweep 2.6s infinite; }
@keyframes sweep { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.5); background: var(--surface-2); }
.feature .ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 24px;
}
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat .n { font-size: clamp(34px,5vw,52px); font-weight: 900; }
.stat .l { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column;
}
.plan.featured { border-color: transparent; background:
  linear-gradient(var(--bg-2),var(--bg-2)) padding-box,
  var(--grad) border-box; box-shadow: var(--shadow); position: relative; }
.plan.featured .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-size: 46px; font-weight: 900; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.plan li { color: var(--muted); font-size: 15px; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: #34d399; font-weight: 800; }
.plan .btn { margin-top: auto; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(28px,4vw,44px); font-weight: 800; }
.cta-band p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }

/* ============================================================
   Login page
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-aside {
  position: relative; padding: 60px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--grad-soft); border-right: 1px solid var(--border); overflow: hidden;
}
.auth-aside::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.5), transparent 70%); top: -120px; right: -120px; filter: blur(20px); }
.auth-aside h2 { font-size: 38px; font-weight: 800; position: relative; }
.auth-aside p { color: var(--muted); font-size: 17px; max-width: 380px; position: relative; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; position: relative; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.auth-points .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border); display: grid; place-items: center; }

.auth-main { display: grid; place-items: center; padding: 60px 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 30px; font-weight: 800; }
.auth-card .lead { color: var(--muted); margin-bottom: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; font-family: var(--font); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.field-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 24px; font-size: 14px; }
.field-row a { color: var(--brand-3); font-weight: 600; }
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sso { display: grid; gap: 12px; }
.auth-error { color: #fca5a5; background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.35);
  border-radius: 12px; padding: 11px 14px; font-size: 14px; margin: 0 0 16px; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }
.auth-alt { text-align: center; color: var(--muted); font-size: 15px; margin-top: 26px; }
.auth-alt a { color: var(--brand-3); font-weight: 600; }
.auth-note { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }

/* ============================================================
   Generic page/post content
   ============================================================ */
.page-content { padding: 70px 0; }
.page-content .container { max-width: 780px; }
.page-content h1 { font-size: 42px; }
.entry a { color: var(--brand-3); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px;
  }
  .features, .pricing, .stats, .dash-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
