:root {
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #14211f;
  --muted: #65716d;
  --line: #d9e1dc;
  --soft: #edf3ef;
  --teal: #0d7a6c;
  --teal-dark: #08594f;
  --blue: #2f6ecb;
  --amber: #bf7a12;
  --red: #b94a3f;
  --charcoal: #182321;
  --shadow: 0 24px 80px rgba(25, 38, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(20, 33, 31, 0.08);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.restore-actions,
.billing-toggle {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--teal-dark);
}

.header-action,
.customer-login,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action {
  background: var(--ink);
  color: #fff;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.customer-login {
  color: var(--muted);
  font-weight: 750;
  border-color: transparent;
}

.customer-login:hover {
  color: var(--teal-dark);
}

.desktop-label {
  display: inline;
}

.mobile-label {
  display: none;
}

.header-actions .desktop-label,
.header-actions .mobile-label {
  line-height: 1;
  white-space: nowrap;
}

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

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

.button-primary:hover {
  background: var(--teal-dark);
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 72px) clamp(72px, 9vw, 116px);
  border-bottom: 1px solid var(--line);
  background: #dfeae5;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(223, 234, 229, 0), var(--bg));
  pointer-events: none;
}

.backup-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 33, 31, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 31, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%);
}

.scene-panel {
  position: absolute;
  border: 1px solid rgba(20, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.scene-panel--timeline {
  right: clamp(22px, 6vw, 90px);
  top: 16%;
  width: min(420px, 38vw);
  padding: 18px;
}

.scene-panel--restore {
  right: clamp(82px, 14vw, 230px);
  bottom: 24%;
  width: min(340px, 32vw);
  padding: 18px;
}

.scene-panel--storage {
  right: clamp(18px, 7vw, 120px);
  bottom: 8%;
  width: min(280px, 28vw);
  padding: 16px;
}

.scene-heading,
.scene-row,
.panel-title,
.restore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scene-heading {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.scene-heading strong,
.panel-title strong,
.scene-panel--storage strong {
  color: var(--teal-dark);
}

.scene-row {
  min-height: 48px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.scene-row.active {
  border-color: rgba(13, 122, 108, 0.28);
  background: rgba(222, 244, 236, 0.86);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--teal);
}

.status-dot--amber {
  background: var(--amber);
}

.status-dot--blue {
  background: var(--blue);
}

.check-line {
  margin-top: 8px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-line::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: -22px;
  margin-right: 10px;
}

.scene-button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.storage-meter {
  height: 9px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e1dc;
}

.storage-meter span {
  display: block;
  width: 64%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: #31403c;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.35;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats,
.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-stats {
  max-width: 640px;
}

.hero-stats div,
.snapshot-metrics div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(20, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
}

dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 72px);
}

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

.section-heading.compact {
  max-width: 700px;
}

h2 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.snapshot-list,
.restore-panel,
.feature-card,
.price-card,
.roadmap article,
.model-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(25, 38, 34, 0.07);
}

.snapshot-list,
.restore-panel {
  padding: 18px;
}

.snapshot-buttons {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.snapshot-button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.snapshot-button.active {
  border-color: rgba(13, 122, 108, 0.45);
  background: #eef8f4;
}

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

.snapshot-button strong {
  color: var(--ink);
}

.restore-header {
  align-items: flex-start;
  margin-bottom: 20px;
}

.restore-header h3 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.badge {
  border-radius: 999px;
  padding: 7px 11px;
  background: #e4f4ee;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.snapshot-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.restore-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.segmented-button,
.toggle-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.segmented-button.active,
.toggle-button.active {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(25, 38, 34, 0.07);
}

.preflight {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.preflight ul,
.price-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.preflight li,
.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--muted);
}

.preflight li::before,
.price-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.restore-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.activity-log {
  min-height: 52px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--charcoal);
  color: #d7ebe5;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}

.split-section,
.pricing-section {
  background: #fff;
}

.feature-grid,
.pricing-grid,
.model-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.price-card,
.model-steps article,
.roadmap article {
  padding: 22px;
}

.feature-card h3,
.model-steps h3,
.roadmap h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
}

.feature-card p,
.model-steps p,
.roadmap p,
.price-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.model-section {
  background: var(--charcoal);
  color: #f4fbf8;
}

.model-section .eyebrow,
.model-section .model-steps span {
  color: #8fe1c8;
}

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

.model-steps article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.model-steps p {
  color: rgba(244, 251, 248, 0.72);
}

.model-steps span,
.roadmap span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-weight: 850;
}

.billing-toggle {
  width: fit-content;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

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

.price-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.plan-link {
  width: 100%;
}

.price-card.featured {
  border-color: rgba(13, 122, 108, 0.36);
  background: #f1faf6;
}

.price-card h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.price-card small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.roadmap-section {
  background: #eef3ef;
}

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

.blog-hero {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 72px) clamp(36px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #dfeae5;
}

.blog-hero h1 {
  max-width: 760px;
}

.blog-archive {
  background: var(--bg);
}

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

.blog-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 33, 31, 0.08);
}

.blog-card a {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.blog-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.58;
}

.blog-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.blog-card-meta span,
.article-meta span:first-child {
  color: var(--teal-dark);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 850;
}

.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.article-header {
  max-width: 850px;
  margin-bottom: 34px;
}

.article-header h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
}

.article-dek {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 34px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.article-toc strong {
  font-size: 0.9rem;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.article-toc a:hover {
  color: var(--teal-dark);
}

.article-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  line-height: 1.72;
  box-shadow: 0 16px 42px rgba(20, 33, 31, 0.08);
}

.article-content h2 {
  margin-top: 38px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 24px;
  font-size: 1.18rem;
}

.article-content p,
.article-content li {
  color: #3e4b47;
}

.article-content ul {
  padding-left: 1.2rem;
}

.article-cta {
  margin-top: 38px;
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  background: #edf8f4;
}

.article-cta h2 {
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 10px;
}

.footer-links a {
  position: relative;
  line-height: 1.2;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  top: 0.1em;
  bottom: 0.1em;
  left: -11px;
  width: 1px;
  background: var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .scene-panel--timeline {
    opacity: 0.34;
    width: 430px;
    max-width: 78vw;
  }

  .scene-panel--restore,
  .scene-panel--storage {
    display: none;
  }

  .console-layout,
  .feature-grid,
  .pricing-grid,
  .roadmap,
  .blog-grid,
  .article-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .model-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 42px 18px 54px;
    align-items: start;
  }

  .backup-scene {
    opacity: 1;
  }

  .scene-grid {
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, #000, transparent 76%);
  }

  .scene-panel--timeline {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.75rem, 13vw, 3.45rem);
    line-height: 0.98;
  }

  .hero-copy {
    max-width: 25rem;
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-bottom: 22px;
  }

  .hero-stats,
  .snapshot-metrics,
  .console-layout,
  .feature-grid,
  .pricing-grid,
  .roadmap,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .restore-options {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .desktop-label {
    display: none !important;
  }

  .mobile-label {
    display: inline !important;
  }

  .header-actions {
    gap: 8px;
  }

  .customer-login,
  .header-action {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .customer-login {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    justify-self: end;
    max-width: 168px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .customer-login,
  .header-action {
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    font-size: 0.88rem;
  }

  .customer-login {
    display: inline-flex;
    justify-content: center;
    color: var(--ink);
    background: #fff;
    border-right: 1px solid var(--line);
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stats div {
    padding: 11px 12px;
  }
}
