/* ============================================================
   Vault — лендінг fileshares.cc
   Токени, кольори й тіні взяті напряму з брифу дизайну.
   ============================================================ */

:root {
  /* світла тема */
  --bg: #F4F4F6;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --border: #E9E9ED;
  --border-2: #DEDEE3;
  --text: #191920;
  --text-2: #6A6A77;
  --text-3: #9C9CA8;
  --accent: #5B5BD6;
  --accent-hover: #4F4FCC;
  --accent-soft: #ECECFB;
  --success: #1F9E5A;

  /* темна секція (для команд) */
  --dark-bg: #0B0B0E;
  --dark-text: #F3F3F6;
  --dark-text-2: #9A9AA6;
  --dark-border: #27272E;
  --dark-accent: #8B8BF5;
  --dark-soft: #22223C;

  /* tier-акценти */
  --tier-basic: #6A6A77;
  --tier-plus: #5B5BD6;
  --tier-pro: #9B5BE0;
  --tier-pro-hover: #8A4FD0;
  --tier-business: #1F8A5B;

  /* тіні */
  --shadow: 0 1px 2px rgba(20, 20, 35, .05), 0 6px 22px rgba(20, 20, 35, .06);
  --shadow-lg: 0 4px 12px rgba(20, 20, 35, .07), 0 18px 50px rgba(20, 20, 35, .12);

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--text); }
a { text-decoration: none; color: inherit; }
.mono { font-family: 'JetBrains Mono', monospace; }

@keyframes vfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes vrise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.page { min-height: 100vh; background: var(--bg); overflow-x: hidden; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(244, 244, 246, .82);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, #6E6EE6, #5B5BD6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(91, 91, 214, .32);
}
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__login {
  font-size: 14.5px; font-weight: 500; color: var(--text);
  padding: 9px 14px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav__login:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- Language switcher ---------- */
.langswitch { position: relative; }
.langswitch__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 8px 10px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.langswitch__btn:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.langswitch__current { line-height: 1; }
.langswitch__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 168px; padding: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 20, 35, .14);
  display: none; flex-direction: column; gap: 2px;
}
.langswitch__menu.is-open { display: flex; }
.langswitch__menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: background .12s, color .12s;
}
.langswitch__menu a:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn--primary {
  font-size: 14.5px; font-weight: 600; color: #fff; background: var(--accent);
  padding: 10px 18px; border-radius: 9px;
  box-shadow: 0 1px 2px rgba(20, 20, 35, .05), 0 6px 22px rgba(91, 91, 214, .28);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--hero-primary {
  font-size: 15.5px; font-weight: 600; color: #fff; background: var(--accent);
  padding: 14px 26px; border-radius: 11px;
  box-shadow: 0 1px 2px rgba(20, 20, 35, .06), 0 10px 30px rgba(91, 91, 214, .32);
}
.btn--hero-primary:hover { background: var(--accent-hover); }
.btn--hero-secondary {
  font-size: 15.5px; font-weight: 600; color: var(--text); background: var(--surface);
  padding: 14px 24px; border-radius: 11px; border: 1px solid var(--border-2);
  box-shadow: 0 1px 2px rgba(20, 20, 35, .05);
}
.btn--hero-secondary:hover { border-color: var(--text-3); }

/* ---------- HERO ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 84px 28px 40px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 9px;
  border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-2);
  box-shadow: 0 1px 2px rgba(20, 20, 35, .05);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(31, 158, 90, .16); }
.hero__title {
  margin: 26px auto 0; max-width: 840px; font-size: 64px; line-height: 1.04;
  font-weight: 700; letter-spacing: -.035em; text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }
.hero__sub { margin: 24px auto 0; max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.hero__cta { margin-top: 34px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero__micro { margin-top: 11px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-3); }

/* product window */
.shot { position: relative; margin: 60px auto 0; max-width: 1000px; }
.shot__glow {
  position: absolute; inset: -8% 10% auto; height: 280px;
  background: radial-gradient(60% 100% at 50% 0, rgba(91, 91, 214, .20), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.window {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(20, 20, 35, .08), 0 30px 80px rgba(20, 20, 35, .18);
}
.window__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.window__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.window__url { margin: 0 auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-3); }
.window img { display: block; width: 100%; height: auto; }

.chip {
  position: absolute; z-index: 2; right: -14px; bottom: 46px;
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 4px 12px rgba(20, 20, 35, .07), 0 18px 50px rgba(20, 20, 35, .14);
  animation: vfloat 6s ease-in-out infinite;
}
.chip__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.chip__title { font-size: 13px; font-weight: 600; line-height: 1.2; }
.chip__meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-3); }

