/* ============ Riffle Labs — marketing site ============ */
:root {
  --bg: #0b0b12;
  --bg-2: #11121c;
  --bg-3: #161826;
  --ink: #f5f6fb;
  --muted: #a7abc3;
  --line: rgba(255, 255, 255, 0.10);
  --pink: #ff2d55;
  --purple: #b06bff;
  --cyan: #5ad1ff;
  --green: #22e0a0;
  --grad: linear-gradient(105deg, #ff2d55 0%, #b06bff 50%, #5ad1ff 100%);
  --maxw: 1120px;
  --r: 18px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* ambient glow */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 75% -10%, rgba(176, 107, 255, 0.18), transparent 60%),
    radial-gradient(50vw 40vh at 10% 0%, rgba(255, 45, 85, 0.14), transparent 55%);
}

h1, h2, h3, h4 { font-family: "Sora", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600;
  color: var(--purple); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700; font-family: "Sora", sans-serif;
  border: none; border-radius: 999px; padding: 14px 26px; font-size: 15px; cursor: pointer;
  white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px -10px rgba(255, 45, 85, 0.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(176, 107, 255, 0.6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  background: rgba(11, 11, 18, 0.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav .btn-sm { margin-left: 6px; }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section.alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.section.alt > * { max-width: var(--maxw); margin-inline: auto; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .sub { color: var(--muted); font-size: 18px; margin-top: 14px; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(36px, 6vw, 66px); font-weight: 800; }
.hero .lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 22px 0 30px; max-width: 540px; }

/* inline email form */
.inline-form { display: flex; gap: 10px; max-width: 480px; }
.inline-form input {
  flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 14px 20px; font-size: 15px; font-family: inherit;
}
.inline-form input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(176, 107, 255, .25); }
.inline-form.big { max-width: 540px; margin: 8px auto 0; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--pink); }

/* hero art — phone with floating tiles */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 280px; height: 560px; border-radius: 42px; padding: 14px;
  background: linear-gradient(160deg, #1b1d2e, #0e0f18);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.phone::after {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .14);
}
.phone-feed { height: 100%; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 30px 12px 12px; }
.tile {
  flex: 1; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    var(--bg-3);
  border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
  animation: float 6s ease-in-out infinite;
}
.tile:nth-child(2) { animation-delay: -1.2s; }
.tile:nth-child(3) { animation-delay: -2.4s; }
.tile:nth-child(4) { animation-delay: -3.6s; }
.tile:nth-child(5) { animation-delay: -4.8s; }
.tile span { font-size: 30px; }
.tile b { font-family: "Sora", sans-serif; font-size: 17px; margin-top: 6px; }
.tile i { font-style: normal; color: var(--muted); font-size: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Trust strip ---------- */
.strip {
  max-width: var(--maxw); margin: 12px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.strip > div {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; gap: 4px;
}
.strip b { font-family: "Sora", sans-serif; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 14px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--purple) 50%, var(--line)); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; counter-reset: s; }
.steps li { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; }
.steps .n {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font-family: "Sora", sans-serif; font-weight: 800; background: var(--grad); color: #fff; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.about-body p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about-body a { color: var(--cyan); border-bottom: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.values h4 { font-size: 17px; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 96px 24px; }
.cta-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, rgba(176, 107, 255, .16), rgba(90, 209, 255, .08));
  border: 1px solid var(--line); border-radius: 28px; padding: 56px 32px; box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-inner > p { color: var(--muted); font-size: 18px; margin: 14px auto 26px; max-width: 520px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-list a { color: var(--cyan); font-size: 17px; }
.contact-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(176, 107, 255, .22); }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top, .footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 36px; border-top: 1px solid var(--line); margin-top: 4px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { order: -1; }
  .phone { width: 230px; height: 460px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 20px; }
  .strip { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile { animation: none; }
  html { scroll-behavior: auto; }
}
