:root {
  color-scheme: light;
  --ink: #12201f;
  --muted: #5d6b66;
  --line: #dbe5df;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #d99a1b;
  --coral: #c8523f;
  --sky: #2f80a7;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7faf8;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 31, 29, 0.7);
  backdrop-filter: blur(18px);
  color: #ffffff;
}

.brand,
.navLinks {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brandMark {
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 46%, currentColor 47% 54%, transparent 55%),
    rgba(255, 255, 255, 0.16);
}

.navLinks {
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.navLinks a {
  opacity: 0.9;
}

.navLinks a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.56fr);
  gap: clamp(24px, 5vw, 78px);
  min-height: 88vh;
  overflow: hidden;
  align-items: center;
  padding: 104px clamp(20px, 5vw, 72px) 82px;
  color: #ffffff;
}

.heroImage,
.heroOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heroImage {
  object-fit: cover;
  object-position: center;
}

.heroOverlay {
  background:
    linear-gradient(90deg, rgba(6, 26, 25, 0.94) 0%, rgba(6, 26, 25, 0.72) 46%, rgba(6, 26, 25, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 32, 30, 0.48), rgba(10, 32, 30, 0.08));
}

.heroContent {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  padding-top: 18px;
}

.eyebrow,
.sectionLabel {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #f3cf71;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primaryAction,
.secondaryAction {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
}

.primaryAction {
  border: 0;
  background: #f3c653;
  color: #1e2a16;
  cursor: pointer;
}

.primaryAction:hover {
  background: #ffd979;
}

.secondaryAction {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: #ffffff;
}

.secondaryAction:hover {
  background: rgba(255, 255, 255, 0.12);
}

.primaryAction[hidden] + .secondaryAction {
  border: 0;
  background: #f3c653;
  color: #1e2a16;
}

.primaryAction[hidden] + .secondaryAction:hover {
  background: #ffd979;
}

.installStatus {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.appPreview {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(390px, 100%);
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: #f5f7fb;
  box-shadow: 0 30px 76px rgba(5, 18, 17, 0.42);
  color: #152033;
}

.appPreviewTopbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
}

.appPreviewTopbar strong {
  font-size: 1rem;
}

.appPreviewTopbar span:last-child {
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 10px;
}

.appPreviewMark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.86) 47% 54%, transparent 55%),
    var(--teal);
}

.appPreviewBody {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.appPreviewHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.appPreviewHeader div {
  display: grid;
  gap: 2px;
}

.appPreviewHeader span,
.appPreviewCard span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.appPreviewHeader strong {
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1.08;
}

.appPreviewHeader em {
  border-radius: 999px;
  background: #d9f2ef;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
}

.appPreviewSearch {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 12px 14px;
}

.appPreviewCard {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.appPreviewPhoto {
  min-height: 94px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 118, 110, 0.12)),
    url("/assets/hero-students-coliving.png");
  background-position: 63% 54%;
  background-size: 720px auto;
}

.appPreviewPhotoAlt {
  background-position: 82% 52%;
}

.appPreviewCard div:last-child {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.appPreviewCard strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.24;
}

.appPreviewCard p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.section,
.metrics {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(58px, 9vw, 108px) 0;
  align-items: start;
}

.sectionLabel {
  color: var(--coral);
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section p,
.metrics p,
.trustGrid p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(56px, 8vw, 94px);
}

.metrics article,
.trustGrid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics article {
  border-top: 4px solid var(--teal);
  padding: 26px;
}

.metrics article:nth-child(2) {
  border-top-color: var(--gold);
}

.metrics article:nth-child(3) {
  border-top-color: var(--coral);
}

.metrics span {
  display: block;
  margin-bottom: 24px;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 850;
}

.metrics h3,
.trustGrid h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

.metrics p,
.trustGrid p {
  margin-bottom: 0;
}

.trust {
  border-top: 1px solid var(--line);
}

.trustGrid {
  display: grid;
  gap: 14px;
}

.trustGrid > div {
  padding: 24px;
}

@media (max-width: 820px) {
  .topbar {
    position: absolute;
    padding-top: 16px;
    background: rgba(7, 31, 29, 0.64);
  }

  .navLinks {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 92vh;
    padding-bottom: 64px;
  }

  .heroOverlay {
    background:
      linear-gradient(90deg, rgba(6, 28, 27, 0.92), rgba(6, 28, 27, 0.48)),
      linear-gradient(0deg, rgba(6, 28, 27, 0.34), rgba(6, 28, 27, 0.14));
  }

  .heroContent {
    width: min(560px, 100%);
  }

  .appPreview {
    width: min(360px, 100%);
    justify-self: start;
  }

  .section,
  .metrics {
    width: min(100% - 32px, 1180px);
  }

  .section,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .metrics {
    padding-bottom: 52px;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-top: 92px;
  }

  .heroActions {
    align-items: stretch;
    flex-direction: column;
  }

  .primaryAction,
  .secondaryAction {
    width: 100%;
  }

  .appPreview {
    display: none;
  }
}
