/* David Levine Digital, new design. Dark, flat, modern. */
:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --accent: #7c9cff;
  --accent-2: #c58bff;
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; letter-spacing: -0.025em; font-size: 19px; color: var(--text); }
.links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.links a:hover, .links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.07); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(124, 156, 255, 0.20), transparent 70%),
    radial-gradient(40% 50% at 72% 28%, rgba(197, 139, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
h1 {
  font-size: clamp(40px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 auto; max-width: 15ch;
}
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 34em; margin: 26px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid var(--line-strong);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.35); }
.btn.primary { background: var(--text); color: #0a0a0b; border-color: var(--text); }
.btn.primary:hover { background: #fff; }

/* Icon wall */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 560px; margin: 64px auto 0; }
.wall img {
  width: 100%; aspect-ratio: 1; border-radius: 22.5%; object-fit: cover;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  animation: float 7s ease-in-out infinite;
}
.wall img:nth-child(even) { animation-delay: -3.5s; transform: translateY(14px); }
.wall img:nth-child(3n) { animation-delay: -1.8s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Sections */
section { padding: 88px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.more { color: var(--muted); font-size: 15px; font-weight: 500; }
.more:hover { color: var(--text); }
.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; max-width: 52em; }

/* Cards */
.grid { display: grid; gap: 16px; }
.apps { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.card.span2 { grid-column: span 2; }
.icon { width: 64px; height: 64px; border-radius: 22.5%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08); flex: none; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.span2 .icon { width: 84px; height: 84px; }
.card h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pill {
  align-self: flex-start; margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; background: rgba(124,156,255,.12); color: #aebfff; border: 1px solid rgba(124,156,255,.25);
}
.card .spacer { flex: 1; }

/* Product rows (Mac, Lightroom) */
.products { grid-template-columns: repeat(2, 1fr); }
.product { flex-direction: row; align-items: center; gap: 24px; padding: 24px; }
.product.wide { grid-column: 1 / -1; }
.tile { width: 112px; height: 112px; border-radius: 22px; overflow: hidden; flex: none; background: #f2f2f2; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.product .body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.actions { display: flex; gap: 18px; align-items: center; margin-top: 4px; }
.get { font-size: 14px; font-weight: 600; color: #0a0a0b; background: var(--text); border-radius: 999px; padding: 8px 18px; transition: background .15s; }
.get:hover { background: #fff; }
.details { font-size: 14px; font-weight: 500; color: var(--muted); }
.details:hover { color: var(--text); }

/* Two big links */
.duo { grid-template-columns: repeat(2, 1fr); }
.big { padding: 36px; min-height: 220px; justify-content: flex-start; gap: 8px; background:
  radial-gradient(60% 80% at 100% 0%, rgba(124,156,255,.12), transparent 70%), var(--surface); }
.big:nth-child(2) { background: radial-gradient(60% 80% at 100% 0%, rgba(197,139,255,.12), transparent 70%), var(--surface); }
.big h3 { font-size: 28px; letter-spacing: -0.025em; }
.big .eyebrow { margin: 0; }
.big .arrow { position: absolute; top: 28px; right: 32px; font-size: 22px; color: var(--muted); transition: transform .2s, color .2s; }
.big:hover .arrow { transform: translate(3px, -3px); color: var(--text); }

/* Footer */
footer { margin-top: 104px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .products, .duo { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,10,11,.97); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .links.open { display: flex; }
  .links a { padding: 14px 8px; border-radius: 10px; font-size: 16px; }
  .brand span { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .wall { gap: 14px; margin-top: 48px; }
  section { padding-top: 64px; }
  .apps { grid-template-columns: 1fr; }
  .card.span2 { grid-column: auto; }
  .product { flex-direction: column; align-items: flex-start; }
  .tile { width: 96px; height: 96px; }
  .big { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall img { animation: none; }
  .card, .btn { transition: none; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: 72px 0 8px; }
.page-head h1 { max-width: none; font-size: clamp(36px, 6vw, 64px); text-align: left; margin: 0; }
.page-head .lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 38em; margin: 18px 0 0; }
.page-head .updated { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.page-body { padding-top: 40px; }
.stack { display: grid; gap: 20px; }

/* Product detail cards */
.pd { display: grid; grid-template-columns: 1fr auto; gap: 8px 48px; padding: 40px; scroll-margin-top: 88px; }
.pd:hover { transform: none; background: var(--surface); border-color: var(--line); }
.pd h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; }
.pd .lead { color: var(--text); font-size: 19px; margin: 0 0 18px; max-width: 34em; }
.pd .eyebrow { margin-bottom: 8px; }
.pd .tile { width: 168px; height: 168px; border-radius: 36px; margin-top: 4px; }
.pd .actions { margin: 22px 0 0; }
.pd .more-info { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 26px; max-width: 46em; }
.pd .more-info h3 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.pd .more-info p { color: #d4d4d8; font-size: 16.5px; margin: 0 0 14px; }
.pd .more-info p:last-child { margin-bottom: 0; }
.pd .tags span { font-size: 13px; padding: 4px 12px; }
.code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.08em; background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px 9px; color: var(--text); }
.pd a.inline, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(124,156,255,.4); }
.pd a.inline:hover, .prose a:hover { text-decoration-color: var(--accent); }

/* Logo panels (client apps, websites) */
.logo-panel { background: #f4f4f5; border-radius: 14px; height: 128px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.logo-panel img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-panel.tall { height: 200px; }
.sites { grid-template-columns: repeat(3, 1fr); }
.sites .card { gap: 12px; }
.sites .card:hover, .clients .card:hover { transform: translateY(-3px); }
.clients { grid-template-columns: repeat(2, 1fr); }
.visit { align-self: flex-start; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; transition: background .15s, border-color .15s; }
.visit:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.card p.grow { flex: 1; }

/* Text pages */
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin: 48px 0 14px; }
.prose p, .prose li { color: #d4d4d8; font-size: 17px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose .doc-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.prose .doc-links li { margin: 0; }
.prose .doc-links a { display: inline-block; text-decoration: none; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 600; }
.prose .doc-links a:hover { background: rgba(255,255,255,.08); }
.contact-list { display: grid; border-top: 1px solid var(--line); margin: 12px 0 0; }
.contact-item { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item .name { font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .sites { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-head { padding-top: 48px; }
  .pd { grid-template-columns: 1fr; padding: 26px; }
  .pd .tile { order: -1; width: 120px; height: 120px; border-radius: 28px; margin-bottom: 12px; }
  .sites { grid-template-columns: 1fr; }
}
