@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  color-scheme: light;
  --bg: #e2e7e5;
  --surface: #fafbf9;
  --surface-2: #d7ddd9;
  --text: #171b1a;
  --muted: #57635f;
  --brand: #16262b;
  --brand-2: #1f3a41;
  --accent: #b8791d;
  --accent-soft: #dfeee3;
  --line: #c9d0cb;
  --success: #2f7d52;
  --warning: #a8571c;
  --danger: #b13c34;
  --shadow: 0 22px 48px -20px rgba(15, 22, 24, .32);
  --shadow-sm: 0 10px 22px -14px rgba(15, 22, 24, .22);
  --radius: 10px;
  --radius-sm: 7px;
  --shell: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0d1113; --surface: #161b1c; --surface-2: #1d2422;
    --text: #edf1ec; --muted: #9aa39c;
    --brand: #22343a; --brand-2: #2c4650;
    --accent: #f2b45c; --accent-soft: #16301f;
    --line: #2a312c;
    --success: #6fcf9b; --warning: #f0975a; --danger: #ff9088;
    --shadow: 0 22px 48px -18px rgba(0, 0, 0, .55);
    --shadow-sm: 0 10px 22px -14px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1113; --surface: #161b1c; --surface-2: #1d2422;
  --text: #edf1ec; --muted: #9aa39c;
  --brand: #22343a; --brand-2: #2c4650;
  --accent: #f2b45c; --accent-soft: #16301f;
  --line: #2a312c;
  --success: #6fcf9b; --warning: #f0975a; --danger: #ff9088;
  --shadow: 0 22px 48px -18px rgba(0, 0, 0, .55);
  --shadow-sm: 0 10px 22px -14px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.brand small { font-size: inherit; color: var(--accent); }
.brand-mark { width: 34px; height: 34px; }
.brand-mark path:first-child { fill: var(--brand); }
.brand-mark path:last-child { fill: none; stroke: var(--surface); stroke-width: 2.7; stroke-linecap: round; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav > a { padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.theme-toggle, .nav-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav-toggle { display: none; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 48px; padding: 12px 21px;
  border: 1px solid var(--brand); background: var(--brand); color: #fff !important;
  border-radius: 7px; text-decoration: none; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 38, 43, .18);
  transition: background .15s ease;
}
.button:hover { background: var(--brand-2); }
.button-secondary { background: var(--surface); color: var(--text) !important; border-color: var(--line); box-shadow: none; }
.button-secondary:hover { border-color: var(--accent); color: var(--accent) !important; }
.button-small { min-height: 40px !important; padding: 8px 15px !important; }

.eyebrow {
  display: block; margin: 0 0 14px; color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
}

h1, h2, h3 { font-family: "IBM Plex Sans", ui-sans-serif, sans-serif; font-weight: 600; line-height: 1.14; letter-spacing: -.03em; margin-top: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); max-width: 900px; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 9px; font-weight: 600; }
.lead { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--muted); max-width: 700px; line-height: 1.6; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 78px;
  color: #f0f3f0;
  background:
    linear-gradient(190deg, rgba(8, 13, 14, .25) 0%, rgba(8, 13, 14, .55) 100%),
    url('/assets/img/hero-bg.png') center / cover no-repeat,
    #0d1517;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.75rem); }
