/* Tivvy — light brand styling (editorial, not generic) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --grad-start: #8B5CF6;
  --grad-end: #EC4899;
  --step-a: #4FACFE;
  --step-c: #E14FD0;

  --bg: #F6F3FC;
  --panel: #FFFFFF;
  --text: #16101F;
  --muted: #6A6480;
  --hint: #A39DB5;
  --border: rgba(22, 16, 31, 0.08);
  --shadow: 0 10px 30px rgba(108, 63, 191, 0.10);

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(55% 45% at 6% -6%, rgba(79, 172, 254, 0.18), transparent 60%),
    radial-gradient(50% 45% at 100% 0%, rgba(236, 72, 153, 0.14), transparent 55%),
    radial-gradient(45% 40% at 50% 112%, rgba(139, 92, 246, 0.12), transparent 60%);
  background-attachment: fixed;
}

/* subtle grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-text {
  background: linear-gradient(100deg, var(--step-a), var(--grad-start) 45%, var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ─── Nav ─── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 22px 28px;
}
.nav .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav .brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: var(--shadow); }
.nav .brand span {
  font-family: var(--display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.5px; color: var(--text);
}
.nav .links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px;
  margin-left: 26px; transition: color 0.15s;
}
.nav .links a:hover { color: var(--grad-start); }

/* ─── Hero (editorial, left-aligned) ─── */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 70px 28px 60px;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.6);
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-end); box-shadow: 0 0 10px var(--grad-end); }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero p.tagline { font-size: 18px; color: var(--muted); max-width: 460px; margin-bottom: 34px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 100%; max-width: 320px; border-radius: 40px;
  box-shadow: 0 30px 70px rgba(225, 79, 208, 0.30), 0 0 0 1px var(--border);
  transform: rotate(-4deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-14px); } }

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(95deg, var(--grad-start), var(--grad-end));
  color: #fff; text-decoration: none; padding: 16px 30px; border-radius: 14px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.30);
  transition: transform 0.12s, box-shadow 0.2s;
}
.btn-cta:hover { box-shadow: 0 16px 40px rgba(236, 72, 153, 0.42); }
.btn-cta:active { transform: scale(0.97); }
.btn-ghost { color: var(--grad-start); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-ghost:hover { color: var(--grad-end); }

/* ─── Marquee ─── */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; margin: 20px 0 70px; display: flex;
  background: rgba(255, 255, 255, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .track {
  flex-shrink: 0; min-width: 100%; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-around;
  animation: scroll 25s linear infinite;
}
.marquee span {
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px;
  margin: 0 18px; color: var(--text); opacity: 0.9; white-space: nowrap;
}
.marquee span.x { color: var(--grad-end); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ─── Features ─── */
.section-head { max-width: 1080px; margin: 0 auto; padding: 0 28px 36px; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1px; line-height: 1.05;
}
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

.features {
  max-width: 1080px; margin: 0 auto; padding: 0 28px 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px;
  background: linear-gradient(135deg, var(--step-a), var(--grad-end));
  -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 0.2s;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(108, 63, 191, 0.16); }
.feature:hover::after { opacity: 1; }
.feature .ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,172,254,0.12), rgba(236,72,153,0.12));
  border: 1px solid var(--border);
}
.feature .ic svg { width: 24px; height: 24px; stroke: #8B5CF6; fill: none; stroke-width: 1.8; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ─── Legal / content pages ─── */
.doc {
  max-width: 760px; margin: 24px auto 40px; padding: 48px 44px 56px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow);
}
.doc h1 { font-family: var(--display); font-weight: 700; font-size: 36px; letter-spacing: -1px; margin-bottom: 6px; }
.doc .updated { color: var(--hint); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 36px 0 12px; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 22px 0 8px; }
.doc p { color: #3A3448; margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; color: #3A3448; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--grad-start); font-weight: 600; }
.doc .callout {
  background: linear-gradient(135deg, rgba(79,172,254,0.09), rgba(236,72,153,0.10));
  border: 1px solid var(--border); border-left: 3px solid var(--grad-start);
  border-radius: 14px; padding: 16px 18px; margin: 18px 0;
}
.doc strong { color: var(--text); }

/* ─── FAQ ─── */
.faq-item {
  border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 12px;
  background: var(--panel); box-shadow: var(--shadow);
}
.faq-item h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 15px; }

/* ─── Footer ─── */
.footer { text-align: center; padding: 48px 28px 56px; color: var(--hint); font-size: 14px; border-top: 1px solid var(--border); }
.footer .brand-row {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text);
}
.footer .brand-row img { width: 30px; height: 30px; border-radius: 9px; }
.footer a { color: var(--muted); text-decoration: none; margin: 0 12px; font-weight: 600; }
.footer a:hover { color: var(--grad-start); }
.footer .copy { margin-top: 16px; }

/* ─── Animations ─── */

/* flowing gradient on the highlight word */
.gradient-text {
  background: linear-gradient(100deg, var(--step-a), var(--grad-start) 35%, var(--grad-end) 60%, var(--step-c) 80%, var(--step-a));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 7s linear infinite;
}
@keyframes flow { to { background-position: 220% center; } }

/* hero entrance (staggered) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero .eyebrow { animation: fadeUp 0.7s ease both; animation-delay: 0.05s; }
.hero h1 { animation: fadeUp 0.7s ease both; animation-delay: 0.16s; }
.hero p.tagline { animation: fadeUp 0.7s ease both; animation-delay: 0.28s; }
.hero .cta-row { animation: fadeUp 0.7s ease both; animation-delay: 0.40s; }
.hero-art { animation: fadeIn 0.9s ease both; animation-delay: 0.30s; }

/* pulsing eyebrow dot */
.hero .eyebrow .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(236, 72, 153, 0); }
}

/* CTA sheen on hover */
.btn-cta { position: relative; overflow: hidden; }
.btn-cta::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-cta:hover::before { left: 130%; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .gradient-text { animation: none; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .hero-art img { max-width: 220px; }
  .doc { padding: 32px 22px 44px; margin: 14px; }
  .nav .links a { margin-left: 16px; font-size: 13.5px; }
}
