/*
 * Generic signup landing page
 * Dark theme with blue (#0F9EFC) and green (#49E209) accents
 *
 * Designed as a post-click destination — the form is the focus.
 * Reusable for any "Start free trial" CTA across controltheory.com.
 */

/* ── Reset & Base ───────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #060a10;
  color: #e8f0fe;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/*
 * Override Tailwind CSS variables to dark theme.
 * The signup form uses these via utility classes (bg-background, text-foreground, etc.)
 */
.landing-page {
  --background: 222 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 220 50% 7%;
  --card-foreground: 210 40% 98%;
  --popover: 222 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 213 94% 52%;
  --primary-foreground: 210 40% 98%;
  --secondary: 217 33% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217 33% 17.5%;
  --muted-foreground: 215 30% 55%;
  --accent: 217 33% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 63% 31%;
  --destructive-foreground: 210 40% 98%;
  --border: 217 33% 20%;
  --input: 217 33% 20%;
  --ring: 213 94% 52%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-page a {
  color: #0F9EFC;
  text-decoration: none;
}
.landing-page a:hover {
  opacity: 0.85;
}
.landing-page img {
  max-width: 100%;
}

strong { font-weight: 600; }
em { font-style: italic; }

/* ── Skip link (accessibility + agent-friendly) ────── */
/* Visible only on keyboard focus. Lets keyboard users and agents
   jump straight to the form without tabbing through nav. */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #0F9EFC;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── Nav ────────────────────────────────────────────── */
/* Minimal: logo + log-in link. No menu items pulling
   attention away from the form on a conversion page. */

.nav {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(122, 146, 184, 0.08);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: inline-flex;
  flex-shrink: 0;
}
.landing-page .logo {
  height: 80px;
  width: auto;
}

.nav-login {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8f0fe;
}
.nav-login:hover { opacity: 0.8; }

/* ── Hero ───────────────────────────────────────────── */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}

.hero-text {
  padding: 0.5rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(73, 226, 9, 0.3);
  background: rgba(73, 226, 9, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #49E209;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49E209;
  box-shadow: 0 0 0 3px rgba(73, 226, 9, 0.18);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero h1 em {
  background: linear-gradient(90deg, #0F9EFC, #49E209);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

.hero-sub {
  font-size: 1.05rem;
  color: #a8bdd4;
  margin: 0 0 2rem;
  line-height: 1.6;
}
.hero-sub strong { color: #fff; }

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #c0d2ea;
  line-height: 1.5;
}
.hero-list-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(73, 226, 9, 0.12);
  color: #49E209;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ── Hero form card ─────────────────────────────────── */

.hero-form-card {
  background: hsl(220, 50%, 8%);
  border: 1px solid rgba(168, 189, 212, 0.22);
  border-radius: 16px;
  padding: 2rem;
  box-shadow:
    0 0 0 1px rgba(15, 158, 252, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.landing-page .hero-form-logo {
  height: 48px;
  margin-bottom: 0.5rem;
}

.hero-form-tagline {
  font-size: 0.85rem;
  color: #7a92b8;
  margin: 0 0 0.85rem;
}

.hero-form-trial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  border: 1px solid rgba(73, 226, 9, 0.25);
  background: rgba(73, 226, 9, 0.06);
  font-size: 0.78rem;
  font-weight: 500;
  color: #49E209;
}
.hero-form-trial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49E209;
  box-shadow: 0 0 0 3px rgba(73, 226, 9, 0.18);
}
.hero-form-trial-sep {
  color: rgba(73, 226, 9, 0.4);
}

.hero-form-legal {
  font-size: 0.75rem;
  color: #5a7499;
  text-align: center;
  margin: 1.25rem 0 0;
  line-height: 1.5;
}
.hero-form-legal a {
  text-decoration: underline;
}

/* ── Signup form refinements ─────────────────────────── */
/* CSS variables on .landing-page handle the bulk of dark theming.
   These are cosmetic tweaks on top. */

#signup-form {
  max-width: 100%;
}

#signup-form button[type="submit"] {
  background: linear-gradient(90deg, #0F9EFC, #0d8be0);
  border-color: transparent;
}
#signup-form button[type="submit"]:hover {
  opacity: 0.9;
}

/* Override card background color for the "or continue with email" divider */
.hero-form-card .bg-card {
  background-color: transparent;
}

/* ── Footer ─────────────────────────────────────────── */
/* Minimal: just copyright + legal links. Doesn't compete
   for attention with the form. */

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(122, 146, 184, 0.08);
  margin-top: 3rem;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer p {
  font-size: 0.8rem;
  color: #5a7499;
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: #5a7499;
}
.footer-legal a:hover { color: #7a92b8; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: start;
  }
  .hero-form {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
