/* Dorage — styles from the Dorage brand kit (Midnight theme). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

:root {
  /* brand */
  --midnight: #04162F;
  --cyan: #00D6F7;
  --azure: #007BC3;
  --orange: #F78611;
  --orange-light: #FDA029;
  --mist: #B1BFCF;
  /* semantic (Midnight theme) */
  --surface: #04162F;
  --surface-raised: #0A2342;
  --line: #1C3557;
  --ink: #FFFFFF;
  --ink-muted: #B1BFCF;
  --link: #00D6F7;
  --accent: #F78611;
  --on-accent: #04162F;
  --accent-ink: #F78611;
  --focus: #00D6F7;
  --success: #3DDC84;
  --danger: #FF6B6B;
  /* scales */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px;
  --font-display: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font-sans); color: var(--ink); background: var(--surface); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #6BE8FB; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
code, pre, kbd { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code { background: var(--surface-raised); border: 1px solid var(--line); padding: .05em .35em; border-radius: var(--radius-sm); color: #DDE6F0; }
pre { background: #020F25; color: #E6EDF6; border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: var(--radius-md); overflow-x: auto; line-height: 1.55; margin: 0 0 1.2em; }
pre .c { color: #7F92AB; }
pre .k { color: var(--orange); }
pre .s { color: var(--cyan); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 460px; }
.mid { max-width: 780px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(4, 22, 47, .92); backdrop-filter: saturate(1.3) blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 800 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 7px; display: block; }
.logo .tld { color: var(--mist); font-weight: 600; font-size: .8em; letter-spacing: 0; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav form { margin: 0; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid #3A5578; background: #12305A; color: var(--ink); padding: .62rem 1.15rem; border-radius: var(--radius-md); font: 600 .95rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--mist); color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.accent:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: var(--mist); color: var(--ink); }
.btn.ghost:hover { background: rgba(177, 191, 207, .1); }
.btn.small { padding: .38rem .75rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: rgba(255, 107, 107, .12); }
.btn.link { background: none; border: none; color: var(--ink-muted); padding: 0; font-weight: 500; }
.btn.link:hover { color: var(--ink); text-decoration: underline; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; margin: 0 0 .35rem; font-size: .93rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid #3A5578; border-radius: var(--radius-sm); font: inherit; background: #061C3A; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #7F92AB; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { accent-color: var(--cyan); width: 1rem; height: 1rem; vertical-align: -2px; margin-right: .35rem; }
.field { margin-bottom: 1rem; }
.hint { color: var(--ink-muted); font-size: .88rem; margin-top: .35rem; }
.inline-form { display: inline; margin: 0; }
.row { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; margin-bottom: 0; }

/* cards & layout */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); margin-bottom: 1.25rem; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.three { grid-template-columns: 1fr; } }
.hero-grid > *, .grid > * { min-width: 0; }
section { padding: var(--space-16) 0; }
main { min-height: 60vh; padding-bottom: 3rem; }
.page-head { padding: 2.5rem 0 1rem; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }

/* brand tagline: STORE • RETRIEVE • RESTORE */
.tagline { display: inline-block; font: 600 .8rem/1.2 var(--font-display); letter-spacing: .25em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.2rem; }
.tagline b { color: var(--cyan); font-weight: 600; margin: 0 .35em; }

/* hero */
.hero { padding: 4.5rem 0 3rem; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 30%, rgba(0, 123, 195, .22), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 2.9rem); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 600px; }
.hero pre { font-size: .8rem; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 2.5rem; } }

/* features (icon, label, copy — after the banner's feature strip) */
.feature { padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.feature .ico { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: .8rem; }
.feature .ico svg { width: 30px; height: 30px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature .ico.restore svg { stroke: var(--orange); }
.feature h3 { margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--ink-muted); font-size: .97rem; }
.strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 2rem; font-weight: 600; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 700px) { .strip > div + div { border-left: 0; border-top: 1px solid var(--line); } .strip { flex-direction: column; align-items: stretch; } }
.band { background: #020F25; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band p { color: var(--ink-muted); }

/* pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--orange); box-shadow: 0 0 0 4px rgba(247, 134, 17, .08); }
.plan .price { font: 800 2rem/1.1 var(--font-display); letter-spacing: -0.02em; margin: .5rem 0 .2rem; }
.plan .alt { color: var(--ink-muted); font-size: .9rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.plan li { padding: .3rem 0 .3rem 1.5rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .72rem; width: .65rem; height: .35rem; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.plan .foot { margin-top: auto; display: grid; gap: .5rem; }
.plan .current { font-weight: 700; color: var(--success); }
.tag { display: inline-block; font: 600 .7rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .14em; padding: .38rem .55rem; border-radius: var(--radius-sm); background: rgba(177, 191, 207, .14); color: var(--ink); vertical-align: middle; }
.tag.accent { background: var(--orange); color: var(--on-accent); }
.tag.ok { background: rgba(61, 220, 132, .14); color: var(--success); }
.tag.warn { background: rgba(247, 134, 17, .16); color: var(--accent-ink); }
.tag.bad { background: rgba(255, 107, 107, .14); color: var(--danger); }

/* notices */
.notice { padding: .85rem 1rem; border-radius: var(--radius-md); margin: 0 0 1.2rem; border: 1px solid; }
.notice.ok { background: rgba(61, 220, 132, .08); border-color: rgba(61, 220, 132, .45); color: #C9F5DB; }
.notice.bad { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .5); color: #FFD5D5; }
.notice.warn { background: rgba(247, 134, 17, .08); border-color: rgba(247, 134, 17, .5); color: #FFE0BF; }
.newkey { font-family: var(--font-mono); background: #020F25; border: 1px solid var(--cyan); color: var(--cyan); padding: .85rem 1rem; border-radius: var(--radius-sm); word-break: break-all; user-select: all; margin: .6rem 0; }
.card.highlight { border-color: var(--orange); }

/* meters & tables */
.meter { height: 10px; background: #061C3A; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: .5rem 0 .45rem; }
.meter > span { display: block; height: 100%; background: var(--cyan); border-radius: 999px; }
.meter.warn > span { background: var(--orange); }
.meter.bad > span { background: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.stat .n { font: 800 1.6rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.stat .l { color: var(--ink-muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .72rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .88em; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
dl.kv dt { color: var(--ink-muted); }
dl.kv dd { margin: 0; }

/* docs & legal */
.docs h2 { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.docs h2:first-of-type { border-top: 0; margin-top: 0; }
.prose { max-width: 760px; color: #DDE6F0; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--ink-muted); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
.admin-bar { background: var(--orange); color: var(--on-accent); font-size: .85rem; font-weight: 600; }
.admin-bar .wrap { display: flex; gap: 1rem; padding: .35rem 1.25rem; }
.admin-bar a { color: var(--on-accent); }

/* mobile */
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; gap: .5rem 1rem; }
  .nav { margin-left: 0; width: 100%; gap: .4rem 1rem; }
  .nav .btn { margin-left: auto; }
  .site-footer nav { margin-left: 0; }
  .card { padding: 1.1rem; }
  pre { font-size: .8rem; }
  section { padding: var(--space-12) 0; }
}
