/* ============================================================
   ARISDOC.CLOUD — refined light-neumorphism + glass design system
   Display: Unbounded · UI/Body: Onest · 中文: Smiley Sans (得意黑)
   ============================================================ */
@import url('./fonts/google-fonts.css');

:root {
  /* canvas */
  --bg:        #e6eaf2;
  --bg-deep:   #dde3ee;
  --surface:   #e9edf5;
  --surface-2: #eef2f9;

  /* ink */
  --text:   #15203b;
  --muted:  #62708c;
  --faint:  #8a95ad;

  /* accent — cloud blue → cyan (mono accent, no purple) */
  --accent:    #2f6bff;
  --accent-2:  #20c9ff;
  --accent-ink:#1b49c9;
  --grad:      linear-gradient(135deg, #2f6bff 0%, #20c9ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(47,107,255,.16), rgba(32,201,255,.16));

  /* neumorphic light/shadow pair */
  --sh-dark:  #c4cbda;
  --sh-light: #ffffff;
  --nm:        9px 9px 20px var(--sh-dark), -9px -9px 20px var(--sh-light);
  --nm-sm:     5px 5px 12px var(--sh-dark), -5px -5px 12px var(--sh-light);
  --nm-inset:  inset 5px 5px 11px var(--sh-dark), inset -5px -5px 11px var(--sh-light);
  --nm-press:  inset 3px 3px 7px var(--sh-dark), inset -3px -3px 7px var(--sh-light);

  /* glass */
  --glass:     rgba(255,255,255,.55);
  --glass-brd: rgba(255,255,255,.7);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Onest', system-ui, sans-serif;
  --font-cjk:     'Smiley Sans', 'Onest', system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
}

/* zh: swap whole type system to the unique Chinese display font */
:root[lang="zh"] {
  --font-display: 'Smiley Sans', 'Unbounded', sans-serif;
  --font-body:    'Smiley Sans', 'Onest', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: .002em;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  font-feature-settings: "ss01","cv01";
}
:root[lang="zh"] body { letter-spacing: .02em; }

/* ---- atmospheric background: aurora blobs + grain ---- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.blob.b1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle at 30% 30%, #6fa8ff, transparent 70%); animation: drift1 26s var(--ease) infinite; }
.blob.b2 { width: 40vw; height: 40vw; right: -6vw; top: 4vw;
  background: radial-gradient(circle at 60% 40%, #7af0ff, transparent 70%); opacity: .42; animation: drift2 30s var(--ease) infinite; }
.blob.b3 { width: 36vw; height: 36vw; left: 28vw; bottom: -14vw;
  background: radial-gradient(circle at 50% 50%, #b6c6ff, transparent 70%); opacity: .4; animation: drift1 34s var(--ease) infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(4vw,3vw) scale(1.08)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-3vw,4vw) scale(1.12)} }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---- buttons ---- */
.btn { position: relative; font-family: var(--font-body); font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: var(--r-md);
  color: var(--text); background: var(--surface); box-shadow: var(--nm-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .25s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--nm); }
.btn:active { transform: translateY(0); box-shadow: var(--nm-press); }
.btn--primary { color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px rgba(47,107,255,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover { box-shadow: 0 16px 34px rgba(47,107,255,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { cursor: default; opacity: .9; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading svg { opacity: 0; }
.btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: btnspin .7s linear infinite; }
@keyframes btnspin { to { transform: rotate(360deg); } }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { box-shadow: var(--nm-sm); transform: translateY(-2px); }

/* ---- chips / badges ---- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px;
  background: var(--surface); box-shadow: var(--nm-sm); font-size: 13px; font-weight: 600; color: var(--muted); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(47,107,255,.15); }

/* ---- card / panel ---- */
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--nm); }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-brd); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(20,40,90,.12); }

/* ============================ NAV ============================ */
.nav { position: sticky; top: 0; z-index: 50; padding: 16px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 14px 12px 20px; border-radius: 100px; background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-brd); box-shadow: 0 12px 30px rgba(20,40,90,.10); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800;
  font-size: 19px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(47,107,255,.4), inset 0 1px 0 rgba(255,255,255,.5); flex: 0 0 auto; }
