/* ============================================================
   Dribs landing — built on Monetail tokens (styles.css)
   ============================================================ */

.dribs {
  --maxw: 1180px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}
.dribs *, .dribs *::before, .dribs *::after { box-sizing: border-box; }
.dribs :where(a:not(.d-btn)) { color: var(--primary-display); text-decoration: none; transition: color .15s; }
.dribs :where(a:not(.d-btn)):hover { color: var(--primary-lighter); }

.d-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.d-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-display);
}
.d-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* ── Nav ── */
.d-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 40px;
  position: relative; z-index: 5;
}
.d-brand { display: flex; align-items: center; gap: 11px; }
.d-brand-mark { width: 30px; height: 30px; }
.d-brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em;
}
.d-nav-links { display: flex; align-items: center; gap: 30px; }
.d-nav-links a:not(.d-btn) {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color .15s;
}
.d-nav-links a:not(.d-btn):hover { color: var(--text-primary); }

/* ── Buttons ── */
.d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .15s;
}
.d-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6a7aff 0%, #8a5cf6 100%);
  box-shadow: 0 8px 24px -8px rgba(107,99,255,.7), inset 0 1px 0 rgba(255,255,255,.25);
}
.d-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -8px rgba(107,99,255,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.d-btn-ghost {
  color: var(--text-primary);
  background: var(--overlay-light);
  border-color: var(--card-border);
}
.d-btn-ghost:hover { background: var(--overlay-medium); }

/* ── CTA row ── */
.d-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.d-note { font-size: 13px; line-height: 1.45; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 7px; text-align: left; }
.d-note svg { flex-shrink: 0; margin-top: 2.5px; }

/* ── Glass card ── */
.d-glass {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 24px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}

/* ── Feature section ── */
.d-section { padding: 110px 40px; position: relative; z-index: 2; }
.d-wrap { max-width: var(--maxw); margin: 0 auto; }
.d-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 64px;
}
.d-feature {
  padding: 32px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; gap: 16px;
}
.d-feature-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--overlay-medium); border: 1px solid var(--hairline);
}
.d-feature h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.d-feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.d-feature.span2 { grid-column: span 2; }

/* ── Footer ── */
.d-footer { padding: 64px 40px 48px; border-top: 1px solid var(--section-divider); position: relative; z-index: 2; }
.d-footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.d-footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.d-footer-col { display: flex; flex-direction: column; gap: 12px; }
.d-footer-col .h { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.d-footer-col a { font-size: 14px; color: var(--text-secondary); }
.d-footer-col a:hover { color: var(--text-primary); }
.d-footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--section-divider); font-size: 13px; color: var(--text-tertiary); }

/* ── Privacy chip ── */
.d-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--overlay-light); border: 1px solid var(--card-border);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.d-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--income); box-shadow: 0 0 8px var(--income); }

/* ── Ambient glows ──
   Sits above the nav and the hero (not inside either), so the wash runs
   continuously behind both instead of getting clipped into a corner. */
.d-glow {
  position: absolute; border-radius: 50%; filter: blur(100px);
  pointer-events: none; z-index: 0;
}
.d-hero-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 1050px;
  pointer-events: none; z-index: 0;
}
.d-hero-glow .g1 {
  width: 1080px; height: 880px; top: -190px; right: -150px;
  background: radial-gradient(circle at 50% 50%,
    rgba(146,96,255,.78), rgba(138,92,246,.30) 44%, transparent 71%);
}
.d-hero-glow .g2 {
  width: 940px; height: 800px; top: -230px; left: -230px;
  background: radial-gradient(circle at 50% 50%,
    rgba(107,99,255,.58), rgba(107,99,255,.18) 48%, transparent 73%);
}
.d-hero-glow .g3 {
  width: 1000px; height: 620px; top: 300px; left: 46%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%,
    rgba(124,86,240,.34), transparent 70%);
  filter: blur(130px);
}
@media (prefers-color-scheme: light) {
  .d-hero-glow .g1 {
    background: radial-gradient(circle at 50% 50%,
      rgba(124,86,240,.40), rgba(124,86,240,.15) 46%, transparent 72%);
  }
  .d-hero-glow .g2 {
    background: radial-gradient(circle at 50% 50%,
      rgba(75,67,214,.26), rgba(75,67,214,.09) 50%, transparent 74%);
  }
  .d-hero-glow .g3 {
    background: radial-gradient(ellipse at 50% 50%,
      rgba(107,99,255,.18), transparent 70%);
  }
}

/* ── iPhone frame + mode-swapped screenshots ── */
.d-phone {
  background: linear-gradient(160deg, #2f313f, #0b0c12);
  box-shadow: 0 50px 90px -30px rgba(10,8,30,.7), 0 0 0 1px rgba(255,255,255,.07), inset 0 0 0 1.5px rgba(255,255,255,.05);
  flex-shrink: 0;
}
.d-phone-screen { position: relative; overflow: hidden; background: #000; }
.d-shot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .35s ease; }
.d-shot-light { opacity: 0; }
@media (prefers-color-scheme: light) {
  .d-shot-light { opacity: 1; }
  .d-shot-dark { opacity: 0; }
}

/* ── Screenshot showcase ── */
.d-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.d-showcase-item { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.d-showcase-item h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.d-showcase-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); max-width: 270px; }

/* ── Split hero (chosen direction) ── */
.d-hero-split { position: relative; padding: 40px 40px 90px; overflow: hidden; }
.d-hero-split-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: 560px; }
.d-h1 { font-size: clamp(38px, 5.2vw, 62px); }
.d-hero-sub { margin-top: 24px; max-width: 460px; }
.d-hero-art { display: flex; justify-content: center; position: relative; }
.d-hero-phone { transform: rotate(3deg); }
.d-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.d-cta-center { align-items: center; }
.d-cta-center .d-cta-row { justify-content: center; }

/* ── Responsive ── */
@media (max-width: 940px) {
  .d-hero-split { padding: 24px 22px 64px; }
  .d-hero-split-grid { grid-template-columns: 1fr; gap: 52px; min-height: 0; text-align: center; }
  .d-hero-copy .d-chip, .d-hero-copy .d-hero-sub { margin-left: auto; margin-right: auto; }
  .d-hero-copy .d-cta { align-items: center; }
  .d-hero-copy .d-cta-row { justify-content: center; }
  .d-showcase { grid-template-columns: 1fr; gap: 56px; }
  .d-feature-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .d-feature.span2 { grid-column: span 1; }
  .d-hero-glow { height: 820px; }
  .d-hero-glow .g1 { width: 720px; height: 620px; top: -220px; right: -180px; }
  .d-hero-glow .g2 { width: 640px; height: 560px; top: -260px; left: -200px; }
  .d-hero-glow .g3 { width: 620px; height: 460px; top: 150px; }
  .d-nav { padding: 20px 22px; }
  .d-nav-links { gap: 18px; }
  .d-nav-links a:not(.d-btn) { display: none; }
  .d-section { padding: 76px 22px; }
  .d-footer { padding: 48px 22px 40px; }
}
@media (max-width: 640px) {
  .d-cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .d-footer-cols { gap: 34px; }
  .d-footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
