/* ==========================================================================
   WMScripts — shared design system (dark / tech)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #07070b;
  --bg-2:      #0c0c13;
  --surface:   #12121b;
  --surface-2: #181824;
  --border:    #23232f;
  --border-2:  #2e2e3d;

  /* Text */
  --text:      #f3f4f8;
  --muted:     #a3a3b5;
  --faint:     #6f6f82;

  /* Brand */
  --brand:     #7c5cff;   /* violet */
  --brand-2:   #00e5d0;   /* cyan   */
  --brand-3:   #ff4d8d;   /* magenta accent */
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,.16), rgba(0,229,208,.16));

  --ok: #34d399;
  --warn: #fbbf24;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,.25), 0 18px 60px -22px rgba(124,92,255,.45);
  --maxw: 1160px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% -5%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(50% 45% at 95% 0%, rgba(0,229,208,.12), transparent 55%),
    radial-gradient(45% 40% at 50% 110%, rgba(255,77,141,.10), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2);
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #0a0a12; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(124,92,255,.4), 0 22px 60px -18px rgba(0,229,208,.55); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--brand); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,7,11,.72);
  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: 11px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--grad);
  display: grid; place-items: center; color: #0a0a12; font-weight: 900; font-size: .95rem;
  box-shadow: var(--shadow-glow);
}
.brand b { color: var(--brand-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { 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: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; }
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.2rem; max-width: 620px; margin: 0 auto 30px; }
.hero.center .hero-lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center .hero-actions { justify-content: center; }

.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.hero.center .badges { justify-content: center; }
.badges span { display: inline-flex; align-items: center; gap: 8px; }
.badges .dot { color: var(--brand-2); font-weight: 800; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.stat { text-align: center; padding: 26px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--faint); font-size: .9rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }

.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2);
  font-size: 1.4rem; margin-bottom: 16px;
}

/* Script cards (highlighted) */
.script-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.script-card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(0,229,208,.08); border: 1px solid var(--border-2);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.script-card h3 { font-size: 1.4rem; }
.script-card ul { list-style: none; padding: 0; margin: 14px 0 22px; }
.script-card li { color: var(--muted); padding: 6px 0 6px 26px; position: relative; font-size: .95rem; }
.script-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }
.script-card .card-cta { margin-top: auto; }
.script-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s;
}
.script-card:hover::after { opacity: .6; }

/* Feature list (icon rows) */
.feature { display: flex; gap: 16px; }
.feature .icon-badge { flex: none; margin-bottom: 0; }
.feature h3 { margin-bottom: 4px; font-size: 1.08rem; }
.feature p { font-size: .95rem; margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step .n {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--brand-2); margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; margin: 0; }

/* Mock browser frame for screenshots */
.frame {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.frame .bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c3a; display: block; }
.frame .bar i:nth-child(1){ background:#ff5f57; } .frame .bar i:nth-child(2){ background:#febc2e; } .frame .bar i:nth-child(3){ background:#28c840; }
.frame .screen {
  aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; color: var(--faint);
  background:
    linear-gradient(135deg, rgba(124,92,255,.08), rgba(0,229,208,.06)),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.015) 22px 23px);
  font-family: var(--mono); font-size: .85rem; padding: 20px;
}

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }

/* ---------- 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: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-glow); background: linear-gradient(180deg, rgba(124,92,255,.08), var(--surface)); }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #0a0a12; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 14px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--faint); }
.plan .soon { display:inline-block; font-family: var(--mono); font-size:.85rem; color: var(--brand-2); background: rgba(0,229,208,.07); border:1px solid var(--border-2); padding:3px 10px; border-radius:999px; margin: 8px 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: .94rem; border-bottom: 1px solid var(--border); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-weight: 800; font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; font-size: .96rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.quote p { color: var(--text); font-size: .98rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0a0a12; font-weight: 800; }
.quote .who b { font-size: .92rem; } .quote .who span { color: var(--faint); font-size: .82rem; display: block; }
.stars { color: var(--warn); letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .hero-actions { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 60px 0 30px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; transition: color .15s; }
.foot-grid a:hover { color: var(--text); }
.foot-about p { font-size: .92rem; max-width: 320px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; font-size: .75rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { font-size: 1.12rem; max-width: 620px; margin: 0 auto; }

.notice { background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 18px 22px; font-size: .95rem; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .quotes, .pricing, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.rev .split-media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 6px; }
  .nav-links.open a { padding: 10px 0; }
  .grid-3, .grid-2, .quotes, .pricing, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