.brand__mark svg { width: 22px; height: 22px; }
.brand b { color: var(--accent-ink); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 14px;
  border-radius: 100px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.6); }
.nav__right { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang { display: flex; padding: 4px; gap: 2px; border-radius: 100px; background: var(--surface); box-shadow: var(--nm-inset); }
.lang button { border: 0; background: transparent; cursor: pointer; font-family: var(--font-body); font-weight: 700;
  font-size: 12.5px; color: var(--faint); padding: 7px 12px; border-radius: 100px; transition: all .25s var(--ease); }
.lang button.active { color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(47,107,255,.4); }

/* ============================ HERO ============================ */
.hero { padding: 60px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 33em; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-weight: 700; font-size: 26px; display: block; letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--faint); font-weight: 600; }

/* hero visual — Drivesphere-like glass dashboard */
.dash { position: relative; padding: 18px; }
.dash__card { padding: 20px; }
.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash__title { font-weight: 700; font-size: 15px; }
.dash__title small { display: block; color: var(--faint); font-weight: 600; font-size: 12px; }
.ring { --p: 68; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), rgba(47,107,255,.14) 0); position: relative; }
.ring::after { content:""; position:absolute; inset:9px; border-radius:50%; background: var(--surface); box-shadow: var(--nm-inset); }
.ring b { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.ring small { position: relative; z-index: 1; font-size: 10px; color: var(--faint); display:block; text-align:center; }
.storage { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--nm-inset); margin-bottom: 14px; }
.storage .meta { flex: 1; }
.storage .bar { height: 8px; border-radius: 100px; background: rgba(47,107,255,.13); margin-top: 9px; overflow: hidden; }
.storage .bar i { display: block; height: 100%; width: 68%; border-radius: 100px; background: var(--grad);
  box-shadow: 0 0 12px rgba(47,107,255,.5); animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { width: 0 } }
.files { display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); box-shadow: var(--nm-sm); transition: transform .25s var(--ease); }
.file:hover { transform: translateX(4px); }
.file__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--grad-soft); color: var(--accent-ink); }
.file__ico svg { width: 19px; height: 19px; }
.file__name { font-weight: 600; font-size: 14px; }
.file__name small { display: block; color: var(--faint); font-weight: 500; font-size: 11.5px; }
.file__size { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dash__float { position: absolute; right: -8px; bottom: 26px; padding: 12px 16px; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 11px; animation: floaty 4.5s var(--ease) infinite; }
.dash__float .av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color:#fff; }
.dash__float .av svg { width: 15px; height: 15px; }
.dash__float span { font-size: 12.5px; font-weight: 700; }
.dash__float small { display:block; color: var(--faint); font-weight: 600; font-size: 11px; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ============================ FEATURES ============================ */
.sec-head { text-align: center; max-width: 36em; margin: 0 auto 46px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,3.6vw,44px);
  letter-spacing: -.03em; line-height: 1.05; margin: 14px 0 14px; }
.sec-head p { color: var(--muted); font-size: 16px; }
.features { padding: 70px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--nm), 0 26px 50px rgba(20,40,90,.10); }
.feature__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--surface); box-shadow: var(--nm-sm); color: var(--accent-ink); }
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ============================ STRIP / CTA ============================ */
.strip { padding: 30px 0 90px; }
.strip__inner { padding: 48px; text-align: center; position: relative; overflow: hidden; }
.strip__inner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,3.4vw,40px);
  letter-spacing: -.03em; margin-bottom: 14px; }
.strip__inner p { color: var(--muted); max-width: 34em; margin: 0 auto 26px; }