.hero .eyebrow { color: #f2b45c; }
.hero .lead { color: #c6d0cb; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 31px; }
.hero .button { background: #f2b45c; border-color: #f2b45c; color: #171200 !important; }
.hero .button:hover { background: #f6c47c; border-color: #f6c47c; }
.hero .button-secondary { background: transparent; border-color: rgba(255, 255, 255, .32); color: #f0f3f0 !important; }
.hero .button-secondary:hover { border-color: #f2b45c; color: #f2b45c !important; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 14px; }
.hero .trust-row { color: #b7c2bd; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row span:before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--accent-soft); color: var(--success); font-size: 11px; font-weight: 700; }

.product-window {
  position: relative;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 0 90px -35px color-mix(in srgb, #f2b45c 55%, transparent);
  overflow: hidden; transform: rotate(1deg);
  color: var(--text);
}
.window-top { height: 48px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 17px; gap: 7px; }
.window-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.window-title { margin-left: auto; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.dashboard { padding: 22px; }
.statusbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.status-card, .mini-card { border: 1px solid var(--line); border-radius: 8px; padding: 13px; background: var(--bg); }
.status-card small, .mini-card small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.status-card strong { display: block; margin-top: 5px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600; }
.status-card strong:before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); margin-right: 7px;
  animation: live-pulse 2.6s ease-out infinite;
}
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.incident { border: 1px solid var(--line); border-radius: 9px; padding: 16px; }
.incident-head { display: flex; justify-content: space-between; gap: 8px; }
.incident-head b { font-size: 13px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: var(--accent-soft); color: var(--success); font-size: 11px; font-weight: 700; }
.timeline { margin-top: 14px; border-left: 2px solid var(--line); padding-left: 14px; display: grid; gap: 11px; }
.timeline div { font-size: 11px; color: var(--muted); }
.timeline b { color: var(--text); display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.mini-stack { display: grid; gap: 12px; }
.mini-card strong { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 24px; font-weight: 600; }

.section { padding: 92px 0; }
.page-hero + .section { padding-top: 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 740px; margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-alt .card { background: var(--bg); }
.icon-box { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--success); margin-bottom: 18px; }
.icon-box svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; background: var(--accent-soft); color: var(--success); border-radius: 6px; font-size: 12px; font-weight: 700; }

.security-panel { background: var(--brand); color: #fff; padding: 36px; border-radius: 10px; box-shadow: var(--shadow); }
.security-panel p { color: #cdd6d1; }
.security-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.security-row:last-child { border: 0; }
.security-row strong { display: block; }
.security-row small { color: #b6c1bc; }
.security-icon { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 7px; background: rgba(242, 180, 92, .16); display: grid; place-items: center; color: #f2b45c; }

.cta { padding: 72px 0; }
.cta-box { background: var(--brand); color: #fff; border-radius: 10px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-box h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; }
.cta-box p { color: #ccd4cf; margin: 0; }

.page-hero { padding: 78px 0 48px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }

.post-meta { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: .01em; margin: 0 0 8px; }

.blog-list { display: grid; gap: 16px; max-width: 780px; }
.blog-item { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.blog-item:hover { border-color: var(--accent); }
.blog-item h2 { font-size: 1.4rem; margin-bottom: 8px; }
.blog-item p { color: var(--muted); margin: 0; }
.blog-readmore { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 14px; }

.post-body { margin-top: 8px; }
.post-body p { color: var(--muted); }

.admin-narrow { max-width: 440px; }
.admin-login-form { margin-top: 22px; display: grid; gap: 16px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.admin-toolbar-actions { display: flex; gap: 10px; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.admin-post-list { display: grid; gap: 12px; }
.admin-post-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.admin-post-row h3 { margin: 0; font-size: 1rem; }
.admin-post-actions { display: flex; gap: 8px; }
.admin-post-actions form { margin: 0; }
.admin-notice-ok { border-left-color: var(--success); }

.faq-list { max-width: 880px; display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 0 21px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 20px 40px 20px 0; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after { content: "+"; position: absolute; right: 4px; font-size: 22px; font-weight: 400; color: var(--accent); }
.faq-list details[open] summary:after { content: "–"; }
.faq-list details p { color: var(--muted); margin: 0; padding: 0 32px 20px 0; }

.billing-switch { display: inline-flex; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.billing-switch button { border: 0; background: transparent; color: var(--muted); padding: 9px 15px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.billing-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.price-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.price-card { padding: 36px; }
.price { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: clamp(2.6rem, 6.5vw, 4.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price sup { font-size: 1.1rem; vertical-align: top; margin-top: 10px; display: inline-block; }
.price small { font-family: "IBM Plex Sans", sans-serif; font-size: 1rem; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.fineprint { font-size: 13px; color: var(--muted); }
.side-note { position: sticky; top: 100px; }
.side-note ul { padding-left: 20px; color: var(--muted); }

.form-card { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); padding: 11px 13px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.radio-row { display: flex; gap: 10px; }
.radio-card { flex: 1; position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; border: 1px solid var(--line); border-radius: 7px; padding: 13px 15px; background: var(--bg); font-weight: 700; }
.radio-card input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.checkbox input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--brand); }
.subdomain-preview { margin: 2px 0 0; color: var(--success); font-weight: 700; }

.notice { border-left: 4px solid var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); padding: 15px 17px; border-radius: 6px; color: var(--text); font-size: 14px; }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.55rem; margin-top: 42px; }
.legal h3 { margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal-placeholder { border: 1px dashed var(--warning); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); padding: 20px; border-radius: 10px; }

.site-footer { background: #12191a; color: #e7ece8; padding: 64px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 46px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark path:first-child { fill: #f2b45c; }
.brand-footer .brand-mark path:last-child { stroke: #12191a; }
.footer-grid p { color: #9aa8a1; max-width: 310px; }
.footer-grid h2 { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; color: #e0ac5c; margin-bottom: 14px; font-weight: 500; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a { text-decoration: none; color: #d2dbd5; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; color: #7c8a83; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin-top: 46px; font-size: 13px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 45%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 0%, transparent); }
}

@media (max-width: 900px) {
  .hero-grid, .split, .price-layout, .admin-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .product-window { max-width: 650px; transform: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .side-note { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { position: absolute; display: none; top: 68px; left: 20px; right: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 12px; }
  .nav-toggle { display: grid; margin-left: auto; }
  .theme-toggle { order: 3; }
}
@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { height: 68px; }
  .hero, .section { padding: 64px 0; }
  .hero h1 { font-size: 2.65rem; }
  .grid-3, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .statusbar { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .product-window { border-radius: 10px; }
  .cta-box { padding: 30px; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .radio-row { flex-direction: column; }
  .form-card, .price-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
