/* ============================================================
   Cwards — marketing site styles
   Palette + layout + components. Custom properties first.
   ============================================================ */
:root {
  --bg: #0B0912;
  --bg-2: #120E1F;
  --violet: #7C5CFF;
  --violet-2: #6C4DF6;
  --violet-soft: #B9A7FF;
  --gold: #E8C36B;
  --green: #3DD68C;
  --text: #F4F2FA;
  --muted: #B6B2C6;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.tnum { font-variant-numeric: tabular-nums; }

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

/* ---------- Aurora / mesh background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 24s var(--ease) infinite alternate;
}
.aurora__blob--violet { width: 620px; height: 620px; background: var(--violet-2); top: -180px; left: -120px; }
.aurora__blob--gold   { width: 480px; height: 480px; background: var(--gold); top: 40%; right: -160px; opacity: 0.25; animation-delay: -8s; }
.aurora__blob--green   { width: 420px; height: 420px; background: var(--green); bottom: -160px; left: 30%; opacity: 0.22; animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(60px, 80px, 0) scale(1.15); }
}
/* Subtle film grain */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--violet-soft); margin-bottom: 16px;
}
.section__title {
  font-family: var(--display); font-weight: 700; line-height: 1.08;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: 18px;
}
.section__lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin-bottom: 44px; }
.section__lede a, .faq a, .contact a { color: var(--violet-soft); }
.grad-text {
  background: linear-gradient(100deg, var(--violet-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Glass + tilt ---------- */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.tilt { transition: transform 0.25s var(--ease), border-color 0.25s; transform-style: preserve-3d; will-change: transform; }
.tilt:hover { border-color: rgba(124,92,255,0.4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s;
  will-change: transform;
}
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--primary {
  color: #14101f; background: linear-gradient(100deg, var(--violet-soft), var(--violet));
  box-shadow: 0 10px 30px rgba(124,92,255,0.35);
}
.btn--primary:hover { box-shadow: 0 14px 40px rgba(124,92,255,0.5); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--glass-brd); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--violet-soft); outline-offset: 3px;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.3);
  color: var(--violet-soft); font-size: 0.85rem; font-weight: 500;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,9,18,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-brd);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { border-radius: 8px; }
.nav__wordmark { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 4px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav__mobile { display: none; flex-direction: column; padding: 0 24px; background: rgba(11,9,18,0.95); }
.nav__mobile a { padding: 14px 0; border-bottom: 1px solid var(--glass-brd); color: var(--muted); }
.nav__mobile.open { display: flex; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fallback {
  position: absolute; top: 50%; right: 8%; width: 240px; transform: translateY(-50%);
  opacity: 0; filter: drop-shadow(0 20px 60px rgba(124,92,255,0.5)); z-index: 0;
  animation: floaty 6s ease-in-out infinite;
}
.hero__fallback.show { opacity: 0.85; }
@keyframes floaty { 0%,100%{ transform: translateY(-52%);} 50%{ transform: translateY(-48%);} }
.hero__content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; margin: 0 auto; width: 100%; max-width: var(--maxw); }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 20px 0 20px; }
.hero__sub { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust { color: var(--muted); font-size: 0.98rem; }
.hero__trust .tnum { color: var(--text); font-weight: 600; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid var(--glass-brd); border-radius: 14px; z-index: 2; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--violet-soft); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0);} 40%{opacity:1;} 100%{opacity:0;transform:translateY(14px);} }

