:root {
  --bg: #070c18;
  --bg-2: #0b1324;
  --panel: rgba(24, 35, 65, .72);
  --panel-strong: rgba(28, 40, 73, .92);
  --line: rgba(159, 183, 233, .16);
  --line-strong: rgba(127, 236, 255, .28);
  --text: #edf5ff;
  --muted: #9fb0cf;
  --muted-2: #7786a8;
  --cyan: #78e8ff;
  --violet: #a78bfa;
  --teal: #5eead4;
  --green: #34d399;
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 232, 255, .18), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(167, 139, 250, .22), transparent 36rem),
    linear-gradient(135deg, #07101d 0%, #0b1124 45%, #171430 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}
a { color: inherit; text-decoration: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(7, 13, 26, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-icon,
.feature-icon,
.login-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(120,232,255,.18), rgba(167,139,250,.17));
  border: 1px solid rgba(120,232,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  flex: 0 0 auto;
}
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: #cbd7f1;
  padding: 12px 15px;
  border-radius: 999px;
  font-weight: 760;
  font-size: 14px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-cta {
  color: #06101d !important;
  background: linear-gradient(135deg, #7cecff 0%, #a78bfa 52%, #5eead4 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(120,232,255,.16), inset 0 1px 0 rgba(255,255,255,.36);
  margin-left: 4px;
}
.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #1e293b 0%, #334155 48%, #0f172a 100%);
  border-color: rgba(124, 236, 255, .55);
  box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 0 1px rgba(124,236,255,.18), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(-1px);
  filter: none;
}
.nav-toggle { display: none; border: 0; background: transparent; color: #fff; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; border-radius: 999px; }
main { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.hero-section { display: grid; grid-template-columns: minmax(0, 1.15fr) 380px; gap: 26px; padding: 78px 0 38px; align-items: stretch; }
.hero-copy,
.login-card,
.feature-card,
.doc-card,
.bottom-cta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 39, 71, .82), rgba(14, 22, 40, .78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-copy { border-radius: var(--radius-xl); padding: clamp(34px, 6vw, 66px); min-height: 580px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; position: relative; }
.hero-copy::after { content: ""; position: absolute; width: 330px; height: 330px; right: -80px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(120,232,255,.20), transparent 64%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; font-size: clamp(44px, 7vw, 58px); line-height: .9; letter-spacing: -.065em; margin: 18px 0 22px; }
.hero-lead { max-width: 680px; color: #c6d4ee; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary {
  color: #07111f !important;
  background: linear-gradient(135deg, #7cecff 0%, #9f7cff 52%, #5eead4 100%) !important;
  box-shadow: 0 14px 34px rgba(110,231,255,.18), inset 0 1px 0 rgba(255,255,255,.35) !important;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #1e293b 0%, #334155 48%, #0f172a 100%) !important;
  border-color: rgba(124,236,255,.55) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 0 1px rgba(124,236,255,.18), inset 0 1px 0 rgba(255,255,255,.12) !important;
  transform: translateY(-1px);
}
.btn-secondary { color: #e9f2ff; background: rgba(255,255,255,.07); }
.btn-secondary:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn-full { width: 100%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; color: #b9c7e5; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 999px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.hero-points svg { color: var(--green); }
.login-card { border-radius: var(--radius-xl); padding: 28px; align-self: stretch; }
.login-card h2 { font-size: 30px; letter-spacing: -.04em; margin: 18px 0 10px; }
.login-card p { color: var(--muted); line-height: 1.55; }
.front-login-form { display: grid; gap: 16px; margin-top: 24px; }
.front-login-form label { display: grid; gap: 8px; color: #d7e3ff; font-weight: 800; font-size: 13px; }
.front-login-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: #080e1d;
  color: var(--text);
  border-radius: 18px;
  min-height: 54px;
  padding: 0 16px;
  outline: none;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.front-login-form input:focus { border-color: rgba(120,232,255,.55); box-shadow: 0 0 0 4px rgba(120,232,255,.10); }
.front-login-form input:-webkit-autofill { -webkit-text-fill-color: #06101d; box-shadow: inset 0 0 0 999px #eaf2ff; }
.login-note { margin: 16px 0 6px; font-size: 14px; }
.login-error { color: #fecaca !important; border: 1px solid rgba(248,113,113,.30); background: rgba(248,113,113,.10); padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.login-fallback { color: var(--cyan); font-weight: 800; display: inline-block; margin-top: 10px; }
.feature-section,
.docs-section { padding: 52px 0; }
.section-heading,
.docs-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.section-heading h2,
.docs-header h2,
.bottom-cta h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.052em; margin: 10px 0; max-width: 780px; }
.section-heading p,
.docs-header p,
.bottom-cta p { color: var(--muted); line-height: 1.65; max-width: 680px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { border-radius: var(--radius-lg); padding: 24px; }
.feature-card h3 { margin: 20px 0 10px; font-size: 20px; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); line-height: 1.62; }
.docs-header { align-items: center; }
.doc-search { position: relative; min-width: min(390px, 100%); color: var(--muted); }
.doc-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); }
.doc-search input { width: 100%; min-height: 56px; padding: 0 16px 0 48px; border-radius: 18px; border: 1px solid var(--line); background: rgba(7, 13, 26, .72); color: var(--text); font: inherit; outline: none; }
.doc-search input:focus { border-color: rgba(120,232,255,.55); box-shadow: 0 0 0 4px rgba(120,232,255,.10); }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.docs-nav { position: sticky; top: 102px; display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(8, 14, 29, .74); max-height: calc(100vh - 124px); overflow: auto; }
.docs-nav a { color: #aebce0; padding: 10px 12px; border-radius: 14px; font-weight: 760; font-size: 14px; }
.docs-nav a:hover,
.docs-nav a.is-active { color: #fff; background: rgba(120,232,255,.12); }
.docs-list { display: grid; gap: 16px; }
.doc-card { border-radius: var(--radius-lg); padding: 28px; scroll-margin-top: 112px; }
.doc-card.is-hidden { display: none; }
.doc-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-card-top span { color: #06101d; background: linear-gradient(135deg, var(--cyan), var(--teal)); border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: 12px; }
.doc-card h3 { font-size: 28px; letter-spacing: -.04em; margin: 0; }
.doc-card p { color: #c5d1eb; line-height: 1.72; max-width: 880px; }
.doc-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.doc-card li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.6; }
.doc-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px rgba(120,232,255,.42); }
.bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 52px); margin: 54px 0 34px; }
.site-footer { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 48px; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 14px; }
@media (max-width: 980px) {
  .site-header { border-radius: 24px; align-items: flex-start; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; left: 12px; right: 12px; top: 74px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: rgba(7,13,26,.96); }
  .main-nav.is-open { display: flex; }
  .main-nav a { display: block; }
  .hero-section { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-copy { min-height: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .section-heading,
  .docs-header,
  .bottom-cta { flex-direction: column; align-items: stretch; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: relative; top: auto; display: flex; overflow-x: auto; max-height: none; }
  .docs-nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  main, .site-header, .site-footer { width: min(100% - 20px, 1180px); }
  .brand em { display: none; }
  h1 { font-size: 44px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .login-card, .hero-copy, .doc-card, .bottom-cta { padding: 22px; border-radius: 24px; }
}


/* Public front language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  margin: 0 2px;
}
.language-switcher a {
  padding: 8px 10px;
  min-height: 0;
  font-size: 12px;
  line-height: 1;
  color: #aebce0;
  border-radius: 999px;
}
.language-switcher a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.language-switcher a.is-active {
  color: #06101d;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36);
}
@media (max-width: 980px) {
  .language-switcher {
    justify-content: center;
    margin: 4px 0;
  }
}
