:root {
  color-scheme: light;
  --ink: #132238;
  --muted: #59677a;
  --line: #d9e0e8;
  --surface: #ffffff;
  --soft: #f3f6f9;
  --blue: #075fc4;
  --blue-dark: #064b97;
  --green: #16784d;
  --amber: #d88919;
  --header-height: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.12; }

.site-header { height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 38px; }
nav { display: flex; gap: 28px; }
nav a { color: #34445b; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--blue); }
.site-header > .button { justify-self: end; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button svg { width: 18px; height: 18px; }
.button-primary { color: white; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: white; background: rgba(8,25,46,.55); border-color: rgba(255,255,255,.65); backdrop-filter: blur(5px); }
.button-secondary:hover { background: rgba(8,25,46,.8); }
.button-quiet { background: white; border-color: var(--line); color: var(--ink); }
.button-quiet:hover { border-color: #9eabb9; }
.button-wide { width: 100%; }

.hero { min-height: min(690px, calc(100svh - 116px)); display: flex; align-items: center; padding: 64px 7vw 76px; color: white; background-color: rgba(5,18,34,.55); background-image: url('/assets/backupbee-hero.webp'); background-blend-mode: multiply; background-size: cover; background-position: center; }
.hero-content { max-width: 670px; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.hero .eyebrow { color: #bbd9ff; }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #61d697; box-shadow: 0 0 0 4px rgba(97,214,151,.17); }
.hero h1 { max-width: 620px; margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5.7rem); }
.hero-copy { max-width: 640px; margin-bottom: 30px; color: #e8eff7; font-size: clamp(1.08rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-signals { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #d5e1ed; font-size: .92rem; }
.hero-signals span { display: inline-flex; align-items: center; gap: 8px; }
.hero-signals svg { width: 17px; }

.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1px solid var(--line); background: var(--soft); }
.trust-band > div { min-height: 95px; display: flex; flex-direction: column; justify-content: center; padding: 18px 4vw; border-right: 1px solid var(--line); }
.trust-band > div:last-child { border-right: 0; }
.trust-band strong { margin-bottom: 3px; }
.trust-band span { color: var(--muted); font-size: .88rem; }

.section { max-width: 1240px; margin: 0 auto; padding: 94px 32px; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .visual-copy h2, .download-band h2 { margin-bottom: 14px; font-size: clamp(2rem, 3.5vw, 3.1rem); }
.section-heading > p:last-child, .visual-copy > p:last-child, .download-band > div > p:last-child { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 225px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid svg { width: 28px; height: 28px; margin-bottom: 24px; color: var(--blue); }
.feature-grid h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }

.workflow-band { padding: 86px max(32px, calc((100vw - 1176px) / 2)); color: white; background: #17283f; }
.workflow-band .eyebrow { color: #85bdf6; }
.workflow-band .section-heading { margin-bottom: 34px; }
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.workflow li { min-width: 0; display: flex; gap: 13px; padding-top: 20px; border-top: 1px solid #526176; }
.workflow li > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #7db4ef; border-radius: 50%; color: #a9d2ff; font-size: .8rem; font-weight: 800; }
.workflow strong { display: block; margin-bottom: 4px; }
.workflow p { margin: 0; color: #b9c5d3; font-size: .88rem; }

.visual-section { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(500px, 1.3fr); align-items: center; gap: 52px; max-width: 1380px; margin: 0 auto; padding: 96px 32px; }
.visual-section img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 6px; }

.download-band { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 90px max(32px, calc((100vw - 1176px) / 2)); background: #edf4fb; border-top: 1px solid #d7e4f2; border-bottom: 1px solid #d7e4f2; }
.release-panel { padding-left: 42px; border-left: 1px solid #bacde0; }
.release-panel dl { margin: 0 0 22px; }
.release-panel dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px solid #ccdae8; }
.release-panel dt { color: var(--muted); }
.release-panel dd { min-width: 0; margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.server-install { margin-top: 18px; padding-top: 18px; border-top: 1px solid #bacde0; }
.server-install-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.server-install-head div { display: grid; gap: 3px; }
.server-install-head span { color: var(--muted); font-size: 13px; }
.command-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: start; gap: 8px; margin-top: 14px; }
.command-row code { min-height: 42px; padding: 12px; border: 1px solid #aabed3; background: #102038; color: #edf6ff; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.download-state { min-height: 24px; margin: 12px 0 0; color: var(--green); font-size: .9rem; }

.compatibility { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; padding: 64px 32px; }
.compatibility > div { display: grid; grid-template-columns: 34px 1fr; padding: 14px 26px; border-right: 1px solid var(--line); }
.compatibility > div:last-child { border-right: 0; }
.compatibility svg { grid-row: 1 / 3; width: 22px; color: var(--green); }
.compatibility strong { margin-bottom: 3px; }
.compatibility span { color: var(--muted); font-size: .88rem; }

footer { min-height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 16px 4vw; color: #d4deea; background: #101d2e; font-size: .86rem; }
footer a { color: white; font-weight: 750; }

dialog { width: min(500px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; color: var(--ink); box-shadow: 0 24px 70px rgba(11,25,44,.28); }
dialog::backdrop { background: rgba(9,21,37,.66); }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.45rem; }
.dialog-header .eyebrow { margin-bottom: 6px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; }
.icon-button svg { width: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 26px 0; }
.auth-tabs button { padding: 10px; border: 0; border-bottom: 2px solid var(--line); color: var(--muted); background: white; font-weight: 750; cursor: pointer; }
.auth-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
#authForm, #emailMfaForm, #enableEmailMfaForm { display: grid; gap: 16px; padding: 24px 26px 28px; }
#authForm label, #emailMfaForm label, #enableEmailMfaForm label { display: grid; gap: 6px; font-size: .88rem; font-weight: 750; }
#authForm input, #emailMfaForm input, #enableEmailMfaForm input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #abb7c4; border-radius: 5px; color: var(--ink); background: white; }
#authForm input:focus, #emailMfaForm input:focus, #enableEmailMfaForm input:focus { outline: 3px solid rgba(7,95,196,.16); border-color: var(--blue); }
.form-note, .form-error { margin: -4px 0 0; font-size: .83rem; }
.form-note { color: var(--muted); }
.form-error { min-height: 20px; color: #b42318; }
.account-summary { display:grid; gap:4px; padding:20px 26px; border-bottom:1px solid var(--line); }
.account-summary > span { color:var(--muted); }
.account-status { width:max-content; margin-top:8px; padding:4px 8px; border-radius:999px; font-size:.76rem; font-weight:800; }
.account-status.verified { color:#176b3a; background:#e5f6eb; }
.account-status.pending { color:#8a5900; background:#fff2cd; }
.account-action { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 26px; border-bottom:1px solid var(--line); }
.account-action p { margin:3px 0 0; color:var(--muted); font-size:.84rem; }
#accountDialog > .form-error { margin:12px 26px; }
#accountDialog > #signOutButton { width:calc(100% - 52px); margin:4px 26px 24px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  nav { display: none; }
  .hero { min-height: 640px; padding: 58px 26px 70px; background-position: 64% center; }
  .trust-band, .download-band, .visual-section { grid-template-columns: 1fr; }
  .trust-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: 1fr 1fr; }
  .visual-section { gap: 30px; }
  .release-panel { padding: 26px 0 0; border-left: 0; border-top: 1px solid #bacde0; }
  .compatibility { grid-template-columns: 1fr; }
  .compatibility > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .brand span { font-size: .92rem; }
  .site-header .button span { display: none; }
  .site-header .button { width: 42px; padding: 0; }
  .hero { min-height: 610px; background-position: 66% center; }
  .hero h1 { font-size: 3.25rem; }
  .hero-actions .button { width: 100%; }
  .hero-signals { display: grid; gap: 10px; }
  .section, .visual-section { padding: 72px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .workflow-band, .download-band { padding: 72px 20px; }
  .workflow { grid-template-columns: 1fr; }
  .visual-section { grid-template-columns: minmax(0, 1fr); }
  .release-panel dl > div { grid-template-columns: 1fr; gap: 2px; }
  .server-install-head { align-items: stretch; flex-direction: column; }
  .compatibility { padding: 48px 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}
