/* ============================================================
   OutPerform — site styles
   Health + performance aesthetic: dark, glassy, gradient glow,
   animated score rings.
   ============================================================ */

:root {
  --bg: #07070b;
  --bg-2: #0c0c13;
  --bg-elev: #101019;
  --card: rgba(22, 22, 32, 0.66);
  --card-solid: #14141f;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f9;
  --text-dim: #a9a9bb;
  --text-faint: #6c6c7e;

  --purple: #8d73f2;
  --purple-2: #a78bff;
  --blue: #4d9ef2;
  --cyan: #38d6e0;
  --green: #4dd58a;
  --yellow: #fbbf3b;
  --orange: #ff8a4c;
  --red: #f2575c;
  --revolut: #0075eb;

  --grad: linear-gradient(105deg, var(--purple), var(--blue));
  --grad-bright: linear-gradient(105deg, #a78bff, #5ab0ff);
  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1140px;
  --glow: 0 0 0 1px var(--stroke), 0 20px 60px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background mesh */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(141,115,242,0.18), transparent 70%),
    radial-gradient(45% 45% at 90% 8%, rgba(77,158,242,0.16), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(56,214,224,0.07), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; }
a { color: var(--blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--purple-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--purple-2); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(7,7,11,0.6);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk"; font-weight: 700; font-size: 1.18rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(141,115,242,0.14); box-shadow: inset 0 0 0 1px rgba(141,115,242,0.3); }
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.nav-cta) { color: var(--text-dim); font-size: 0.94rem; font-weight: 500; }
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-cta {
  background: var(--revolut); color: #fff !important; padding: 9px 17px;
  border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  box-shadow: 0 8px 24px -10px rgba(0,117,235,0.5);
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; border: 0;
  font-family: "Inter"; transition: transform .18s, filter .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 38px -14px rgba(120,110,255,0.8); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--stroke-2); }
.btn-ghost:hover { border-color: var(--purple); color: var(--text); }
.btn-revolut { background: var(--revolut); color: #fff; box-shadow: 0 14px 38px -14px rgba(0,117,235,0.6); }
.btn-revolut:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(141,115,242,0.12); color: var(--purple-2); font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(141,115,242,0.28); margin-bottom: 24px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; margin: 0 0 20px; }
.hero h1 .grad { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-dim); max-width: 540px; margin: 0 0 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-faint); font-size: 0.88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero p.lede { margin-inline: 0; }
}

/* ---------- Dashboard mockup ---------- */
.dash {
  position: relative; border-radius: var(--radius-lg); padding: 26px;
  background: linear-gradient(180deg, rgba(26,26,38,0.9), rgba(14,14,22,0.92));
  border: 1px solid var(--stroke-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dash::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, rgba(141,115,242,0.6), transparent 40%, transparent 60%, rgba(77,158,242,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-head .t { font-weight: 600; color: var(--text-dim); font-size: 0.9rem; }
.dash-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--green); font-weight: 600; }
.dash-head .live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(77,213,138,0.6);} 50% { box-shadow: 0 0 0 6px rgba(77,213,138,0); } }
.dash .main-ring { display: grid; place-items: center; margin: 8px 0 18px; }
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mini {
  background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 12px 8px; text-align: center;
}
.mini .lbl { font-size: 0.72rem; color: var(--text-faint); margin-top: 6px; }
.spark-wrap { margin-top: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px; }
.spark-wrap .sh { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-faint); margin-bottom: 6px; }
.spark-wrap .sh b { color: var(--purple-2); }

/* Score ring */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { fill: none; stroke: rgba(255,255,255,0.07); }
.ring .bar { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.85,.25,1); }
.ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .center .val { font-family: "Space Grotesk"; font-weight: 700; line-height: 1; }
.ring .center .cap { font-size: 0.72rem; color: var(--text-faint); margin-top: 3px; }

