:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #1a2233;
  --muted: #6b7689;
  --brand: #2f6bff;
  --brand-dark: #1d4fd6;
  --border: #e3e8f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(31, 45, 80, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { font-size: 24px; }
.logo-text strong { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { font-size: 44px; margin: 0 0 16px; letter-spacing: -0.02em; }
.subtitle { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }

/* Upload box */
.upload-box {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 24px;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.upload-box.dragover { border-color: var(--brand); background: #eef3ff; }
.upload-icon { font-size: 40px; color: var(--brand); }
.upload-title { font-size: 18px; font-weight: 600; margin: 12px 0 4px; }
.upload-hint { color: var(--muted); margin: 0 0 20px; }

.upload-queue { list-style: none; padding: 0; max-width: 620px; margin: 20px auto 0; text-align: left; }
.upload-queue li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.uq-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.uq-name { font-weight: 600; }
.uq-meta { color: var(--muted); }
.progress { height: 6px; background: var(--border); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.uq-link { font-size: 13px; margin-top: 8px; display: block; word-break: break-all; }

/* Features */
.features { padding: 56px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.feature-icon { font-size: 32px; }
.feature h3 { margin: 12px 0 8px; }
.feature p { color: var(--muted); margin: 0; }

/* CTA */
.cta { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0; text-align: center; }
.cta h2 { font-size: 30px; margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

/* Page head */
.page-head { padding: 40px 0 16px; }
.page-head-inner { display: flex; align-items: center; justify-content: space-between; }
.page-head h1 { margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0; }
.storage-bar { height: 8px; background: var(--border); border-radius: 4px; margin-top: 16px; overflow: hidden; }
.storage-bar span { display: block; height: 100%; background: var(--brand); }

/* File table */
.file-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.file-table th, .file-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.file-table th { color: var(--muted); font-weight: 600; background: #fafbfe; }
.file-table tr:last-child td { border-bottom: none; }
.file-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.file-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #eef3ff; font-size: 15px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-public { background: #e6f6ec; color: #1c7a43; }
.badge-private { background: #f0f1f5; color: #5a6478; }

/* Shared cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 8px; }
.share-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.share-card .file-ico { width: 40px; height: 40px; font-size: 20px; }
.share-card h3 { margin: 12px 0 4px; font-size: 16px; word-break: break-all; }
.share-card .from { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-6px); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
.price-card h3 { margin: 0 0 8px; font-size: 20px; }
.price { margin: 0 0 24px; color: var(--muted); }
.price span { font-size: 40px; font-weight: 700; color: var(--ink); }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.price-list li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--border); font-size: 14px; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price-card .btn { width: 100%; }

.faq { max-width: 720px; margin: 56px auto 0; }
.faq h2 { text-align: center; margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h4 { margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--muted); }

/* About */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px auto; text-align: center; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat-num { display: block; font-size: 32px; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); font-size: 14px; }
.prose { max-width: 720px; margin: 48px auto 0; }
.prose h2 { margin-top: 32px; }
.prose p { color: #3b465c; }
.value-list { padding-left: 20px; color: #3b465c; }
.value-list li { margin-bottom: 8px; }
.team { max-width: 860px; margin: 56px auto 0; text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 12px; }
.avatar { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #eef3ff; color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.member h4 { margin: 0 0 2px; font-size: 15px; }
.member p { font-size: 13px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 24px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form textarea { resize: vertical; }
.form-note { color: #1c7a43; font-weight: 600; margin: 16px 0 0; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info-block h4 { margin: 0 0 6px; }
.info-block p { margin: 0; color: var(--muted); }

/* Status */
.status-banner { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #1faa59; }
.dot-warn { background: #e0a106; }
.dot-down { background: #d23f3f; }
.status-list { list-style: none; padding: 0; margin: 8px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.status-list li { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.status-list li:last-child { border-bottom: none; }
.svc { font-weight: 600; }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.uptime-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px auto; text-align: center; }
.uptime { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.uptime-num { display: block; font-size: 30px; font-weight: 700; color: var(--ink); }
.incident { border-left: 3px solid var(--border); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.incident-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.badge-resolved { background: #e6f6ec; color: #1c7a43; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 19px; }
.legal p, .legal li { color: #3b465c; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); }

@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .uptime-row { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
}