/* ---------- PROBLEM ---------- */
.problem__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 20px; }
.problem__grid .glass { padding: 30px; }
.stat { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.problem__grid p { color: var(--muted); }

/* ---------- FEATURES ---------- */
.feature-list { display: flex; flex-direction: column; gap: 90px; margin-top: 30px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature--reverse .feature__visual { order: 2; }
.feature__num { font-family: var(--display); font-size: 0.9rem; color: var(--violet-soft); letter-spacing: 0.1em; }
.feature__body h3 { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.02em; margin: 8px 0 14px; }
.feature__body p { color: var(--muted); font-size: 1.06rem; }
.feature__visual { position: relative; }
.fviz { padding: 28px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.fviz__note, .fviz__why { color: var(--muted); font-size: 0.88rem; }
.pos { color: var(--green); font-weight: 600; }

/* feature viz bits */
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--glass-brd); font-size: 0.82rem; margin: 0 6px 6px 0; color: var(--muted); }
.chip--active { background: var(--violet-2); border-color: var(--violet); color: #fff; }
.fviz__winner { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 14px 18px; border-radius: 14px; background: rgba(124,92,255,0.14); border: 1px solid rgba(124,92,255,0.3); }
.fviz__winner strong { font-family: var(--display); font-size: 1.1rem; }
.fviz__winner .tnum { color: var(--green); font-weight: 600; }
.fviz__row { display: flex; justify-content: space-between; font-weight: 600; }
.fviz__bar { height: 10px; border-radius: 8px; background: rgba(255,255,255,0.08); overflow: hidden; }
.fviz__bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--violet),var(--gold)); }
.fviz__warn { padding: 10px 14px; border-radius: 12px; background: rgba(232,195,107,0.12); border: 1px solid rgba(232,195,107,0.35); color: var(--gold); font-size: 0.9rem; }
.fviz__factors { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.fviz__factors li { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 4px 10px; }
.mini-gauge { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: conic-gradient(var(--gold) 0 78%, rgba(255,255,255,0.08) 78% 100%); }
.mini-gauge span { width: 74px; height: 74px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.chat { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 0.92rem; }
.chat--ai { align-self: flex-start; background: rgba(124,92,255,0.16); border: 1px solid rgba(124,92,255,0.3); border-bottom-left-radius: 4px; }
.chat--you { align-self: flex-end; background: rgba(255,255,255,0.06); border-bottom-right-radius: 4px; }
.flow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--glass-brd); }
.flow b { font-family: var(--display); }
.flow--pos b { color: var(--green); }
.fviz__bars { display: flex; align-items: flex-end; gap: 8px; height: 60px; margin-top: 6px; }
.fviz__bars i { flex: 1; background: linear-gradient(180deg,var(--violet-soft),var(--violet-2)); border-radius: 4px 4px 0 0; }
.rank { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.rank span { width: 24px; height: 24px; border-radius: 50%; background: var(--violet-2); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.rank b { flex: 1; font-weight: 600; }
.rank--muted { opacity: 0.6; }
.notif { padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-brd); font-size: 0.92rem; }
.card3d { height: 54px; border-radius: 12px; display: flex; align-items: center; padding: 0 18px; font-family: var(--display); font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.card3d--v { background: linear-gradient(100deg,#3a2f7a,#6C4DF6); }
.card3d--m { background: linear-gradient(100deg,#7a3a4f,#E8C36B); transform: translateX(14px); }
.card3d--r { background: linear-gradient(100deg,#1f5a44,#3DD68C); transform: translateX(28px); }
.bill { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.bill em { color: var(--gold); font-style: normal; font-size: 0.88rem; }
.bill--ok em { color: var(--green); }
.tile { display: inline-block; padding: 14px 20px; border-radius: 14px; background: rgba(124,92,255,0.14); border: 1px solid rgba(124,92,255,0.3); font-family: var(--display); font-weight: 600; margin: 0 8px 8px 0; }

/* ---------- HOW ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 24px; }
.step { padding: 34px 30px; }
.step__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; background: linear-gradient(120deg,var(--violet),var(--violet-2)); color: #fff; margin-bottom: 18px; }
.step h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- SCORE ---------- */
.score__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.score__gauge-wrap { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1; }
.gauge { width: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 16; }
.gauge__value {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 16; stroke-linecap: round;
  stroke-dasharray: 628; stroke-dashoffset: 628; transition: stroke-dashoffset 1.6s var(--ease);
  filter: drop-shadow(0 0 10px rgba(124,92,255,0.5));
}
.gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__num { font-family: var(--display); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.gauge__of { color: var(--muted); font-size: 0.95rem; }
.gauge__label { margin-top: 8px; color: var(--violet-soft); font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.score__factors { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.score__factors li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass-bg); font-size: 0.9rem; }

/* ---------- SECURITY ---------- */
.security__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.security__grid .glass { padding: 30px; }
.security__grid h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; }
.security__grid p { color: var(--muted); }

/* ---------- WHY ---------- */
.compare { padding: 10px 26px; margin-bottom: 28px; overflow-x: auto; }
.compare__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--glass-brd); align-items: center; text-align: center; min-width: 520px; }
.compare__row:last-child { border-bottom: 0; }
.compare__row span:first-child { text-align: left; color: var(--muted); }
.compare__row--head { font-family: var(--display); font-weight: 700; color: var(--text); }
.compare__us { color: var(--green); font-weight: 600; }
.compare__row--head .compare__us { color: var(--gold); }
.why__punch { font-size: 1.3rem; font-family: var(--display); max-width: 720px; }
.why__punch em { color: var(--violet-soft); font-style: normal; }

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.acc { border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--glass-bg); overflow: hidden; }
.acc summary { cursor: pointer; padding: 20px 24px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--violet-soft); font-size: 1.5rem; transition: transform 0.3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact__form { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-brd); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-family: var(--font); font-size: 1rem; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--violet); }
.field--honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 0.95rem; min-height: 1.2em; }
.form__status.ok { color: var(--green); }
.form__status.err { color: #ff8a8a; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- DOWNLOAD ---------- */
.download__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 46px; flex-wrap: wrap; }
.download__inner .section__title { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 8px; }
.download__inner .section__lede { margin-bottom: 0; }
.download__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 14px; background: #000; border: 1px solid var(--glass-brd); }
.badge__icon { font-size: 1.5rem; color: var(--green); }
.badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.badge__text small { font-size: 0.7rem; color: var(--muted); }
.badge__text strong { font-family: var(--display); font-size: 1.15rem; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--glass-brd); padding: 60px 0 30px; background: rgba(0,0,0,0.2); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: var(--muted); transition: color 0.2s; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--glass-brd); color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .feature, .score__grid { grid-template-columns: 1fr; gap: 30px; }
  .feature--reverse .feature__visual { order: 0; }
  .problem__grid, .steps, .security__grid, .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero__fallback { display: none; }
}
@media (max-width: 560px) {
  .download__inner { padding: 30px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__fallback { opacity: 0.85; }
}
