:root {
  color-scheme: dark;
  --vl-ink: #f6f1ff;
  --vl-muted: #b7afc8;
  --vl-night: #090812;
  --vl-panel: rgba(24, 18, 43, .78);
  --vl-border: rgba(216, 194, 255, .18);
  --vl-violet: #9c7cf2;
  --vl-gold: #e8c677;
  --vl-cosmic-blue: #7aa7ff;
  --vl-space-1: 8px;
  --vl-space-2: 12px;
  --vl-space-3: 20px;
  --vl-space-4: 32px;
  --vl-radius: 24px;
  --vl-focus: 0 0 0 3px rgba(232, 198, 119, .38);
}

* { box-sizing: border-box; }

.vl-page {
  min-height: 100vh;
  margin: 0;
  color: var(--vl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(112, 77, 186, .30), transparent 36rem),
    radial-gradient(ellipse at 88% 90%, rgba(228, 181, 91, .12), transparent 28rem),
    var(--vl-night);
}

.vl-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .38;
  background-image: radial-gradient(rgba(255,255,255,.8) .65px, transparent .8px);
  background-size: 33px 33px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
  pointer-events: none;
}

.vl-topbar {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: var(--vl-space-3);
  margin: 0 auto;
}

.vl-skip-link { position: fixed; z-index: 10; top: var(--vl-space-2); left: var(--vl-space-2); padding: var(--vl-space-2) 14px; border-radius: 10px; background: var(--vl-gold); color: #211932; font-weight: 700; text-decoration: none; transform: translateY(-160%); }
.vl-skip-link:focus { transform: translateY(0); box-shadow: var(--vl-focus); }

.vl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vl-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}

.vl-brand-mark { color: var(--vl-gold); font-size: 1.05em; }

.vl-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.vl-nav a { padding: 9px 12px; border-radius: 999px; color: var(--vl-muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.vl-nav a:hover, .vl-nav a[aria-current="page"] { color: var(--vl-ink); background: rgba(122, 167, 255, .12); }
.vl-nav a:focus-visible { outline: 0; box-shadow: var(--vl-focus); }

.vl-auth-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 36px 20px 72px;
}

.vl-auth-card {
  width: min(100%, 500px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius);
  background: linear-gradient(145deg, rgba(37, 27, 66, .90), var(--vl-panel));
  box-shadow: 0 28px 100px rgba(0, 0, 0, .38), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.vl-auth-card::before { display: block; width: 42px; height: 1px; margin: 0 0 22px; background: linear-gradient(90deg, var(--vl-cosmic-blue), var(--vl-gold)); content: ""; }

.vl-auth-card h1 {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
}

.vl-auth-card form { display: grid; gap: 18px; }
.vl-auth-card label { display: grid; gap: 8px; color: var(--vl-muted); font-size: .92rem; }
.vl-auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--vl-border);
  border-radius: 12px;
  outline: 0;
  background: rgba(7, 5, 18, .48);
  color: var(--vl-ink);
  font: inherit;
}
.vl-auth-card input:focus-visible { border-color: var(--vl-gold); box-shadow: var(--vl-focus); }
.vl-auth-card button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--vl-gold), #f3dd9b);
  color: #211932;
  cursor: pointer;
  font: 700 .95rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
}
.vl-auth-card button:hover { filter: brightness(1.06); }
.vl-auth-card button:focus-visible, .vl-auth-card a:focus-visible { outline: 0; box-shadow: var(--vl-focus); }
.vl-auth-card p { color: var(--vl-muted); line-height: 1.55; }
.vl-auth-card a { color: var(--vl-gold); }
.vl-auth-card #status { min-height: 1.5em; }




.vl-home-page .card-switcher {
  padding: 12px 16px;
  border: 1px solid var(--vl-border);
  border-radius: 16px;
  background: rgba(122, 167, 255, .06);
}
.vl-home-page .card-switcher select {
  border-color: var(--vl-border);
  background: rgba(7, 5, 18, .48);
  color: var(--vl-ink);
}
.vl-home-page .card-switcher select:focus-visible { outline: 0; box-shadow: var(--vl-focus); }

