* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --text-primary: #e8e8e8;
  --text-muted: #555;
  --text-dim: #383838;
  --section-padding: 120px;
  --content-max: 800px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, sans-serif;
  position: relative;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 2;
}

/* Orb canvases */
.orb-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb-wrap .orb {
  position: absolute;
  top: 50%;
  width: 100vmin;
  height: 100vmin;
  transform: translateY(-50%);
}

.orb-wrap .orb:first-child {
  right: 50%;
  margin-right: -10vmin;
}

.orb-wrap .orb:last-child {
  left: 50%;
  margin-left: -10vmin;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wordmark svg {
  height: 28px;
  fill: var(--text-primary);
}

/* Pure CSS iPhone 14 Pro */
.iphone {
  position: relative;
  width: 238px;
  height: 484px;
  border-radius: 38px;
  background: #1a1a1a;
  padding: 8px;
  box-shadow:
    inset 0 0 0 2px #333,
    0 0 0 1px #111,
    0 20px 60px rgba(0,0,0,0.5);
}

.iphone::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 115px;
  width: 3px;
  height: 52px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}

.iphone::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 98px;
  width: 3px;
  height: 30px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 41px 0 #2a2a2a, 0 70px 0 #2a2a2a;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 31px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px 24px;
  position: relative;
  overflow: hidden;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 16px;
  z-index: 20;
}

.status-bar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  z-index: 10;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  padding: 0 16px;
}

.status-bar-left { text-align: left; }
.status-bar-center { }
.status-bar-right {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}

.status-bar-right svg { width: 14px; height: 10px; }
.status-bar-right svg:last-child { width: 20px; height: 10px; }

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  align-content: center;
  flex: 1;
  align-items: center;
}

.app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.app-link:hover { transform: scale(1.08); }
.app-link:active { transform: scale(0.95); }

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-icon.taxdump { background: #424dce; }
.app-icon.bedsync { background: #fff; }
.app-icon.oneproof { background: #111; border: 1px solid #222; }
.app-icon.vocalog { background: #ffcc33; }

.app-icon img { width: 28px; height: 28px; }
.app-icon.oneproof img { width: 36px; height: 36px; }
.app-icon.bedsync img,
.app-icon.vocalog img { width: 34px; height: 34px; }

.app-name {
  font-size: 11px;
  color: #999;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: #333;
  border-radius: 3px;
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.8;
}

.tagline-sub {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
  animation: fadeIn 1.5s ease-out 1s both;
}

.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint .chevron {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ─── Content Sections ─── */
.content-dim {
  position: relative;
  z-index: 1;
}

.content-dim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 24px;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Manifesto */
.manifesto {
  text-align: center;
}

.manifesto p {
  font-size: 22px;
  line-height: 1.7;
  color: #999;
  font-weight: 400;
}

.manifesto em {
  font-style: normal;
  color: var(--text-primary);
}

/* ─── App Showcase ─── */
.app-showcase {
  padding: 80px 24px;
}

.app-card {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid #151515;
}

.app-card:first-child {
  border-top: none;
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.app-card-icon img { width: 34px; height: 34px; }
.app-card-icon.oneproof img { width: 42px; height: 42px; }
.app-card-icon.bedsync img,
.app-card-icon.vocalog img { width: 40px; height: 40px; }

.app-card-icon.taxdump { background: #424dce; }
.app-card-icon.bedsync { background: #fff; }
.app-card-icon.oneproof { background: #111; border: 1px solid #222; }
.app-card-icon.vocalog { background: #ffcc33; }

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.app-card-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.app-card-name a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.app-card-name a:hover {
  opacity: 0.7;
}

.app-card-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.app-card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #777;
  max-width: 560px;
}

/* ─── Thread Section ─── */
.thread {
  text-align: center;
  padding: 140px 24px;
}

.thread p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.thread em {
  font-style: normal;
  color: #888;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 24px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer .wordmark svg {
  height: 20px;
  fill: #333;
}

.footer-copy {
  font-size: 11px;
  color: #2a2a2a;
  letter-spacing: 0.03em;
}

/* ─── GSAP animation prep ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .orb-wrap .orb {
    width: 100vw;
    height: 100vw;
  }

  .orb-wrap .orb:first-child {
    margin-right: -15vw;
  }

  .orb-wrap .orb:last-child {
    margin-left: -15vw;
  }

  .iphone {
    width: 220px;
    height: 448px;
    border-radius: 34px;
  }

  .iphone-screen {
    border-radius: 28px;
    padding: 46px 20px 20px;
  }

  .app-grid {
    gap: 20px 32px;
  }

  .app-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .app-icon img { width: 24px; height: 24px; }
  .app-icon.oneproof img { width: 32px; height: 32px; }
  .app-icon.bedsync img,
  .app-icon.vocalog img { width: 30px; height: 30px; }

  .manifesto p {
    font-size: 18px;
  }

  .app-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }

  .app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .app-card-icon img { width: 28px; height: 28px; }
  .app-card-icon.oneproof img { width: 34px; height: 34px; }
  .app-card-icon.bedsync img,
  .app-card-icon.vocalog img { width: 32px; height: 32px; }

  .app-card-name {
    font-size: 18px;
  }

  .app-card-desc {
    font-size: 14px;
  }

  .thread {
    padding: 100px 24px;
  }

  .thread p {
    font-size: 16px;
  }
}