/* ---------- Stat strip ---------- */
.stats { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); background: rgba(255,255,255,0.015); }
.stats .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding: 30px 24px; }
.stat { text-align: center; }
.stat .n { font-family: "Space Grotesk"; font-size: clamp(1.6rem,3.5vw,2.3rem); font-weight: 700; background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--text-dim); font-size: 0.85rem; margin-top: 2px; }
@media (max-width: 620px) { .stats .wrap { grid-template-columns: repeat(2,1fr); gap: 24px 18px; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 14px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--card); backdrop-filter: blur(10px);
  border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; top: -40%; right: -30%; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(141,115,242,0.18), transparent 70%); opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.card:hover::after { opacity: 1; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 9px; font-size: 1.22rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }
.ico.purple { background: rgba(141,115,242,0.15); color: var(--purple-2); }
.ico.blue { background: rgba(77,158,242,0.15); color: var(--blue); }
.ico.green { background: rgba(77,213,138,0.15); color: var(--green); }
.ico.yellow { background: rgba(251,191,59,0.15); color: var(--yellow); }
.ico.orange { background: rgba(255,138,76,0.15); color: var(--orange); }
.ico.cyan { background: rgba(56,214,224,0.15); color: var(--cyan); }

/* ---------- Band ---------- */
.band { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }

/* ---------- Focus highlight ---------- */
.focus-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.focus-feature .copy h2 { font-size: clamp(1.7rem,3.6vw,2.5rem); margin: 14px 0 16px; }
.focus-feature .copy p { color: var(--text-dim); font-size: 1.05rem; }
.focus-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.focus-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.focus-list .b { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: rgba(141,115,242,0.15); color: var(--purple-2); display: grid; place-items: center; margin-top: 3px; }
.curve-card { background: var(--card); border: 1px solid var(--stroke-2); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--glow); }
.curve-card .ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.curve-card .ch .now { font-size: 0.78rem; color: var(--purple-2); font-weight: 600; }
.legend { display: flex; gap: 18px; margin-top: 10px; font-size: 0.78rem; color: var(--text-faint); }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
@media (max-width: 880px) { .focus-feature { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px; position: relative; }
.step .num { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; font-family: "Space Grotesk"; font-weight: 700; display: grid; place-items: center; margin-bottom: 15px; box-shadow: 0 10px 24px -10px rgba(120,110,255,0.7); }
.step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Security ---------- */
.sec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 16px; }
.sec-item { display: flex; gap: 15px; align-items: flex-start; background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 22px; transition: border-color .25s; }
.sec-item:hover { border-color: rgba(77,213,138,0.4); }
.sec-item .check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(77,213,138,0.15); color: var(--green); display: grid; place-items: center; }
.sec-item .check svg { width: 17px; height: 17px; }
.sec-item h4 { margin: 0 0 4px; font-size: 1.04rem; }
.sec-item p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Science chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); font-size: 0.88rem; color: var(--text-dim); }
.chip b { color: var(--text); font-weight: 600; }

/* ---------- Support / Revolut ---------- */
.support-card {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-lg);
  padding: 56px 32px; border: 1px solid var(--stroke-2);
  background: linear-gradient(125deg, rgba(0,117,235,0.10), rgba(141,115,242,0.12) 60%, rgba(77,158,242,0.10));
}
.support-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 80% at 50% 0%, rgba(0,117,235,0.10), transparent 70%); }
.support-card .btn { position: relative; z-index: 1; }
.support-card .em { font-size: 2.6rem; }
.support-card h2 { margin: 8px 0 12px; font-size: clamp(1.7rem,4vw,2.4rem); }
.support-card p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; position: relative; }

/* ---------- Disclaimer / footer ---------- */
.note { color: var(--text-faint); font-size: 0.85rem; text-align: center; max-width: 740px; margin: 0 auto; }
footer { border-top: 1px solid var(--stroke); padding: 44px 0; margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links a { color: var(--text-dim); font-size: 0.92rem; }
footer .links a:hover { color: var(--text); }
footer .copy { color: var(--text-faint); font-size: 0.88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring .bar { transition: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; max-width: 800px; }
.legal h1 { font-size: clamp(2rem,5vw,2.6rem); margin: 0 0 6px; }
.legal .updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 26px; color: var(--text-dim); font-weight: 500; }
.legal .back:hover { color: var(--text); }