/* ---------- TRUST BAR ---------- */
.trust { max-width: var(--maxw); margin: 8px auto 0; padding: 24px 28px; }
.trust__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 40px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-2);
}
.trust__label { color: var(--text-3); font-size: 11px; letter-spacing: .08em; }
.trust__item { display: flex; align-items: center; gap: 8px; }
.trust__item .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- STATS ---------- */
.stats { max-width: var(--maxw); margin: 18px auto 0; padding: 0 28px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 22px; text-align: center; }
.stat__num { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.stat__label { margin-top: 5px; font-size: 13.5px; color: var(--text-3); }

/* ---------- section heads ---------- */
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: .06em; margin-bottom: 14px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head h2 { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.section-head p { margin: 16px auto 0; font-size: 17px; color: var(--text-2); line-height: 1.55; text-wrap: pretty; }

/* ---------- FEATURES ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: 78px 28px 30px; }
.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  box-shadow: 0 1px 2px rgba(20, 20, 35, .05), 0 6px 22px rgba(20, 20, 35, .04);
  transition: border-color .15s, box-shadow .15s;
}
.feature:hover { border-color: var(--border-2); box-shadow: 0 4px 12px rgba(20, 20, 35, .07), 0 18px 50px rgba(20, 20, 35, .10); }
.feature__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { font-size: 15px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ---------- split sections ---------- */
.split { max-width: var(--maxw); margin: 0 auto; padding: 70px 28px; }
.split__grid { display: grid; gap: 56px; align-items: center; }
.split--sharing .split__grid { grid-template-columns: 1fr 1.08fr; }
.split--preview { padding: 40px 28px 70px; }
.split--preview .split__grid { grid-template-columns: 1.08fr 1fr; }
.split h2 { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.split > .split__grid > div > p,
.split__text p { margin: 18px 0 26px; font-size: 17px; color: var(--text-2); line-height: 1.55; text-wrap: pretty; }
.checklist { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 13px; align-items: flex-start; }
.check__mark {
  margin-top: 1px; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft);
  flex: none; display: flex; align-items: center; justify-content: center;
}
.check b { font-weight: 600; }
.check span { color: var(--text-2); }

.media { position: relative; }
.media__glow {
  position: absolute; inset: 8% 0 auto; height: 200px;
  background: radial-gradient(60% 100% at 60% 30%, rgba(91, 91, 214, .16), transparent 70%); filter: blur(6px);
}
.media__frame {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(20, 20, 35, .07), 0 18px 50px rgba(20, 20, 35, .12);
}
.media__frame img { display: block; width: 100%; height: auto; }

/* ---------- TEAMS (dark) ---------- */
.teams { background: var(--dark-bg); color: var(--dark-text); }
.teams__inner { max-width: var(--maxw); margin: 0 auto; padding: 78px 28px; }
.teams__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.teams .eyebrow { color: var(--dark-accent); }
.teams h2 { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.teams p.lead { margin: 18px 0 26px; font-size: 17px; color: var(--dark-text-2); line-height: 1.55; text-wrap: pretty; }
.teams .checklist { gap: 13px; }
.teams .check__mark { background: var(--dark-soft); }
.teams .check span { color: var(--dark-text-2); }
.teams .media__frame { border-color: var(--dark-border); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* ---------- PRICING ---------- */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px 40px; }
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 38px; }
.billing__label { font-size: 14.5px; font-weight: 500; color: var(--text-3); transition: color .2s; }
.billing__label--active { color: var(--text); }
.toggle {
  position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--border); cursor: pointer; padding: 0; transition: background .2s;
}
.toggle.is-on { background: var(--accent); }
.toggle__knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(20, 20, 35, .25); transition: left .2s;
}
.toggle.is-on .toggle__knob { left: 23px; }
.billing__save {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--success);
  background: #E6F5ED; border: 1px solid #BDE5CF; padding: 3px 9px; border-radius: 999px;
}

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  box-shadow: 0 1px 2px rgba(20, 20, 35, .05), 0 6px 22px rgba(20, 20, 35, .04);
}
.plan--popular {
  border: 1.5px solid var(--tier-pro);
  box-shadow: 0 6px 20px rgba(155, 91, 224, .16), 0 24px 60px rgba(155, 91, 224, .16);
}
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--tier-pro); padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(155, 91, 224, .4); white-space: nowrap;
}
.plan__head { display: flex; align-items: center; gap: 9px; }
.plan__dot { width: 9px; height: 9px; border-radius: 3px; }
.plan__name { font-size: 16px; font-weight: 600; }
.plan__meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.plan__price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan__price .amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.plan__price .per { font-size: 15px; color: var(--text-2); font-weight: 500; }
.plan__note { font-size: 13px; color: var(--text-3); min-height: 18px; }
.plan__cta {
  margin: 22px 0 24px; text-align: center; font-size: 14.5px; font-weight: 600;
  padding: 11px; border-radius: 10px; transition: background .15s, border-color .15s;
}
.plan__cta--outline { color: var(--text); background: var(--surface); border: 1px solid var(--border-2); }
.plan__cta--outline:hover { border-color: var(--text-3); }
.plan__cta--pro {
  color: #fff; background: var(--tier-pro);
  box-shadow: 0 1px 2px rgba(20, 20, 35, .05), 0 8px 20px rgba(155, 91, 224, .32);
}
.plan__cta--pro:hover { background: var(--tier-pro-hover); }
.plan__features { display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--text-2); }
.plan__features span { display: flex; gap: 10px; align-items: flex-start; }
.plan__features svg { margin-top: 2px; flex: none; }

