/* 816 Ventures — site styles */

:root {
  --bg: #08080b;
  --bg-raised: #101015;
  --bg-card: #14141b;
  --border: #22222c;
  --border-strong: #303040;

  --text: #f4f4f7;
  --text-muted: #a0a0ae;
  --text-dim: #6e6e7d;

  --accent: #4d8dff;
  --accent-soft: #7d7dff;

  --max: 1080px;
  --pad: 24px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

.narrow { max-width: 720px; }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }

.brand .num {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.site-nav ul a {
  color: var(--text-muted);
}
.site-nav ul a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Sections ---------- */

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 680;
  margin: 0 0 20px;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  font-weight: 650;
  margin: 0 0 10px;
}

.lede {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

p { margin: 0 0 18px; color: var(--text-muted); }
p.tight { margin-bottom: 10px; }

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

.hero {
  padding: 120px 0 104px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(77, 141, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #6b9fff; }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: #48485c; background: var(--bg-raised); }

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}

.card p:last-child { margin-bottom: 0; }

.card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* ---------- Portfolio / product ---------- */

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.product-copy .app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  flex: none;
}

.app-head h2 { margin: 0; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 11px;
  margin-top: 6px;
}

ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

ul.features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

ul.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

ul.features strong { color: var(--text); font-weight: 600; }

/* Phone shots */

.shots {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.shot {
  flex: 1 1 0;
  max-width: 260px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}

.shot:nth-child(1) { transform: translateY(14px); }
.shot:nth-child(3) { transform: translateY(14px); }

.shot img { width: 100%; }

.shot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.shot-strip figure {
  margin: 0;
}

.shot-strip .frame {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #000;
}

.shot-strip figcaption {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
}

/* ---------- Contact ---------- */

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
}

dl.meta {
  margin: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px 24px;
  font-size: 16px;
}

dl.meta dt {
  color: var(--text-dim);
  font-size: 14px;
  padding-top: 2px;
}

dl.meta dd { margin: 0; color: var(--text); }

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

footer.site {
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a { color: var(--text-muted); }

footer.site address {
  font-style: normal;
  font-size: 13px;
  color: #5a5a68;
  margin-top: 6px;
}

/* ---------- Legal / doc pages ---------- */

.doc {
  padding: 64px 0 88px;
}

.doc h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); margin-bottom: 12px; }

.doc .updated {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 44px;
}

.doc h2 {
  font-size: 1.32rem;
  margin: 44px 0 14px;
}

.doc h3 {
  font-size: 1.04rem;
  margin: 28px 0 10px;
}

.doc ul, .doc ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin: 0 0 18px;
}

.doc li { margin-bottom: 9px; }

.doc strong { color: var(--text); font-weight: 600; }

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.callout {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 26px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-visual { order: -1; }
  dl.meta { grid-template-columns: 1fr; gap: 4px 0; }
  dl.meta dd { margin-bottom: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .hero { padding: 76px 0 68px; }
  .site-nav ul { gap: 18px; font-size: 14px; }
  .site-nav ul li.hide-sm { display: none; }
  .shot:nth-child(1), .shot:nth-child(3) { transform: none; }
  .shots { gap: 10px; }
  .contact-box { padding: 24px; }
}
