/* Maelstrom Network — design system. Dark, technical, original.
   Palette: abyssal navy ground, cyan→violet "current" accent. */
:root {
  --bg:      #070b14;
  --bg-2:    #0c1322;
  --panel:   #111a2e;
  --panel-2: #16223b;
  --line:    #223252;
  --line-2:  #2e4470;
  --ink:     #eaf1ff;
  --ink-2:   #9fb2d4;
  --ink-3:   #64769a;
  --cyan:    #3ad6e0;
  --blue:    #4c7dff;
  --violet:  #8b5cf6;
  --good:    #34d399;
  --warn:    #fbbf24;
  --bad:     #fb7185;
  --grad:    linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--violet));
  --sh:      0 18px 50px rgba(0,0,0,.45);
  --sh-sm:   0 4px 16px rgba(0,0,0,.35);
  --r:       14px;
  --wrap:    1120px;
  --display: 'Baloo 2', system-ui, sans-serif;
  --font:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 78% -8%, rgba(76,125,255,.18), transparent 60%),
    radial-gradient(60% 50% at 12% 4%, rgba(139,92,246,.14), transparent 55%),
    radial-gradient(80% 60% at 50% 108%, rgba(58,214,224,.10), transparent 60%);
}
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700; color: var(--cyan); margin-bottom: .8rem; }
.muted { color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .98rem;
  padding: .72em 1.3em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease; font-family: var(--font); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #05070d; box-shadow: 0 8px 24px rgba(76,125,255,.35); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(76,125,255,.5); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px);
  background: rgba(7,11,20,.72); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.22rem; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 13px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; } .burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* hero */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 span { display: block; }
.hero .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-3); font-size: .86rem; }
.trust b { color: var(--ink); }
.vortex { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; }
.vortex svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 60px rgba(76,125,255,.35)); }
.spin { transform-origin: 250px 250px; animation: spin 26s linear infinite; }
.spin.rev { animation-duration: 18s; animation-direction: reverse; }
.spin.slow { animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 46px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat .n { font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.stat .l { color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* sections */
.section { padding: clamp(52px, 8vw, 92px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-2); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(76,125,255,.12); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--cyan); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; position: relative; display: flex; flex-direction: column; }
.plan.feat { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 20px 50px rgba(76,125,255,.18); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #05070d; font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin-bottom: 2px; }
.plan .ptag { color: var(--ink-3); font-size: .9rem; min-height: 2.6em; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 2.5rem; margin: 12px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--ink-3); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.plan li svg { flex: none; width: 18px; height: 18px; stroke: var(--good); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* generic card + forms (auth, dashboard, admin) */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--sh-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.alert { padding: 11px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.alert-bad { background: rgba(251,113,133,.12); color: #fecdd6; border: 1px solid rgba(251,113,133,.3); }
.alert-good { background: rgba(52,211,153,.12); color: #bbf7d8; border: 1px solid rgba(52,211,153,.3); }

/* auth split */
.auth { min-height: calc(100dvh - 66px); display: grid; place-items: center; padding: 40px 20px; }
.auth .card { width: 100%; max-width: 420px; }
.auth h1 { font-size: 1.7rem; }

/* tables (dashboard/admin) */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pill.pending { background: rgba(251,191,36,.15); color: #fcd34d; }
.pill.paid, .pill.active { background: rgba(52,211,153,.15); color: #6ee7b7; }
.pill.cancelled, .pill.refunded { background: rgba(251,113,133,.15); color: #fda4af; }

/* faq */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--panel); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--cyan); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--ink-2); margin: 0 0 16px; }

/* cta band */
.band { background: var(--grad); border-radius: 22px; padding: clamp(34px,5vw,60px); text-align: center; color: #05070d; }
.band h2 { color: #05070d; }
.band .btn-ghost { background: rgba(5,7,13,.12); border-color: rgba(5,7,13,.35); color: #05070d; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--ink-3); font-size: .9rem; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.foot a { color: var(--ink-2); } .foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }

/* dashboard shell */
.shell { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 30px 0 60px; min-height: calc(100dvh - 66px); }
.side { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; }
.side a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.side a.on, .side a:hover { background: var(--panel); color: var(--ink); }
.page-title { font-size: 1.9rem; margin-bottom: 4px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; } .vortex { max-width: 320px; }
  .features, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .shell { grid-template-columns: 1fr; } .side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .nav { display: none; } .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px; }
  .nav.open .btn { margin: 8px 0 0; }
  .burger { display: block; }
}
