:root {
  --bg: #f7f7f7;
  --ink: #111111;
  --muted: #666f7a;
  --line: #d7dbe0;
  --accent: #e14d2a;
  --teal: #0f7c72;
  --paper: #ffffff;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 247, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 36px;
  height: 36px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--ink);
}

.hub-main {
  width: min(1160px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 84px) 0;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  min-height: calc(100svh - 170px);
}

.hub-copy {
  max-width: 560px;
}

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

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lede {
  margin: 24px 0 0;
  max-width: 500px;
  color: #3c4249;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.preview-plane {
  min-height: 520px;
  position: relative;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-ruler-preview {
  width: min(330px, 72vw);
  aspect-ratio: 9 / 19.5;
  border: 10px solid #111;
  border-radius: 34px;
  background:
    repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 9px),
    linear-gradient(#fff, #fff);
  box-shadow: 0 22px 60px rgba(17, 17, 17, 0.18);
  position: relative;
  overflow: hidden;
}

.phone-ruler-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(17, 17, 17, 0.22) 10px 11px),
    linear-gradient(90deg, rgba(225, 77, 42, 0.18), transparent 42%);
}

.phone-ruler-preview::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 42%;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.apps-section {
  margin-top: clamp(28px, 7vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 22px;
  font-size: 22px;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.app-entry {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  display: grid;
  align-content: space-between;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-entry:hover {
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.app-entry strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.app-entry span {
  color: var(--muted);
  line-height: 1.55;
}

.app-meta {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.footer {
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hub-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-plane {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

