/* =========================================================
   DeadStick Digital LLC — Shared Styles
   Design language: modern, crisp, flowing. Dark-first with
   careful whitespace, soft gradient accents, and glassy cards.
   ========================================================= */

:root {
  --bg: #09090c;
  --bg-elev: #101018;
  --bg-elev-2: #15151f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f4f7;
  --text-muted: #a4a4b0;
  --text-soft: #6f6f7b;

  --accent: #c4a5ff;
  --accent-2: #7dd4ff;
  --accent-3: #ffd28a;

  /* Per-app accents (keyed to each app's icon palette) */
  --claw: #ff5a4d;           /* dripping red claw */
  --claw-soft: #ff5a4d33;
  --bill: #5ea8e8;           /* sky-blue feather */
  --bill-soft: #5ea8e833;
  --pigeon: #c77dff;         /* neon-violet pigeon */
  --pigeon-soft: #c77dff33;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-glow: 0 20px 60px -20px rgba(124, 122, 255, 0.35);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.06) inset,
                  0 30px 80px -40px rgba(0,0,0,0.8);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
                  "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1180px;
  --pad-x: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Background aurora */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(125, 212, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(196, 165, 255, 0.13), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(255, 210, 138, 0.08), transparent 60%),
    var(--bg);
  pointer-events: none;
}

/* Subtle grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* --------------------- Typography --------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); }
h4 { font-size: 17px; }

p  { margin: 0; }
.muted { color: var(--text-muted); }
.soft  { color: var(--text-soft); }
.mono  { font-family: var(--font-mono); font-size: 13px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

/* --------------------- Layout --------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding: 110px 0;
  position: relative;
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
}

/* --------------------- Navigation --------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(9, 9, 12, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 20%, #fff 0 15%, transparent 16%),
    linear-gradient(135deg, #1a1a26, #2a2a3a);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 48%, rgba(255,255,255,0.15) 50%, transparent 52%);
}
.brand-name { font-size: 15px; }
.brand-suffix { color: var(--text-soft); font-weight: 400; }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.11); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* --------------------- Hero --------------------- */

.hero {
  padding: 120px 0 80px;
  text-align: left;
  position: relative;
}
.hero-kicker {
  margin-bottom: 22px;
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #c4c4d0 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #c4a5ff, #7dd4ff 55%, #ffd28a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 28px;
  max-width: 62ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, #ffffff, #e1e1eb);
  color: #0a0a12;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 12px 40px -10px rgba(255,255,255,0.35);
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Hero stat strip */
.hero-meta {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  color: var(--text-muted);
  font-size: 13px;
}
.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --------------------- Section headers --------------------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head h2 {
  max-width: 20ch;
}
.section-head p {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 16px;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
}

/* --------------------- App Cards --------------------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  --card-accent: var(--accent);
  --card-accent-soft: rgba(196, 165, 255, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
  min-height: 480px;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(220px 160px at 30% 0%, var(--card-accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.app-card > * { position: relative; z-index: 1; }

.app-card.is-clawmelt    { --card-accent: var(--claw);   --card-accent-soft: var(--claw-soft); }
.app-card.is-billingbird { --card-accent: var(--bill);   --card-accent-soft: var(--bill-soft); }
.app-card.is-carrierpigeon { --card-accent: var(--pigeon); --card-accent-soft: var(--pigeon-soft); }

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 34px -10px rgba(0,0,0,0.6),
              0 0 0 1px var(--border-strong) inset;
  margin-bottom: 22px;
}
.app-icon img, .app-icon svg { width: 100%; height: 100%; display: block; }

.app-card h3 {
  margin-bottom: 6px;
  font-size: 22px;
}
.app-card .app-tag {
  color: var(--card-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 16px;
}
.app-card .app-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.app-card .app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.app-card .app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-card .app-features li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--card-accent);
  flex-shrink: 0;
}
.app-card .app-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--card-accent);
  font-size: 13.5px;
  font-weight: 500;
  transition: gap 0.25s ease;
}
.app-card .app-link:hover { gap: 10px; }

/* --------------------- Values / About --------------------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .values-grid { grid-template-columns: 1fr; } }

.value {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.value .value-num {
  font-family: var(--font-mono);
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.value h3 { margin-bottom: 10px; font-size: 19px; }
.value p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* --------------------- CTA / Contact panel --------------------- */

.cta-panel {
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(125,212,255,0.12), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(196,165,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-panel h2 { max-width: 16ch; }
.cta-panel p  { color: var(--text-muted); margin-top: 16px; max-width: 48ch; }
.cta-meta     { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.cta-meta a   { color: var(--text); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.cta-meta a:hover { border-color: var(--accent); color: var(--accent); }
.cta-meta .label { display: block; color: var(--text-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

@media (max-width: 900px) {
  .cta-panel { grid-template-columns: 1fr; padding: 32px; }
}

/* --------------------- Footer --------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 36ch; }
.footer-brand p { margin-top: 14px; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.footer-col h4 {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 12.5px;
}
.legal-note { max-width: 70ch; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --------------------- Document pages (privacy / terms / support) ----- */

.doc {
  padding: 80px 0 120px;
}
.doc-head {
  margin-bottom: 56px;
  max-width: 64ch;
}
.doc-head .eyebrow { margin-bottom: 20px; }
.doc-head h1 { font-size: clamp(34px, 4vw, 48px); }
.doc-head p  { margin-top: 20px; color: var(--text-muted); font-size: 16px; }

.doc-body {
  max-width: 72ch;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.75;
}
.doc-body h2 {
  font-size: 22px;
  margin: 56px 0 14px;
}
.doc-body h3 {
  font-size: 17px;
  margin: 32px 0 8px;
}
.doc-body p, .doc-body li { color: var(--text-muted); }
.doc-body strong { color: var(--text); font-weight: 500; }
.doc-body ul, .doc-body ol {
  padding-left: 22px;
}
.doc-body li { margin-bottom: 6px; }
.doc-body a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.doc-body a:hover { border-color: var(--accent); color: var(--accent); }
.doc-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.doc-body .callout {
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 14.5px;
  margin: 20px 0 28px;
}

.toc {
  margin-bottom: 40px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.toc h4 {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-weight: 500;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 24px;
  font-size: 14px;
}
.toc li { padding: 4px 0; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--text); }
@media (max-width: 600px) { .toc ol { column-count: 1; } }

/* --------------------- App detail page --------------------- */

.app-hero {
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: center;
}
.app-hero .app-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  margin: 0;
}
.app-hero h1 { font-size: clamp(40px, 5vw, 56px); }
.app-hero .eyebrow { margin-bottom: 14px; }
.app-hero p { color: var(--text-muted); margin-top: 16px; max-width: 58ch; font-size: 17px; }

@media (max-width: 720px) {
  .app-hero { grid-template-columns: 1fr; gap: 20px; }
  .app-hero .app-icon { width: 104px; height: 104px; }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-body h2 { font-size: 24px; margin-bottom: 14px; }
.detail-body p  { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.detail-body h3 { font-size: 17px; margin: 28px 0 8px; }
.detail-body ul { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; padding-left: 22px; }

.side-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 96px;
}
.side-card h4 {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 500;
}
.side-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13.5px; }
.side-card dt { color: var(--text-soft); }
.side-card dd { color: var(--text); margin: 0; }
.side-card .btn { margin-top: 20px; width: 100%; justify-content: center; }
