:root {
  color-scheme: light;
  --bg: #f7f4ec;
  --bg-warm: #eee5d4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #fffdfa;
  --ink: #151515;
  --muted: #706a61;
  --soft: #ece7dc;
  --line: rgba(21, 21, 21, 0.1);
  --accent: #1f1f1f;
  --green: #2d8a5c;
  --blue: #356f8c;
  --red: #b85a45;
  --gold: #a77a2c;
  --shadow: 0 24px 80px rgba(32, 25, 16, 0.09);
  --shadow-soft: 0 18px 48px rgba(32, 25, 16, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.95) 0, transparent 30%),
    radial-gradient(circle at 82% 2%, rgba(230, 217, 194, 0.78) 0, transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #faf8f2 52%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.page {
  overflow: hidden;
}

.nav {
  width: calc(100% - 48px);
  max-width: var(--max);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  font-size: 1.06rem;
}

.logo {
  width: 42px;
  height: 42px;
  background: url("havenos-icon.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.16));
  position: relative;
  flex: 0 0 auto;
}

.logo::before,
.logo::after {
  content: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
}

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

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line);
}

.button-light {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

main {
  display: block;
}

.hero {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 66px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 680;
  backdrop-filter: blur(18px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 138, 92, 0.14);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 5rem;
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 830;
}

h1 span {
  display: block;
}

.hero-copy p {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.65;
}

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

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 640;
}

.mockup-wrap {
  position: relative;
}

.halo {
  position: absolute;
  inset: -70px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), transparent 58%);
}

.mockup {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  transform: rotate(-1.2deg);
}

.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfaf7;
}

.window-bar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ddd4c6;
}

.traffic span:nth-child(1) {
  background: #cf6a55;
}

.traffic span:nth-child(2) {
  background: #d5a642;
}

.traffic span:nth-child(3) {
  background: #4baf71;
}

.window-title {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.dashboard {
  padding: 24px;
}

.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dash-header h3 {
  margin-bottom: 3px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.dash-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 620;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(45, 138, 92, 0.12);
  color: #267047;
  font-size: 0.77rem;
  font-weight: 800;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 30px rgba(32, 25, 16, 0.045);
}

.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 830;
}

.service-icon.books {
  color: var(--red);
}

.service-icon.music {
  color: var(--blue);
}

.service-icon.movies {
  color: var(--accent);
}

.service-icon.files {
  color: var(--gold);
}

.service-card h4 {
  margin: 12px 0 4px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.43;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3efe6;
  color: #625c52;
  font-weight: 760;
}

section {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 3.55rem;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 820;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.story-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.72;
}

.mini-stack {
  min-height: 318px;
  padding: 28px;
  border-radius: 24px;
  background: #151515;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.mini-stack::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mini-stack h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.mini-stack p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.promise-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.promise-list div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.promise-list strong {
  color: #fff;
}

.steps,
.feature-grid,
.examples {
  display: grid;
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.examples {
  grid-template-columns: repeat(4, 1fr);
}

.info-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.info-card.tall {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 830;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.availability {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.backup-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.backup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.backup-top h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.backup-top p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.score {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 10px solid var(--green);
  color: var(--accent);
  font-size: 1.28rem;
  font-weight: 830;
  background: #fff;
}

.backup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 24px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.07);
}

.backup-row:last-child {
  border-bottom: 0;
}

.backup-row strong {
  display: block;
  margin-bottom: 2px;
}

.backup-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.state {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.state.good {
  background: rgba(45, 138, 92, 0.12);
  color: #267047;
}

.state.warn {
  background: rgba(167, 122, 44, 0.14);
  color: #7d5b1f;
}

.oss {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 58px;
  border-radius: var(--radius-xl);
  background: #151515;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.oss::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
}

.oss h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 3.25rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.oss p {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  line-height: 1.65;
}

.oss .button {
  position: relative;
  z-index: 1;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credit-item {
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.credit-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.credit-item h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.credit-item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credit-version {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.credit-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.credit-license {
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 830;
  text-transform: uppercase;
}

.credit-note {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.legal-item {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.legal-item h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.legal-item p,
.legal-item li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.legal-item ul {
  margin: 0;
  padding-left: 18px;
}

.legal-item a {
  color: var(--accent);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final {
  text-align: center;
  padding-bottom: 118px;
}

.final h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 830;
}

.final p {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.final .actions {
  justify-content: center;
}

.requirements {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .story,
  .trust,
  .oss {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 44px;
    padding-top: 48px;
  }

  h1 {
    font-size: 4rem;
  }

  .section-heading h2,
  .oss h2 {
    font-size: 2.8rem;
  }

  .final h2 {
    font-size: 3.2rem;
  }

  .mockup {
    transform: none;
  }

  .feature-grid,
  .examples,
  .steps,
  .credits-grid,
  .legal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    width: calc(100% - 32px);
    max-width: var(--max);
  }

  .nav-links {
    display: none;
  }

  .nav-actions .button-secondary {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hero,
  section,
  footer {
    width: calc(100% - 72px);
    max-width: var(--max);
  }

  .hero {
    display: block;
    padding-top: 30px;
    padding-bottom: 58px;
  }

  h1 {
    max-width: 340px;
    font-size: 2.48rem;
    line-height: 1;
  }

  .mockup-wrap {
    width: 100%;
    max-width: 320px;
    margin-top: 44px;
  }

  .mockup {
    width: 100%;
    max-width: 320px;
    padding: 10px;
    border-radius: 22px;
  }

  .window {
    border-radius: 18px;
  }

  .dashboard {
    padding: 16px;
  }

  .dash-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy p,
  .section-heading p,
  .final p {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .hero-copy p,
  .hero-copy .actions {
    max-width: 320px;
  }

  .hero-notes {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 230px;
  }

  .note {
    justify-content: center;
  }

  .section-heading h2,
  .oss h2 {
    font-size: 2.24rem;
  }

  .final h2 {
    font-size: 2.65rem;
  }

  .actions,
  footer {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .nav-actions .button {
    width: auto;
    min-height: 42px;
    padding: 0 14px;
  }

  .service-grid,
  .feature-grid,
  .examples,
  .steps,
  .credits-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .credit-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .story,
  .oss {
    padding: 28px;
  }

  .backup-top,
  .backup-row {
    grid-template-columns: 1fr;
  }

  .score {
    width: 82px;
    height: 82px;
  }
}

.service-spacer { width: 54px; }
.story .section-heading { margin-bottom: 22px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 10; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
