:root {
  color-scheme: dark;
  --bg: #071019;
  --bg-soft: #0b1722;
  --panel: rgba(17, 33, 46, .78);
  --panel-solid: #10212e;
  --line: rgba(153, 211, 235, .15);
  --text: #eef9ff;
  --muted: #91a9b7;
  --cyan: #65e7ef;
  --blue: #7097ff;
  --lime: #a8f0cf;
  --danger: #ff8d9b;
  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 2%, rgba(59, 169, 197, .16), transparent 34rem),
    radial-gradient(circle at 10% 32%, rgba(72, 91, 210, .12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(101, 231, 239, .58); outline-offset: 3px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 16, 25, .72);
  border-bottom: 1px solid rgba(153, 211, 235, .1);
  backdrop-filter: blur(18px);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.03em; font-size: 1.08rem; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(101, 231, 239, .48); border-radius: 10px; color: var(--cyan); box-shadow: inset 0 0 20px rgba(101, 231, 239, .08); }
.brand-mark svg { width: 19px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 610; padding: 9px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.055); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-weight: 710; letter-spacing: -.01em; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--cyan); color: #042128; box-shadow: 0 11px 34px rgba(101, 231, 239, .17); }
.button-primary:hover { background: #8cedf2; }
.button-secondary { background: rgba(255,255,255,.045); border-color: var(--line); color: var(--text); }
.button-secondary:hover { border-color: rgba(101, 231, 239, .38); background: rgba(255,255,255,.075); }
.button-danger { background: rgba(255,141,155,.08); border-color: rgba(255,141,155,.25); color: #ffbec6; }
.button-small { min-height: 38px; padding: 0 13px; border-radius: 11px; font-size: .88rem; }

main { flex: 1; }
.hero { padding: 92px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--cyan); font-size: .78rem; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 760px; font-size: clamp(3rem, 6.4vw, 6.2rem); font-weight: 760; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 730; }
h3 { font-size: 1.25rem; font-weight: 700; }
.gradient-word { color: transparent; background: linear-gradient(110deg, #eef9ff 4%, var(--cyan) 56%, #83a4ff); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 650px; margin: 26px 0 30px; color: #adc0cb; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: .88rem; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line span::before { content: ""; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 14px var(--lime); }

.vault-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(101, 231, 239, .12); border-radius: 50%; }
.orbit-one { width: 430px; aspect-ratio: 1; }
.orbit-two { width: 310px; aspect-ratio: 1; border-color: rgba(112,151,255,.16); transform: rotate(16deg); }
.vault-card { position: relative; z-index: 1; width: min(100%, 390px); padding: 24px; background: linear-gradient(145deg, rgba(20,43,57,.94), rgba(10,24,35,.9)); border: 1px solid rgba(101,231,239,.2); border-radius: 28px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.vault-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.vault-label { color: var(--muted); font-size: .82rem; }
.local-pill { padding: 6px 9px; background: rgba(168,240,207,.08); border: 1px solid rgba(168,240,207,.24); color: var(--lime); border-radius: 999px; font-size: .74rem; font-weight: 700; }
.storage-ring { width: 128px; aspect-ratio: 1; margin: 8px auto 26px; display: grid; place-items: center; background: conic-gradient(var(--cyan) 0 46%, rgba(255,255,255,.07) 46%); border-radius: 50%; }
.storage-ring::before { content: ""; position: absolute; width: 96px; aspect-ratio: 1; background: var(--panel-solid); border-radius: 50%; }
.storage-ring strong { position: relative; font-size: 1.38rem; }
.file-row-mini { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.file-icon-mini { width: 38px; aspect-ratio: 1; display: grid; place-items: center; background: rgba(112,151,255,.09); color: #9db5ff; border-radius: 11px; }
.file-meta-mini strong { display: block; font-size: .9rem; }
.file-meta-mini span, .file-size-mini { color: var(--muted); font-size: .75rem; }

.section { padding: 90px 0; }
.section-tight { padding: 58px 0; }
.section-head { display: flex; justify-content: space-between; gap: 34px; align-items: end; margin-bottom: 42px; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 252px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card:nth-child(2) { transform: translateY(20px); }
.feature-no { color: var(--cyan); font-size: .77rem; font-weight: 780; letter-spacing: .12em; }
.feature-card h3 { margin: 46px 0 12px; }
.feature-card p { margin: 0; color: var(--muted); }
.manifesto { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; padding: 52px; background: linear-gradient(120deg, rgba(112,151,255,.1), rgba(101,231,239,.045)); border: 1px solid var(--line); border-radius: 30px; }
.manifesto p { margin: 0; color: #bfd0d9; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 25px; background: rgba(255,255,255,.025); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.2rem; margin-bottom: 3px; }
.stat span { color: var(--muted); font-size: .88rem; }

.page-hero { padding: 70px 0 40px; }
.page-hero h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.page-hero p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.content-grid { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.side-nav { position: sticky; top: 100px; padding: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 16px; }
.side-nav a { display: block; padding: 8px 10px; color: var(--muted); border-radius: 8px; }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.prose { max-width: 820px; }
.prose section { scroll-margin-top: 110px; padding-bottom: 46px; }
.prose h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: #afc1cc; }
.prose ul, .prose ol { padding-left: 20px; }
.notice { padding: 18px 20px; background: rgba(101,231,239,.055); border: 1px solid rgba(101,231,239,.18); border-radius: 14px; color: #c8e7ea; }
.code-line { display: block; padding: 14px 16px; background: #050b11; border: 1px solid var(--line); border-radius: 12px; color: #b7e9ec; overflow-x: auto; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.price-card.featured { border-color: rgba(101,231,239,.36); background: linear-gradient(160deg, rgba(101,231,239,.08), var(--panel)); transform: translateY(-10px); }
.price { margin: 24px 0 4px; font-size: 2.6rem; font-weight: 760; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: .88rem; font-weight: 500; }
.price-card ul { min-height: 150px; padding-left: 18px; color: var(--muted); }

.status-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.status-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.status-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(168,240,207,.65); }
.service-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.service-row span:last-child { color: var(--lime); font-size: .88rem; font-weight: 700; }

.workspace-wrap { padding: 42px 0 20px; }
.workspace-top { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 24px; }
.workspace-title p { margin: 8px 0 0; color: var(--muted); }
.workspace-title h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.capacity-card { min-width: 290px; padding: 17px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.capacity-line { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .82rem; }
.capacity-line strong { color: var(--text); }
.meter { height: 7px; margin-top: 11px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.meter-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; transition: width .25s ease; }

.workspace-panel { overflow: hidden; background: rgba(10,24,35,.82); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 28px 80px rgba(0,0,0,.2); }
.workspace-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px; border-bottom: 1px solid var(--line); }
.toolbar-group { display: flex; flex-wrap: wrap; gap: 9px; }
.search-box { min-width: 230px; height: 40px; padding: 0 13px; color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 11px; }
.search-box::placeholder { color: #6f8795; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 50px; padding: 10px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.breadcrumb-button { padding: 5px 7px; color: var(--muted); background: none; border: 0; border-radius: 7px; cursor: pointer; }
.breadcrumb-button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.breadcrumb-sep { color: #526977; }

.drop-zone { margin: 16px; min-height: 390px; border: 1px dashed rgba(101,231,239,.16); border-radius: 17px; transition: border-color .18s ease, background .18s ease; }
.drop-zone.is-dragging { border-color: var(--cyan); background: rgba(101,231,239,.035); }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th { padding: 12px 15px; color: #718a98; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.file-table td { padding: 13px 15px; border-top: 1px solid rgba(153,211,235,.1); vertical-align: middle; }
.file-table th:nth-child(2), .file-table td:nth-child(2), .file-table th:nth-child(3), .file-table td:nth-child(3) { width: 150px; }
.file-table th:last-child, .file-table td:last-child { width: 115px; text-align: right; }
.item-name { width: 100%; display: inline-flex; align-items: center; gap: 12px; color: var(--text); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.item-name:hover strong { color: var(--cyan); }
.item-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--cyan); background: rgba(101,231,239,.07); border: 1px solid rgba(101,231,239,.11); border-radius: 11px; font-size: .75rem; font-weight: 780; }
.item-icon.folder { color: #9cb4ff; background: rgba(112,151,255,.08); border-color: rgba(112,151,255,.14); }
.item-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; }
.item-meta { color: var(--muted); font-size: .84rem; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line); }
.icon-button.danger:hover { color: var(--danger); border-color: rgba(255,141,155,.23); }
.empty-state { min-height: 350px; display: grid; place-items: center; padding: 34px; text-align: center; }
.empty-state-inner { max-width: 420px; }
.empty-symbol { width: 74px; height: 74px; margin: 0 auto 20px; display: grid; place-items: center; background: rgba(101,231,239,.055); border: 1px solid rgba(101,231,239,.16); border-radius: 22px; color: var(--cyan); font-size: 1.65rem; }
.empty-state p { margin: 9px 0 20px; color: var(--muted); }
.workspace-footnote { margin: 16px 4px 0; color: #6f8795; font-size: .8rem; }
.dialog { width: min(calc(100% - 28px), 430px); padding: 0; color: var(--text); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(5px); }
.dialog-body { padding: 25px; }
.dialog-body p { color: var(--muted); }
.dialog-input { width: 100%; height: 46px; padding: 0 13px; color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(390px, calc(100% - 44px)); padding: 13px 16px; background: #d9fbfd; color: #062027; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 650; transform: translateY(130%); opacity: 0; transition: .22s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #ffd8dd; color: #3c0c13; }

.site-footer { margin-top: 60px; padding: 42px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; }
.footer-note { max-width: 430px; margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: #6e8796; font-size: .8rem; }

@media (max-width: 920px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .vault-visual { min-height: 390px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(2), .price-card.featured { transform: none; }
  .manifesto, .content-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; }
  .nav-links { display: none; position: absolute; top: 76px; left: 20px; right: 20px; padding: 12px; flex-direction: column; align-items: stretch; background: #0b1722; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .desktop-cta { display: none; }
  .workspace-top { display: block; }
  .capacity-card { margin-top: 18px; min-width: 0; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 48px 0 42px; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 16px; }
  .vault-visual { min-height: 330px; }
  .orbit-one { width: 330px; }
  .orbit-two { width: 250px; }
  .vault-card { width: 92%; padding: 20px; }
  .manifesto { padding: 28px; gap: 24px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .workspace-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; min-width: 0; }
  .drop-zone { margin: 9px; min-height: 330px; overflow-x: auto; }
  .file-table { min-width: 0; table-layout: fixed; }
  .file-table th:last-child, .file-table td:last-child { width: 78px; }
  .file-table th:nth-child(3), .file-table td:nth-child(3) { display: none; }
  .file-table th:nth-child(2), .file-table td:nth-child(2) { display: none; }
}

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