/* dmpinto.com — Raycast-style hero, Linear-style app window. Dark, blue, sharp. */
:root {
  --bg: #05080f;
  --surface: #0a1019;
  --ink: #f2f6ff;
  --muted: #8fa3c7;
  --line: #16202f;
  --line-2: #243350;
  --accent: #4d8dff;
  --cobalt: #1d4ed8;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --m: clamp(20px, 3.5vw, 56px);
  --out: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100svh; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); }

/* ---------- floating nav (home) ---------- */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(1120px, calc(100% - 2 * var(--m))); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px 10px 20px; background: rgba(8, 12, 22, 0.62); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.mark { width: 14px; height: 14px; border: 2px solid var(--accent); display: block; }
.nav ul { list-style: none; padding: 0; display: flex; gap: clamp(14px, 3vw, 36px); font-size: 0.9375rem; color: var(--muted); }
.nav ul a { text-decoration: none; padding: 8px 2px; transition: color 0.15s; }
.nav ul a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; background: #f2f6ff; color: #05080f; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.15s var(--out), background 0.15s; }
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--ink); border-color: rgba(255, 255, 255, 0.14); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }

/* ---------- hero: big blurred shapes behind a short headline ---------- */
.hero { position: relative; isolation: isolate; min-height: 88svh; display: grid; place-items: center; text-align: center; padding: 140px var(--m) 220px; overflow: hidden; }
.beams { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.beams i { position: absolute; top: -25vh; width: 22vw; height: 150vh; border-radius: 40vw; transform: rotate(33deg); filter: blur(52px); opacity: 0.9; }
.beams i:nth-child(1) { left: 6%;  background: #1d4ed8; }
.beams i:nth-child(2) { left: 24%; background: #2f6bff; width: 18vw; }
.beams i:nth-child(3) { left: 42%; background: #4d8dff; opacity: 0.75; }
.beams i:nth-child(4) { left: 60%; background: #1d4ed8; width: 16vw; }
.beams i:nth-child(5) { left: 76%; background: #10277a; width: 20vw; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(5, 8, 15, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 8, 15, 0.5) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.35; pointer-events: none; }
.hero h1 { font: 600 clamp(3.5rem, 12.5vw, 12rem)/0.9 var(--sans); letter-spacing: -0.065em; text-shadow: 0 2px 60px rgba(5, 8, 15, 0.5); }
.hero .sub { margin-top: clamp(18px, 2.5vw, 30px); font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.4; color: #dbe6ff; max-width: 34em; margin-inline: auto; text-wrap: balance; }
.hero .cta { margin-top: clamp(24px, 3vw, 40px); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- the app window: a real screenshot, with tabs ---------- */
.stage { position: relative; z-index: 2; margin: calc(-1 * clamp(110px, 16vw, 210px)) auto 0; width: min(1240px, calc(100% - 2 * var(--m))); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; font-weight: 500; transition: background 0.15s, border-color 0.15s, color 0.15s; color: var(--muted); }
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.tab[aria-selected="true"] { color: var(--ink); background: rgba(77, 141, 255, 0.16); border-color: rgba(77, 141, 255, 0.55); }
.tab small { font: 400 0.75rem/1 var(--mono); color: var(--accent); }
.win { border-radius: 14px; overflow: hidden; background: #0b1220; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 60px 140px -40px rgba(29, 78, 216, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.win .bar-t { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #111a2b; position: relative; }
.win .bar-t i { width: 12px; height: 12px; border-radius: 50%; background: #243350; display: block; }
.win .bar-t i:nth-child(1) { background: #ff5f57; } .win .bar-t i:nth-child(2) { background: #febc2e; } .win .bar-t i:nth-child(3) { background: #28c840; }
.win .bar-t span { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.8125rem; color: var(--muted); pointer-events: none; }
.panel { aspect-ratio: 2035 / 1312; position: relative; background: #070b14; }
.panel[hidden] { display: none; }
.panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.term { height: 100%; padding: clamp(18px, 3.5vw, 48px); font: 500 clamp(0.8125rem, 1.7vw, 1.5rem)/1.9 var(--mono); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.term b { color: var(--accent); font-weight: 500; margin-right: 0.8em; }
.term .dim { color: var(--muted); }
.term .ok { color: var(--accent); }
.term .big { margin-top: 0.6em; font: 600 clamp(1.5rem, 4.6vw, 3.75rem)/1 var(--sans); letter-spacing: -0.04em; }
.pbar { height: 0.9em; margin: 0.7em 0; border-radius: 99px; background: #16213a; overflow: hidden; max-width: 34em; }
.pbar i { display: block; height: 100%; width: 62%; border-radius: 99px; background: var(--accent); }

.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--m); padding: clamp(36px, 5vw, 64px) 0 0; }
.detail[hidden] { display: none; }
.detail h2 { font: 600 clamp(2.25rem, 5vw, 4.25rem)/1 var(--sans); letter-spacing: -0.055em; }
.detail .chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 400 0.8125rem/1 var(--mono); color: var(--accent); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.detail .chip::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.detail .tag { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; }
.detail .desc { color: var(--muted); margin-top: 12px; max-width: 36em; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- App Store essentials + contact ---------- */
.info { width: min(1240px, calc(100% - 2 * var(--m))); margin: clamp(80px, 11vw, 150px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info a { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.info a:hover { border-color: rgba(77, 141, 255, 0.6); background: #0d1624; }
.info strong { font: 600 1.5rem/1.1 var(--sans); letter-spacing: -0.035em; }
.info span { color: var(--muted); font-size: 0.9375rem; }
.info em { font: normal 400 0.8125rem/1 var(--mono); color: var(--accent); margin-top: 12px; }

/* ---------- footer + doc pages ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--m); }
header.bar { position: sticky; top: 0; z-index: 20; background: rgba(5, 8, 15, 0.72); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
footer.bar { border-top: 1px solid var(--line); padding-block: 26px; margin-top: clamp(80px, 11vw, 150px); }
.meta { font: 400 0.875rem/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; display: flex; gap: 24px; }
.meta a { text-decoration: none; transition: color 0.15s; }
.meta a:hover { color: var(--ink); }
body.doc-page { display: grid; grid-template-rows: auto 1fr auto; }
body.doc-page footer.bar { margin-top: 0; }
.doc { width: 100%; max-width: 780px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--m); }
.doc h1 { font: 600 clamp(2.5rem, 7vw, 5rem)/1 var(--sans); letter-spacing: -0.055em; margin-bottom: 14px; }
.doc .meta-line { font: 400 0.875rem/1.4 var(--mono); color: var(--muted); margin-bottom: 8px; }
.doc section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.doc h2 { font: 600 1.5rem/1.2 var(--sans); letter-spacing: -0.03em; margin-bottom: 14px; }
.doc p { color: #c3d0e8; font-size: 1.0625rem; line-height: 1.7; max-width: 42em; }
.doc p + p { margin-top: 1em; }
.doc a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.doc a:hover { color: var(--accent); }

/* ---------- motion (kept small, and off for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .beams i { animation: drift 18s ease-in-out infinite alternate; }
  .beams i:nth-child(even) { animation-duration: 24s; animation-direction: alternate-reverse; }
  @keyframes drift { from { transform: rotate(33deg) translate3d(0, 0, 0); } to { transform: rotate(33deg) translate3d(4vw, 5vh, 0); } }
  .hero h1, .hero .sub, .hero .cta { animation: rise 0.9s var(--out) both; }
  .hero .sub { animation-delay: 0.12s; } .hero .cta { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .pbar i { animation: build 3.2s ease-in-out infinite; }
  @keyframes build { 0% { width: 4%; } 70% { width: 100%; } 100% { width: 100%; } }
  @supports (animation-timeline: view()) {
    .win, .info a { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-transparency: reduce) { .nav, header.bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --muted: #c3d0e8; --line: #3a4a68; } }

@media (max-width: 900px) {
  .nav ul { display: none; }
  .detail { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
  .beams i { width: 34vw !important; }
}
@media (max-width: 560px) { footer.bar { flex-direction: column; align-items: flex-start; gap: 10px; } .tab small { display: none; } }
