/* NimbusVault — design system. First-party only, no external assets. */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-grad: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --shadow: 0 10px 40px -12px rgba(10, 20, 48, 0.4);
  --shadow-sm: 0 2px 10px -4px rgba(10, 20, 48, 0.3);
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root,
[data-theme="dark"] {
  --bg: #070d1c;
  --bg-soft: #0c1428;
  --surface: #101a35;
  --surface-2: #162143;
  --border: #233companies;
  --border: #233156;
  --text: #eef3ff;
  --muted: #a2b1d6;
  --faint: #6c7caa;
  --ring: rgba(37, 99, 235, 0.45);
  --hero-glow: radial-gradient(60% 80% at 78% 0%, rgba(14, 165, 233, 0.22), transparent 70%);
  --on-brand: #ffffff;
}

[data-theme="light"] {
  --bg: #f5f8ff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3fd;
  --border: #dde6f5;
  --text: #0a1230;
  --muted: #4d5b7e;
  --faint: #8390b3;
  --ring: rgba(37, 99, 235, 0.35);
  --hero-glow: radial-gradient(60% 80% at 78% 0%, rgba(14, 165, 233, 0.14), transparent 70%);
  --on-brand: #ffffff;
  --shadow: 0 14px 40px -16px rgba(30, 50, 110, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.text-grad {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  transition: var(--transition);
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: var(--transition); white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn-primary { background: var(--brand-grad); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { border-color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }

.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 800; margin-bottom: 18px; }
.hero .lead { font-size: 1.18rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta div { font-size: 0.9rem; color: var(--muted); }
.hero-meta strong { display: block; font-size: 1.45rem; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head .title { font-weight: 700; font-size: 1.05rem; }
.pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2); background: color-mix(in srgb, var(--brand) 16%, transparent);
  padding: 5px 10px; border-radius: 999px; }

.vault-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.vault-bar .btn { font-size: 0.88rem; padding: 9px 14px; }
.filelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filelist li {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); cursor: pointer; transition: var(--transition);
}
.filelist li:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg-soft)); }
.fi-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.fi-folder { background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: var(--brand-2); }
.fi-doc { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.fi-name { flex: 1; font-size: 0.93rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-meta { font-size: 0.82rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.storage { margin-top: 18px; }
.storage-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.storage-bar span { display: block; height: 100%; background: var(--brand-grad); border-radius: 999px; }
.storage-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.storage-meta a { color: var(--brand-2); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: var(--transition);
}
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-2); margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.proof { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; opacity: 0.7; }
.proof span { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px;
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 10px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price-card .plan { font-weight: 700; font-size: 1.1rem; }
.price-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; }
.price-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--faint); }
.price-card .desc { color: var(--muted); font-size: 0.92rem; min-height: 40px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--text); }
.price-card li svg { flex-shrink: 0; color: var(--brand-2); margin-top: 3px; }

.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 24px; position: relative; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.auth-card {
  position: relative; width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--shadow);
}
.auth-card .brand { justify-content: center; margin-bottom: 8px; font-size: 1.2rem; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg-soft);
  border: 1px solid var(--border); color: var(--text); font-size: 0.97rem; transition: var(--transition);
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input.has-error { border-color: #ef4444; }
.field-hint { font-size: 0.8rem; color: var(--faint); margin-top: 6px; }
.form-alert {
  display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 11px;
  background: color-mix(in srgb, #ef4444 12%, transparent); border: 1px solid color-mix(in srgb, #ef4444 40%, transparent);
  color: #fca5a5; font-size: 0.9rem; margin-bottom: 18px;
}
.form-alert.show { display: flex; }
.form-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 22px; }
.auth-foot a { color: var(--brand-2); font-weight: 600; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px;
  background: rgba(4, 8, 20, 0.66); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: grid; }
.modal {
  width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); text-align: center;
}
.modal .ic { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-2); }
.modal h3 { font-size: 1.25rem; }
.modal p { color: var(--muted); font-size: 0.95rem; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 2.1rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--faint); font-size: 0.88rem; margin-bottom: 30px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; margin-bottom: 14px; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.cta-band {
  background: var(--brand-grad); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 2rem; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 54ch; margin: 0 auto 26px; }
.cta-band .btn-soft { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-soft:hover { background: rgba(255,255,255,0.26); }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 30ch; margin-top: 12px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.86rem; flex-wrap: wrap; }

.error-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; }

.hidden { display: none !important; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px;
  }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
