:root {
  color-scheme: dark;
  --bg0: #020204;
  --bg1: #060609;
  --bg2: #0d0d12;
  --surface: rgba(4, 4, 6, 0.9);
  --surface-2: rgba(10, 10, 14, 0.95);
  --glass: rgba(255, 255, 255, 0.01);
  --stroke: rgba(255, 106, 0, 0.22);
  --stroke-soft: rgba(255, 255, 255, 0.05);
  --text: #f4f4f7;
  --muted: #a1a1aa;
  --muted-2: #52525b;
  --accent: #ff6a00;
  --accent-2: #ff9d00;
  --accent-3: #cc5500;
  --accent-glow: rgba(255, 106, 0, 0.3);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.7);
  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-body: "Sora", sans-serif;
  --font-head: "Space Grotesk", "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: #000000;
  overflow-x: hidden;
  line-height: 1.6;
}

body.is-modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 16px 8px;
}

/* Centered modern SaaS header */
.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 10px;
  margin-top: 0px;
  animation: fadeUp 0.8s var(--ease) both;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Naked, centered logo with glowing drop shadow */
.logo-container {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  transition: transform 0.4s var(--ease);
}

.logo-container:hover {
  transform: scale(1.08) rotate(3deg);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-text h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 106, 0, 0.35);
}

.brand-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  max-width: 500px;
}

/* Absolute positioned Back button */
.back {
  position: absolute;
  top: 18px;
  right: 24px;
  text-decoration: none;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.06);
  border: 1px solid rgba(255, 106, 0, 0.25);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s var(--ease);
}

.back:hover {
  background: rgba(255, 106, 0, 0.14);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.25);
  transform: translateY(-1px);
}

.back:active {
  transform: translateY(1px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(10px) translateX(15px);
  }
}

@media (max-width: 900px) {
  .page {
    padding: 24px 16px 48px;
  }

  .topbar {
    margin-bottom: 24px;
  }
  
  .back {
    position: static;
    margin-top: 8px;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .topbar {
    animation: none;
  }
}