.vl-home-page .vl-home-shell { max-width: 1120px; padding-bottom: 72px; }
.vl-home-page .vl-topbar { width: 100%; margin: 0 0 var(--vl-space-3); }
.vl-home-page .vl-brand { color: var(--vl-ink); font-size: 1.28rem; }
.vl-home-page .brand { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.vl-home-page .testing { color: var(--vl-cosmic-blue); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .72rem; letter-spacing: .04em; }
.vl-home-page .panel { border-color: var(--vl-border); background: linear-gradient(145deg, rgba(37, 27, 66, .86), var(--vl-panel)); }
.vl-home-page .primary-action { background: linear-gradient(120deg, var(--vl-gold), #f3dd9b); color: #211932; }
.vl-home-page .msg.user { background: var(--vl-violet); }
.vl-home-page .product-card { border-color: var(--vl-border); background: rgba(122, 167, 255, .06); }
.vl-home-page .catalog-links a { border-color: var(--vl-border); color: var(--vl-gold); }

.vl-content {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.vl-account-page .card {
  margin: 18px 0;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--vl-border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(37, 27, 66, .82), var(--vl-panel));
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.vl-account-page h1, .vl-account-page h2, .vl-account-page h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.vl-account-page h1 { margin: 0 0 var(--vl-space-3); font-size: clamp(2rem, 5vw, 2.8rem); }
.vl-account-page .muted { color: var(--vl-muted); line-height: 1.55; }
.vl-account-page input, .vl-account-page select, .vl-account-page button {
  max-width: 100%;
  margin: 4px;
  padding: 10px 12px;
  border: 1px solid var(--vl-border);
  border-radius: 10px;
  background: rgba(7, 5, 18, .48);
  color: var(--vl-ink);
  font: inherit;
}
.vl-account-page button { cursor: pointer; }
.vl-account-page input:focus-visible, .vl-account-page select:focus-visible, .vl-account-page button:focus-visible, .vl-account-page a:focus-visible { outline: 0; box-shadow: var(--vl-focus); }
.vl-account-page a { color: var(--vl-gold); }
.vl-account-page .danger { color: #fecaca; }
.vl-account-page .analysis { border-top: 1px solid var(--vl-border); padding: 14px 0; }
.vl-account-page .reply { padding: 14px; border-radius: 10px; background: rgba(7, 5, 18, .48); white-space: pre-wrap; }

@media (max-width: 560px) {
  .vl-topbar { width: min(100% - 32px, 1120px); min-height: 64px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 0; }
  .vl-nav { justify-content: flex-start; margin: 0 -8px; }
  .vl-auth-shell { min-height: calc(100vh - 64px); padding: 20px 16px 44px; }
  .vl-auth-card { border-radius: 18px; }
  .vl-content { width: min(100% - 32px, 980px); padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Public home: deliberately separate from the authenticated product shell. */
.vl-landing-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(1, 7, 20, 0.36), rgba(1, 7, 20, 0.76)),
    url("/static/assets/vastrolog-updating-hero.png") center / cover no-repeat,
    var(--vl-night);
}

.vl-landing-page::before { opacity: 0.48; mask-image: none; }

.vl-landing-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(720px, calc(100% - 40px));
  justify-items: center;
  text-align: center;
  padding: 72px 0 56px;
}

.vl-landing-brand { display: grid; gap: 20px; justify-items: center; }

.vl-landing-mark {
  position: relative;
  z-index: 0;
  isolation: isolate;
  color: #72b6ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.14em;
  padding-right: 0.14em;
  text-shadow: 0 5px 22px rgba(58, 132, 255, 0.42);
  animation: vl-landing-breathe 7s ease-in-out infinite;
}

/* The subtle disc rotates independently behind the fixed Vastrolog mark. */
.vl-landing-mark::before {
  position: absolute;
  z-index: -1;
  top: -18%;
  left: -22%;
  width: 132%;
  aspect-ratio: 1;
  border: 1px solid rgba(122, 167, 255, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 30%, rgba(232, 198, 119, 0.50) 0 4%, transparent 12%),
    radial-gradient(circle at 70% 63%, rgba(95, 156, 255, 0.30) 0 7%, transparent 19%),
    conic-gradient(from 24deg, rgba(122, 167, 255, 0.16), rgba(232, 198, 119, 0.30), rgba(122, 167, 255, 0.08), rgba(122, 167, 255, 0.16));
  box-shadow: inset 0 0 28px rgba(92, 141, 244, 0.18), 0 0 38px rgba(74, 132, 255, 0.16);
  content: "";
  pointer-events: none;
  will-change: transform;
  animation: vl-landing-cosmic-rotation 90s linear infinite;
}

/* The ellipse is geometrically stable; only its small highlight travels the path. */
/* Safe fallback while an already-running process still serves the previous Home markup. */
.vl-landing-mark::after {
  position: absolute;
  top: 48%;
  left: -15%;
  width: 132%;
  height: 20%;
  border: 2px solid rgba(233, 182, 93, 0.78);
  border-radius: 50%;
  box-shadow: 18px 0 12px -8px rgba(255, 214, 135, 0.72);
  content: "";
  pointer-events: none;
  transform: rotate(-18deg);
}

.vl-landing-mark:has(.vl-landing-orbit)::after { display: none; }

.vl-landing-orbit {
  position: absolute;
  top: 33%;
  left: -16%;
  width: 132%;
  height: 44%;
  overflow: visible;
  pointer-events: none;
}

.vl-landing-orbit-base,
.vl-landing-orbit-highlight {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.vl-landing-orbit-base {
  stroke: rgba(233, 182, 93, 0.78);
  stroke-width: 1.45;
}

.vl-landing-orbit-highlight {
  stroke: rgba(255, 224, 159, 0.98);
  stroke-width: 2.2;
  stroke-dasharray: 9 91;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 3px rgba(255, 215, 133, 0.9));
  will-change: stroke-dashoffset;
  animation: vl-landing-orbit-highlight 16s linear infinite;
}

@keyframes vl-landing-cosmic-rotation { to { transform: rotate(360deg); } }
@keyframes vl-landing-orbit-highlight { to { stroke-dashoffset: -100; } }
@keyframes vl-landing-breathe {
  0%, 100% { text-shadow: 0 5px 22px rgba(58, 132, 255, 0.42); }
  50% { text-shadow: 0 5px 27px rgba(85, 157, 255, 0.56), 0 0 38px rgba(96, 148, 255, 0.18); }
}

.vl-landing-name {
  color: #62a8fb;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  padding-left: 0.28em;
  text-shadow: 0 4px 18px rgba(57, 133, 255, 0.32);
}

.vl-landing-tagline {
  min-block-size: 1.15em;
  margin: 54px 0 0;
  color: #e8bb72;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 400;
  line-height: 1.15;
}

.vl-landing-caption-static {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.vl-landing-caption-rotator { display: grid; min-block-size: 1.15em; }
.vl-landing-caption {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  white-space: nowrap;
  will-change: opacity, transform;
}
.vl-landing-caption-bg { animation: vl-landing-caption-bg 12s ease-in-out infinite; }
.vl-landing-caption-en { animation: vl-landing-caption-en 12s ease-in-out infinite; }

@keyframes vl-landing-caption-bg {
  0%, 42% { opacity: 1; transform: translateY(0); }
  49%, 93% { opacity: 0; transform: translateY(-0.32em); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes vl-landing-caption-en {
  0%, 42% { opacity: 0; transform: translateY(0.32em); }
  49%, 93% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0.32em); }
}

.vl-landing-subtitle {
  margin: 20px 0 0;
  color: rgba(220, 227, 244, 0.74);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.vl-landing-languages, .vl-landing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-landing-languages { gap: 18px; margin-top: 54px; color: rgba(214, 224, 242, 0.55); }
.vl-landing-languages a { color: inherit; font-size: 1rem; text-decoration: none; }
.vl-landing-languages a:first-child { color: #edbf75; }
.vl-landing-languages a:focus-visible, .vl-landing-actions a:focus-visible {
  outline: 2px solid #f1c478;
  outline-offset: 5px;
}

.vl-landing-actions { gap: 0; margin-top: 58px; color: rgba(248, 249, 255, 0.94); font-size: 1.05rem; }
.vl-landing-actions > * { padding: 12px 30px; }
.vl-landing-actions > * + * { border-left: 1px solid rgba(177, 192, 225, 0.25); }
.vl-landing-actions a { color: inherit; text-decoration: none; }
.vl-landing-about { border-bottom: 2px solid rgba(226, 177, 100, 0.58); }
.vl-landing-actions .vl-landing-cta {
  border: 1px solid rgba(227, 173, 91, 0.75);
  border-radius: 11px;
  color: #f1c478;
  box-shadow: inset 0 0 22px rgba(203, 139, 55, 0.08), 0 0 16px rgba(203, 139, 55, 0.08);
}

@media (max-width: 560px) {
  /* Portrait art direction: show the approved landscape art at its full width, never as a cover crop. */
  .vl-landing-page {
    background-size: 100% 100%, 100% auto;
    background-position: center;
    background-repeat: no-repeat;
  }
  .vl-landing-content {
    width: min(720px, calc(100% - 28px));
    margin-inline: auto;
  }
  .vl-landing-brand { inline-size: 100%; }
  /* width: 132% needs -16% inline start for an exact 50% geometric center. */
  .vl-landing-mark::before { left: -16%; }
  .vl-landing-name { letter-spacing: 0.18em; padding-inline: 0; }
  .vl-landing-actions { flex-wrap: wrap; margin-top: 42px; }
  .vl-landing-actions > * { padding: 10px 14px; }
}


/* Motion is decorative; reduced-motion users receive one stable localized caption. */
@media (prefers-reduced-motion: reduce) {
  .vl-landing-mark,
  .vl-landing-mark::before,
  .vl-landing-orbit-highlight,
  .vl-landing-caption { animation: none !important; }
  .vl-landing-caption-rotator { display: none; }
  .vl-landing-caption-static {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
}