/* ============================ FOOTER ============================ */
.foot { padding: 40px 0 60px; color: var(--faint); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(20,40,90,.08); }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.foot a:hover { color: var(--accent-ink); }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================ AUTH PAGE ============================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__aside { position: relative; overflow: hidden; padding: 54px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #1f48c9 0%, #2f6bff 45%, #20c9ff 110%); color: #fff; }
.auth__aside .brand { color: #fff; }
.auth__aside .brand b { color: #cfe0ff; }
.auth__aside .brand__mark { background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.auth__pitch h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,3vw,42px);
  letter-spacing: -.03em; line-height: 1.06; margin-bottom: 18px; }
.auth__pitch p { color: rgba(255,255,255,.82); font-size: 16px; max-width: 30em; }
.auth__list { display: grid; gap: 14px; margin-top: 26px; }
.auth__list li { list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.95); }
.auth__list .tick { width: 26px; height: 26px; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: 0 0 auto; }
.auth__list .tick svg { width: 15px; height: 15px; }
.auth__aside .aglow { position: absolute; border-radius: 50%; filter: blur(60px); }
.auth__aside .aglow.g1 { width: 30vw; height: 30vw; background: rgba(122,240,255,.5); right: -8vw; top: -6vw; }
.auth__aside .aglow.g2 { width: 26vw; height: 26vw; background: rgba(47,107,255,.6); left: -6vw; bottom: -10vw; }

.auth__main { display: grid; place-items: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 430px; padding: 38px; }
.auth__card h1 { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth__card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }

/* segmented tabs login/register */
.seg { display: flex; padding: 5px; gap: 4px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--nm-inset); margin-bottom: 24px; }
.seg button { flex: 1; border: 0; background: transparent; cursor: pointer; font-family: var(--font-body); font-weight: 700;
  font-size: 14px; color: var(--faint); padding: 11px; border-radius: var(--r-sm); transition: all .25s var(--ease); }
.seg button.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(47,107,255,.4); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding-left: 4px; }
.input { display: flex; align-items: center; gap: 11px; padding: 4px 16px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--nm-inset); transition: box-shadow .25s; }
.input:focus-within { box-shadow: var(--nm-inset), 0 0 0 3px rgba(47,107,255,.22); }
.input svg { width: 18px; height: 18px; color: var(--faint); flex: 0 0 auto; }
.input input { flex: 1; border: 0; background: transparent; outline: none; font-family: var(--font-body); font-size: 15px;
  color: var(--text); padding: 13px 0; }
.input input::placeholder { color: var(--faint); }
.input .eye { cursor: pointer; }
.field__row { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 22px; padding: 0 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { display: none; }
.check .box { width: 18px; height: 18px; border-radius: 6px; background: var(--surface); box-shadow: var(--nm-inset); display: grid; place-items: center; }
.check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .2s; }
.check input:checked + .box { background: var(--grad); box-shadow: 0 4px 10px rgba(47,107,255,.4); }
.check input:checked + .box svg { opacity: 1; }
.link { color: var(--accent-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(20,40,90,.14), transparent); }

/* identity providers (ESIA / Госключ / etc) */
.idp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idp button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; border: 0; cursor: pointer;
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--nm-sm); font-family: var(--font-body);
  font-weight: 600; font-size: 13.5px; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
.idp button:hover { transform: translateY(-2px); box-shadow: var(--nm); }
.idp button .gerb { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.idp .esia .gerb { background: linear-gradient(135deg,#d52b1e,#e23); }
.idp .gk .gerb { background: linear-gradient(135deg,#0a3d91,#2f6bff); }
.idp .sber .gerb { background: linear-gradient(135deg,#1a9f29,#21ba5a); }
.idp .crypto .gerb { background: linear-gradient(135deg,#2a2f3a,#4a5568); }
.idp .full { grid-column: 1 / -1; }

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

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120%); z-index: 99;
  padding: 14px 22px; border-radius: 100px; background: var(--text); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 18px 40px rgba(20,40,90,.3); transition: transform .5s var(--ease); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--accent-2); }

/* reveal on load */
[data-rise] { opacity: 0; transform: translateY(22px); }
[data-rise].in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid3 { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .idp { grid-template-columns: 1fr; }
  .auth__card { padding: 28px 22px; }
  .hero__stats { gap: 22px; }
}

/* tidy: remove the accidental token line above */