.perks {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 28px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-2);
}
.perks span { display: flex; align-items: center; gap: 8px; }
.perks .d { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ---------- GET STARTED ---------- */
.start { max-width: var(--maxw); margin: 0 auto; padding: 84px 28px 30px; }
.start__head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.start__head h2 { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.start__head p { margin: 16px auto 0; font-size: 17px; color: var(--text-2); line-height: 1.55; text-wrap: pretty; }
.tabs { display: flex; justify-content: center; margin-bottom: 26px; }
.tabs__group { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 20, 35, .05); }
.tab {
  font-family: 'Onest', sans-serif; font-size: 14.5px; font-weight: 600; padding: 9px 22px;
  border: none; border-radius: 9px; cursor: pointer; transition: all .15s; background: transparent; color: var(--text-2);
}
.tab.is-active { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(20, 20, 35, .06), 0 4px 12px rgba(91, 91, 214, .28); }
.start__shot { position: relative; max-width: 1040px; margin: 0 auto; }
.start__glow {
  position: absolute; inset: -6% 8% auto; height: 230px;
  background: radial-gradient(60% 100% at 50% 0, rgba(91, 91, 214, .16), transparent 70%); filter: blur(10px); z-index: 0;
}
.start__window {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(20, 20, 35, .08), 0 30px 80px rgba(20, 20, 35, .16);
}

/* ---------- FINAL CTA ---------- */
.final { max-width: var(--maxw); margin: 50px auto 0; padding: 0 28px; }
.final__card {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(135deg, #5B5BD6, #7B4FD8);
  padding: 64px 40px; text-align: center; box-shadow: 0 20px 60px rgba(91, 91, 214, .3);
}
.final__card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -20%, rgba(255, 255, 255, .18), transparent 60%); pointer-events: none;
}
.final h2 { position: relative; font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; color: #fff; text-wrap: balance; }
.final p { position: relative; margin: 16px auto 0; max-width: 480px; font-size: 17.5px; color: rgba(255, 255, 255, .85); line-height: 1.55; }
.final__cta { position: relative; margin-top: 30px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.btn--final-light { font-size: 15.5px; font-weight: 600; color: var(--accent); background: #fff; padding: 14px 28px; border-radius: 11px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn--final-light:hover { background: var(--surface-2); }
.btn--final-ghost { font-size: 15.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); padding: 14px 26px; border-radius: 11px; }
.btn--final-ghost:hover { background: rgba(255, 255, 255, .22); }

/* ---------- FOOTER ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 48px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer__logo { display: flex; align-items: center; gap: 11px; }
.footer__logo .brand__logo { width: 32px; height: 32px; box-shadow: none; }
.footer__about { margin: 16px 0 0; max-width: 280px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.footer__infra { margin-top: 18px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text-3); }
.footer__col-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.footer__made { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 980px) {
  .hero__title { font-size: 52px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--popular { order: -1; }
  .split--sharing .split__grid,
  .split--preview .split__grid,
  .teams__grid { grid-template-columns: 1fr; gap: 36px; }
  .split--preview .media { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero__title { font-size: 40px; }
  .hero__sub { font-size: 17px; }
  .section-head h2, .start__head h2, .pricing .section-head h2 { font-size: 30px; }
  .split h2, .teams h2 { font-size: 28px; }
  .final h2 { font-size: 30px; }
  .final__card { padding: 44px 24px; }
  .chip { right: 0; bottom: 12px; transform: scale(.92); }
}

@media (max-width: 480px) {
  .wrap, .nav__inner, .hero, .trust, .stats, .features, .split, .teams__inner, .pricing, .start, .final, .footer { padding-left: 18px; padding-right: 18px; }
  .stats__grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 34px; }
}
