:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #53616f;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d9ded8;
  --teal: #0f766e;
  --teal-dark: #154f4a;
  --gold: #c4821f;
  --green: #4b7f52;
  --coral: #b85c4c;
  --shadow: 0 18px 44px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Avenir Next, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.site-header--overlay {
  position: absolute;
  width: 100%;
  background: linear-gradient(rgba(16, 24, 32, 0.78), rgba(16, 24, 32, 0));
  border-bottom: 0;
  color: #fffaf0;
}

.brand {
  font-weight: 760;
  font-size: 1.05rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 640;
}

nav a {
  opacity: 0.86;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
}

.home-hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: clamp(72px, 12vw, 144px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 20%, rgba(196, 130, 31, 0.18), transparent 28%),
    linear-gradient(135deg, #f7f5ef 0%, #eef6f3 48%, #f4eadf 100%);
}

.home-hero__inner,
.backup-hero__content,
.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.home-hero__inner {
  max-width: 820px;
  margin-left: clamp(0px, 6vw, 64px);
}

.backup-hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  padding: 144px clamp(20px, 5vw, 72px) 76px;
  color: #fffaf0;
  background-image: url("./assets/deskync-backup-hero.png");
  background-size: cover;
  background-position: center;
}

.backup-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.88) 0%, rgba(16, 24, 32, 0.58) 42%, rgba(16, 24, 32, 0.08) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.62) 0%, rgba(16, 24, 32, 0) 42%);
}

.backup-hero__content {
  position: relative;
  max-width: 720px;
  margin-left: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.backup-hero .eyebrow {
  color: #ffd27a;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.home-hero .lede {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 740;
  font-size: 0.94rem;
}

.button--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 24, 32, 0.16);
  color: var(--ink);
}

.backup-hero .button--secondary {
  background: rgba(255, 250, 240, 0.16);
  border-color: rgba(255, 250, 240, 0.42);
  color: #fffaf0;
}

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

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
  background: var(--surface);
}

.section--intro {
  background: var(--paper);
}

.section--status {
  background: linear-gradient(135deg, #f7f5ef 0%, #edf6f2 54%, #f6efe4 100%);
}

.section__inner--split,
.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.section p,
.feature-card p,
.status-panel p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section__inner--split > p,
.status-panel > p {
  margin: 44px 0 0;
  font-size: 1.14rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  min-height: 218px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 239, 0.72)),
    var(--surface);
}

.feature-card:nth-child(1) {
  border-top: 4px solid var(--teal);
}

.feature-card:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.feature-card:nth-child(3) {
  border-top: 4px solid var(--green);
}

.status-panel {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #fffaf0;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 62px;
  }

  nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .home-hero {
    min-height: calc(100svh - 62px);
  }

  .backup-hero {
    min-height: 82svh;
    padding-top: 118px;
    background-position: 56% center;
  }

  .section__inner--split,
  .status-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section__inner--split > p,
  .status-panel > p {
    margin-top: 0;
  }

  .feature-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .backup-hero {
    min-height: 80svh;
    padding-inline: 16px;
    background-position: 61% center;
  }

  .home-hero,
  .section {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
