:root {
  --ink: #162033;
  --muted: #6d7687;
  --line: #e4e8ef;
  --panel: #ffffff;
  --soft: #f4f6fa;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --danger: #c2414c;
  --shadow: 0 18px 55px rgba(22, 32, 51, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8f9fc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brandMark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: linear-gradient(145deg, #655df2, #4338ca); box-shadow: 0 8px 20px rgba(79, 70, 229, .25); }
.button { border: 0; border-radius: 12px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.primary { color: white; background: var(--primary); box-shadow: 0 8px 20px rgba(79, 70, 229, .22); }
.button.primary:hover { background: var(--primary-dark); }
.button.ghost { border: 1px solid var(--line); background: white; }
.button.large { padding: 13px 20px; border-radius: 14px; }
.button.full { width: 100%; }
.eyebrow { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--primary); background: #eeedff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.notice { padding: 11px 13px; border: 1px solid #d9dcff; border-radius: 10px; color: #39318d; background: #f3f2ff; font-size: 14px; }
.notice.danger { color: #9c2f39; border-color: #f1cbd0; background: #fff1f3; }
.notice.inline { margin: 0 30px 12px; display: flex; justify-content: space-between; align-items: center; }
.notice.inline button { border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.spinner { width: 28px; height: 28px; border: 3px solid #dddff2; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Landing */
.landing { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 70% 10%, #efedff 0, transparent 30%), #fbfbfd; }
.landingNav { max-width: 1180px; margin: auto; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; }
.hero { max-width: 1180px; margin: 35px auto 80px; padding: 0 26px; display: grid; grid-template-columns: 1fr 1.06fr; gap: 64px; align-items: center; }
.heroCopy h1 { margin: 18px 0; max-width: 620px; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.heroCopy h1 em { color: var(--primary); font-style: normal; }
.heroCopy > p { max-width: 580px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.heroActions { margin-top: 28px; display: flex; gap: 12px; }
.trustRow { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; color: #586174; font-size: 13px; font-weight: 700; }
.heroVisual { perspective: 1200px; }
.mockWindow { border: 1px solid rgba(255,255,255,.75); border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 40px 90px rgba(45, 43, 100, .2); transform: rotateY(-5deg) rotateX(2deg); }
.mockTop { height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #f1f2f6; }
.mockTop i { width: 9px; height: 9px; border-radius: 50%; background: #c8ccd5; }
.mockTop span { margin-left: 16px; color: #888f9d; font-size: 11px; }
.mockBody { min-height: 390px; display: grid; grid-template-columns: 150px 1fr; }
.mockSidebar { padding: 22px 13px; display: flex; flex-direction: column; gap: 17px; color: #697284; background: #fafbfc; font-size: 11px; }
.mockSidebar b { margin-bottom: 10px; color: var(--ink); font-size: 14px; }
.mockMain { padding: 22px; }
.mockHeader { display: flex; align-items: center; justify-content: space-between; }
.mockHeader button { border: 0; border-radius: 8px; padding: 7px 9px; color: white; background: var(--primary); font-size: 10px; }
.mockGrid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.mockGrid article { min-height: 115px; padding: 18px; border: 1px solid #e5e7ed; border-radius: 13px; display: flex; flex-direction: column; justify-content: space-between; font-size: 25px; }
.mockGrid b { max-width: 130px; overflow: hidden; color: #4e5665; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.featureSection { max-width: 1120px; margin: 0 auto 80px; padding: 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.featureSection article { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); }
.featureSection article > span { color: var(--primary); font-size: 12px; font-weight: 900; }
.featureSection h3 { margin: 20px 0 8px; }
.featureSection p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Auth and public pages */
.authPage { min-height: 100vh; padding: 35px; display: grid; place-items: center; background: radial-gradient(circle at 15% 20%, #e6e4ff 0, transparent 28%), radial-gradient(circle at 90% 90%, #eef0ff 0, transparent 25%), #f9f9fc; }
.authBrand { position: absolute; left: 35px; top: 28px; }
.authCard, .shareCard, .statusCard { width: min(440px, 100%); padding: 36px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.authIntro h1 { margin: 16px 0 8px; letter-spacing: -.035em; }
.authIntro p { margin: 0 0 23px; color: var(--muted); line-height: 1.55; }
.authForm { display: grid; gap: 15px; }
.authForm label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.authForm input, .shareCard input { width: 100%; padding: 12px 13px; border: 1px solid #dfe3ea; border-radius: 11px; outline: none; background: white; }
.authForm input:focus, .shareCard input:focus { border-color: #948ff4; box-shadow: 0 0 0 3px #eeedff; }
.textButton { width: 100%; margin-top: 18px; border: 0; color: var(--primary); background: transparent; cursor: pointer; font-weight: 700; }
.centerPage, .sharePage { min-height: 100vh; padding: 25px; display: grid; place-items: center; text-align: center; background: #f7f8fb; }
.statusCard p, .shareCard p { color: var(--muted); line-height: 1.55; }
.statusIcon, .shareFileIcon { font-size: 54px; }
.shareCard .brand { justify-content: center; margin-bottom: 30px; }
.shareCard form { margin-top: 20px; display: grid; gap: 12px; }
.shareCard small { color: var(--muted); }

/* Application */
.appShell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #f6f7fa; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: white; }
.sidebar .brand { padding: 0 8px 22px; }
.uploadMain { margin-bottom: 22px; }
.sideNav { display: grid; gap: 4px; }
.sideNav button { width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; display: flex; align-items: center; gap: 10px; color: #5c6677; background: transparent; cursor: pointer; text-align: left; }
.sideNav button:hover, .sideNav button.active { color: #312e81; background: #f0efff; }
.sideNav button:disabled { opacity: .55; cursor: default; }
.teamBox { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.teamBox label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.teamBox select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.teamActions { margin-top: 8px; display: flex; gap: 7px; }
.teamActions button { flex: 1; padding: 7px 5px; border: 1px solid var(--line); border-radius: 8px; color: #596276; background: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.storage { margin-top: 21px; }
.storage > div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.storageBar { height: 6px; margin: 9px 0 7px; overflow: hidden; border-radius: 99px; background: #eceef3; }
.storageBar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.storage small { color: var(--muted); font-size: 10px; }
.account { margin-top: auto; padding: 10px 8px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 10px; background: transparent; cursor: pointer; text-align: left; }
.account:hover { background: var(--soft); }
.account > span { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: white; background: #7177a0; font-weight: 800; }
.account div { min-width: 0; display: grid; }
.account b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account small { color: var(--muted); font-size: 10px; }
.workspace { min-width: 0; min-height: 100vh; }
.topbar { height: 72px; padding: 13px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); }
.searchBox { width: min(560px, 65%); height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--muted); background: #f8f9fb; }
.searchBox input { width: 100%; border: 0; outline: 0; background: transparent; }
.viewSwitch { padding: 3px; border: 1px solid var(--line); border-radius: 9px; display: flex; background: white; }
.viewSwitch button { width: 31px; height: 29px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.viewSwitch button.active { color: var(--primary); background: #eeedff; }
.contentHead { padding: 24px 30px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 18px; font-weight: 800; }
.breadcrumbs button { border: 0; padding: 0; background: transparent; cursor: pointer; font-weight: inherit; }
.breadcrumbs span { color: #969dac; }
.breadcrumbs span button { max-width: 220px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.contentActions { display: flex; gap: 8px; }
.emptyState { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.emptyState > div:first-child:not(.spinner) { font-size: 58px; filter: grayscale(.15); }
.emptyState h2 { margin: 15px 0 5px; color: var(--ink); }
.emptyState p { margin: 0 0 18px; }
.fileGrid { padding: 0 30px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.fileCard { min-width: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; transition: .18s ease; }
.fileCard:hover { border-color: #cbc9f7; box-shadow: 0 10px 25px rgba(42, 48, 74, .07); transform: translateY(-1px); }
.cardMain { width: 100%; min-height: 145px; padding: 20px; border: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background: transparent; cursor: pointer; text-align: left; }
.bigIcon { font-size: 42px; }
.cardMain div { width: 100%; min-width: 0; display: grid; gap: 5px; }
.cardMain b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cardMain small { color: var(--muted); font-size: 10px; }
.cardActions { padding: 7px 8px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 3px; }
.cardActions button { width: 29px; height: 29px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.cardActions button:hover { background: var(--soft); }
.cardActions button:disabled { opacity: .3; cursor: default; }
.cardActions .dangerText:hover { color: var(--danger); background: #fff0f2; }
.folderCard .cardMain { background: linear-gradient(160deg, #fff, #fbfbff); }
.fileList { padding: 0 30px 40px; display: grid; gap: 6px; }
.fileList .fileCard { min-height: 58px; border-radius: 10px; display: flex; align-items: center; }
.fileList .cardMain { min-height: 0; padding: 10px 14px; flex: 1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; }
.fileList .bigIcon { font-size: 27px; }
.fileList .cardActions { border: 0; }
.uploadQueue { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(380px, calc(100vw - 40px)); max-height: 400px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.queueHead { position: sticky; top: 0; padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; background: white; }
.queueHead button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.queueItem { padding: 11px 14px; border-bottom: 1px solid #f0f1f4; }
.queueLine { display: flex; gap: 10px; align-items: center; }
.queueLine > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f0efff; }
.queueLine div { min-width: 0; display: grid; gap: 3px; }
.queueLine b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.queueLine small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #eceef3; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .2s linear; }
.dropOverlay { position: fixed; inset: 0; z-index: 100; padding: 30px; display: grid; place-items: center; background: rgba(40, 39, 89, .35); backdrop-filter: blur(4px); }
.dropOverlay div { width: min(540px, 100%); height: 280px; border: 3px dashed #8e89f1; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #332e92; background: rgba(255,255,255,.95); font-size: 42px; }
.dropOverlay strong { font-size: 22px; }
.dropOverlay span { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .heroVisual { max-width: 650px; }
  .featureSection { grid-template-columns: 1fr; }
  .appShell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding: 18px 10px; align-items: center; }
  .sidebar .brand { padding: 0 0 18px; font-size: 0; }
  .uploadMain { width: 44px; height: 44px; padding: 0; font-size: 0; }
  .uploadMain::after { content: "+"; font-size: 25px; }
  .sideNav button { width: 44px; justify-content: center; font-size: 0; }
  .sideNav button::first-letter { font-size: 16px; }
  .teamBox, .storage { display: none; }
  .account div { display: none; }
  .contentHead, .topbar { padding-left: 18px; padding-right: 18px; }
  .fileGrid, .fileList { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 620px) {
  .landingNav, .hero, .featureSection { padding-left: 18px; padding-right: 18px; }
  .hero { margin-top: 15px; gap: 35px; }
  .heroCopy h1 { font-size: 42px; }
  .heroActions { flex-direction: column; }
  .mockBody { grid-template-columns: 95px 1fr; }
  .mockSidebar { padding: 15px 8px; }
  .mockGrid { grid-template-columns: 1fr; }
  .mockGrid article:nth-child(n+3) { display: none; }
  .authPage { padding: 75px 18px 25px; }
  .authBrand { left: 20px; top: 18px; }
  .authCard, .shareCard, .statusCard { padding: 25px; }
  .appShell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 62px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); flex-direction: row; justify-content: space-around; }
  .sidebar .brand, .teamBox, .storage, .account, .uploadMain { display: none; }
  .sideNav { width: 100%; display: flex; justify-content: space-around; }
  .sideNav button { width: auto; padding: 9px 14px; }
  .workspace { padding-bottom: 70px; }
  .topbar { height: 63px; }
  .searchBox { width: calc(100% - 78px); }
  .contentHead { align-items: flex-start; }
  .contentActions .ghost { display: none; }
  .breadcrumbs { font-size: 15px; }
  .fileGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cardMain { min-height: 130px; padding: 14px; }
  .contentActions .button { padding: 9px 11px; font-size: 12px; }
}
