/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #6C63FF;
  --accent-dark: #5549e8;
  --accent-light: #ede9ff;
  --bg: #0d0d14;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #7878a0;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn--ghost:hover { color: var(--text); }

.btn--lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn--full { width: 100%; }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav__links a:not(.btn) {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:not(.btn):hover { color: var(--text); text-decoration: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.nav__mobile a {
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 60% 40%, rgba(108,99,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(108,99,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Mockup ───────────────────────────────────── */
.mockup {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(108,99,255,0.08);
}

.mockup__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.mockup__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mockup__bar span:nth-child(1) { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #ffbd2e; }
.mockup__bar span:nth-child(3) { background: #28ca41; }

.mockup__body {
  display: flex;
  min-height: 280px;
}

.mockup__sidebar {
  width: 140px;
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: default;
}
.mock-item--active {
  background: var(--accent-light);
  color: var(--accent);
}

.mockup__main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: 0.15s;
}
.mock-file:hover { background: var(--bg3); }

.mock-file__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.mock-file__icon--img { background: #ff6b6b33; }
.mock-file__icon--doc { background: #4ecdc433; }
.mock-file__icon--zip { background: #ffe66d33; }
.mock-file__icon--vid { background: #6c63ff33; }

.mock-file__info { display: flex; flex-direction: column; }
.mock-file__info b { font-size: 12px; font-weight: 600; }
.mock-file__info span { font-size: 11px; color: var(--text-muted); }

.mockup__storage { margin-top: auto; padding: 4px 0; }
.mockup__storage-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.mockup__storage-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.mockup__storage-bar div {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

/* ── Stats ────────────────────────────────────── */
.stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Features ─────────────────────────────────── */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.2s;
}
.feature-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-2px); }

.feature-card__icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Pricing ──────────────────────────────────── */
.pricing {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.plan {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.plan--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(108,99,255,0.08) 0%, var(--bg3) 100%);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.plan__price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.plan__price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }

.plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.plan__features li { font-size: 14px; }
.plan__features li.disabled { color: var(--text-muted); }

.pricing__note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer__brand svg { display: block; }
.footer__brand > span, .footer__brand {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 18px; font-weight: 700;
}
.footer__brand > p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links b { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.footer__links a { font-size: 13px; color: var(--text-muted); }
.footer__links a:hover { color: var(--text); text-decoration: none; }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  z-index: 201;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal__close:hover { background: var(--bg3); color: var(--text); }

.modal__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal__switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── Forms ────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label:not(.checkbox) {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-group input {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }

.form-group--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.form-link {
  font-size: 13px;
  color: var(--accent);
}

.form-error {
  background: rgba(255,70,70,0.1);
  border: 1px solid rgba(255,70,70,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff7070;
  margin-bottom: 14px;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 24px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.open { display: flex; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .modal { padding: 28px 20px; margin: 0 16px; max-width: calc(100vw - 32px); left: 16px; right: 16px; transform: translateY(-48%); top: 50%; }
  .modal.active { transform: translateY(-50%); }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
