:root {
  color-scheme: dark;
  --bg: #050b18;
  --text: #f4f7ff;
  --muted: #b4c1db;
  --navy: #06182e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

img { border: 0; }

a { color: #7dd3fc; }
a:hover { color: #bae6fd; }

button, input, textarea { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.brand-logo { height: 42px; width: auto; display: block; }
.app-logo { height: 28px; width: auto; display: block; }
.foot-logo { height: 40px; width: auto; display: block; }

#boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

#boot[hidden],
#app[hidden] { display: none; }

.ct-menu {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(148, 180, 255, 0.28);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-drawer {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: rgba(5, 11, 24, 0.97);
  border-bottom: 1px solid rgba(148, 180, 255, 0.14);
}

.nav-drawer[hidden] { display: none; }

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: #e8eefb;
  font-weight: 600;
  text-decoration: none;
}

.nav-drawer a:hover { color: #fff; }

#form-error:empty { display: none; }
#form-error { margin-top: 2px; }

@keyframes ctSceneIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes ctPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes ctFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes ctGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

.ct-scene { animation: ctSceneIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ct-live { animation: ctPulse 1.6s ease-in-out infinite; }
.ct-float { animation: ctFloat 2.4s ease-in-out infinite; }
.ct-glow { animation: ctGlow 6s ease-in-out infinite; }

.ct-btn { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ct-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(56, 189, 248, 0.55); }
.ct-ghost:hover { background: rgba(148, 180, 255, 0.12); }
.ct-navlink { color: #c6d2ea; text-decoration: none; }
.ct-navlink:hover { color: #fff; }
.ct-input:focus { outline: 2px solid #38bdf8; outline-offset: 1px; border-color: transparent; }
.ct-faq:hover { background: rgba(148, 180, 255, 0.06); }
.ct-card { transition: border-color 0.2s ease, transform 0.2s ease; }
.ct-card:hover { border-color: rgba(96, 165, 250, 0.45); transform: translateY(-2px); }

.subhead,
.subfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(5, 11, 24, 0.92);
  border-bottom: 1px solid rgba(148, 180, 255, 0.1);
}

.subfoot {
  border-bottom: 0;
  border-top: 1px solid rgba(148, 180, 255, 0.1);
  background: #040915;
  color: #9fb0d0;
  font-size: 14px;
}

.sub {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.sub h1 {
  margin: 12px 0 0;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sub h2 {
  margin: 36px 0 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.sub p,
.sub li { color: var(--muted); font-size: 17px; line-height: 1.65; }

.sub .eyebrow {
  margin: 0;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sub a.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .nav-drawer { display: none !important; }
}

@media (max-width: 899px) {
  .ct-menu { display: grid; }
  .brand-logo { height: 34px; }
}

@media (max-width: 420px) {
  .brand-logo { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-scene, .ct-live, .ct-float, .ct-glow { animation: none; }
  html { scroll-behavior: auto; }
  .ct-btn, .ct-card { transition: none; }
}
