/* ============================================================
   RoviGo — site styles
   Refined dark theme · teal accent · Bricolage Grotesque + Hanken Grotesk
   ============================================================ */

:root {
  --bg:        #070D1A;
  --bg-2:      #0A1422;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(45, 212, 191, 0.25);
  --text:      #E9EFF7;
  --text-dim:  #93A6BC;
  --text-mute: #5F7286;
  --accent:    #2DD4BF;
  --accent-2:  #5EEAD4;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* atmospheric background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% -5%, rgba(45, 212, 191, 0.14), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, rgba(46, 90, 160, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
/* faint grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  pointer-events: none;
  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='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.spark { color: var(--accent); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 26, 0.66);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.95rem; color: var(--text-dim); font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #04201C;
  box-shadow: 0 8px 30px -10px rgba(45, 212, 191, 0.6);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-2); background: var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 1.4rem; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 100px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border-2);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 30px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, #B7F5EC 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 560px; margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 86px 0; }
.sec-tag {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sec-sub { color: var(--text-dim); max-width: 540px; font-size: 1.06rem; }

/* ---------- Features ---------- */
.features { border-top: 1px solid var(--border); }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid var(--border-2);
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 1rem; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--text-dim); margin-top: 18px; font-size: 1.08rem; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-art {
  aspect-ratio: 1 / 1; border-radius: 24px; position: relative; overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 70% at 30% 25%, rgba(45,212,191,0.30), transparent 60%),
    radial-gradient(70% 70% at 80% 80%, rgba(46,90,160,0.40), transparent 60%),
    linear-gradient(150deg, #0C1A2E, #08111F);
  display: grid; place-items: center;
}
.about-art .mark {
  font-family: var(--font-display); font-weight: 700; font-size: 7rem; color: rgba(255,255,255,0.92);
  text-shadow: 0 0 60px rgba(45,212,191,0.5);
}

/* ---------- Waitlist ---------- */
.waitlist { border-top: 1px solid var(--border); }
.waitlist-card {
  background: linear-gradient(160deg, rgba(45,212,191,0.10), rgba(255,255,255,0.02));
  border: 1px solid var(--border-2);
  border-radius: 26px;
  padding: 64px 48px;
  text-align: center;
}
.waitlist-card .sec-title { margin-bottom: 14px; }
.waitlist-card p { color: var(--text-dim); max-width: 480px; margin: 0 auto 32px; }
.signup { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 220px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: 999px; padding: 14px 22px; color: var(--text); font-size: 1rem;
  font-family: var(--font-body); outline: none; transition: border-color 0.2s ease;
}
.signup input:focus { border-color: var(--accent); }
.signup input::placeholder { color: var(--text-mute); }
.signup .btn-primary { padding: 14px 28px; }
.signup-msg { margin-top: 18px; color: var(--accent-2); font-weight: 600; min-height: 1.2em; opacity: 0; transition: opacity 0.3s ease; }
.signup-msg.show { opacity: 1; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: rgba(0,0,0,0.2);
}
.foot-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.foot-brand { max-width: 280px; }
.foot-brand .logo { margin-bottom: 12px; }
.foot-brand p { color: var(--text-mute); font-size: 0.95rem; }
.foot-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.foot-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; color: var(--text-dim); font-size: 0.96rem; margin-bottom: 11px; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 0.88rem; }

/* ---------- Legal / article pages ---------- */
.legal { padding: 80px 0 100px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal .updated { color: var(--text-mute); font-size: 0.92rem; margin-bottom: 44px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; margin: 42px 0 14px; }
.legal h3 { font-weight: 600; font-size: 1.12rem; color: var(--text); margin: 26px 0 8px; }
.legal p { color: var(--text-dim); margin-bottom: 16px; }
.legal ul { color: var(--text-dim); margin: 0 0 18px 22px; }
.legal li { margin-bottom: 9px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .intro { font-size: 1.1rem; color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-weight: 500; margin-bottom: 30px; font-size: 0.95rem; }
.back-link:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 24px 28px;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-art { max-width: 320px; }
  .waitlist-card { padding: 44px 24px; }
  .foot-top { flex-direction: column; gap: 40px; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
}
