:root {
  --ink-980: #050505;
  --ink-950: #111111;
  --ink-900: #171717;
  --ink-700: #3d3d3d;
  --ink-500: #8a8a8a;
  --ink-300: #c9c9c9;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(10, 10, 10, 0.58);
  --font-sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-980);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100dvh;
}

.hero {
  isolation: isolate;
  min-height: 92dvh;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 36%, rgba(0, 0, 0, 0.26) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.72) 100%),
    url("/assets/hero-dental-office.png") center right / cover no-repeat;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-bg::after {
  background:
    radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 62%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 34px clamp(22px, 5vw, 72px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.brand-link img {
  display: block;
  filter: invert(1);
  height: auto;
  width: clamp(118px, 12vw, 172px);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.nav-actions a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 560;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(320px, 0.76fr) minmax(460px, 1.24fr);
  min-height: 92dvh;
  padding: 118px clamp(22px, 5vw, 72px) 56px;
}

.hero-copy {
  max-width: 580px;
  padding-top: 34px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(76px, 10vw, 156px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin: 0 0 28px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.48;
  margin: 0;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.btn {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 650;
  justify-content: center;
  min-height: 56px;
  min-width: 158px;
  padding: 0 24px;
}

.btn-primary {
  background: var(--white);
  color: var(--ink-950);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.92);
}

.hero-insights-link {
  color: rgba(255, 255, 255, 0.62);
  display: inline-flex;
  font-size: 14px;
  font-weight: 620;
  margin-top: 22px;
}

.hero-product {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.laptop-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.62);
  max-width: 780px;
  padding: 14px;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  width: min(58vw, 780px);
}

.screen {
  background: rgba(13, 13, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--white);
  display: grid;
  gap: 16px;
  min-height: 460px;
  padding: 24px;
}

.screen-top,
.screen-grid,
.screen-row {
  min-width: 0;
}

.screen-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.screen-top span:first-child {
  font-size: 18px;
  font-weight: 650;
}

.screen-top span:last-child,
.screen article span,
.panel > span,
.appointment b,
.panel p,
.screen small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.screen-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screen article,
.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 15px;
}

.screen article {
  display: grid;
  gap: 8px;
}

.screen article strong {
  font-size: 26px;
  line-height: 1;
}

.screen-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 0.8fr;
}

.panel {
  display: grid;
  gap: 12px;
}

.appointment {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.appointment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment em {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-style: normal;
  padding: 4px 8px;
}

.panel p {
  margin: 0;
}

.insights {
  background: #f5f5f3;
  color: var(--ink-950);
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.insights-inner {
  margin: 0 auto;
  max-width: 1240px;
}

.section-kicker {
  color: #77746d;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}

.section-head p {
  color: #6b6862;
  font-size: 17px;
  line-height: 1.58;
  margin: 0 0 6px;
}

.home-post-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-post-card {
  background: #ffffff;
  border: 1px solid #dedbd4;
  border-radius: 12px;
  color: inherit;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-post-card:hover {
  border-color: #bdb8ad;
  box-shadow: 0 18px 44px rgba(19, 19, 18, 0.08);
  transform: translateY(-2px);
}

.home-post-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b1b1b, #73716b);
  overflow: hidden;
}

.home-post-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-post-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.home-post-meta {
  color: #8a867d;
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-post-card h3 {
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.16;
  margin: 0;
}

.home-post-card p {
  color: #625f59;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.home-post-empty {
  border: 1px dashed #cbc7bd;
  border-radius: 12px;
  color: #77746d;
  grid-column: 1 / -1;
  padding: 28px;
}

@media (max-width: 980px) {
  .hero {
    min-height: 92dvh;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.88) 58%, rgba(0, 0, 0, 0.95) 100%),
      url("/assets/hero-dental-office.png") center top / cover no-repeat;
  }

  .hero-nav {
    padding: 24px 20px;
  }

  .nav-actions {
    display: none;
  }

  .hero-content {
    align-content: start;
    grid-template-columns: 1fr;
    min-height: 92dvh;
    padding: 104px 20px 32px;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(58px, 18vw, 92px);
    margin-bottom: 20px;
  }

  .hero-text {
    font-size: 18px;
    max-width: 30rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

  .btn {
    border-radius: 10px;
    flex: 1 1 142px;
    font-size: 15px;
    min-height: 52px;
    min-width: 0;
  }

  .hero-product {
    justify-items: stretch;
  }

  .laptop-frame {
    border-radius: 20px;
    max-width: none;
    padding: 10px;
    transform: none;
    width: 100%;
  }

  .screen {
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .home-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand-link img {
    width: 118px;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .hero-text {
    font-size: 16px;
  }

  .screen-top span:first-child {
    font-size: 15px;
  }

  .screen article {
    padding: 12px;
  }

  .screen article strong {
    font-size: 22px;
  }

  .appointment {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .appointment em {
    grid-column: 2;
    justify-self: start;
  }

  .insights {
    padding: 54px 16px;
  }

  .home-post-grid {
    grid-template-columns: 1fr;
  }

  .home-post-body {
    padding: 18px;
  }
}
