/* ==========================================================================
   GenFI Coming Soon Styles
   Single Source of Truth: GenFI-Brand-Guidelines-Coming-Soon-Spec.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --bg-navy: #0A0F26;
  --bg-navy-2: #111736;
  --gradient-blue: #3D7BFF;
  --gradient-teal: #2EB5C8;
  --gradient-green: #7ED957;

  /* Gradient: Always Blue -> Teal -> Green (90deg) */
  --brand-gradient: linear-gradient(90deg, #3D7BFF 0%, #2EB5C8 50%, #7ED957 100%);

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A9B8D1;
  --text-muted: #6B7A99;

  /* Surface & Borders */
  --border: rgba(255, 255, 255, 0.12);
  --input-bg: rgba(255, 255, 255, 0.06);

  /* Status Colors */
  --success: #7ED957;
  --error: #FF8A8A;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Layout Widths */
  --max-width: 720px;
  --max-width-wide: 1120px;

  /* Fonts */
  --font: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background-color: var(--bg-navy);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Accessible hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Page Shell
   -------------------------------------------------------------------------- */
.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  /* Subtle top-center radial glow with brand gradient hues at 8% opacity */
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%,
      rgba(61, 123, 255, 0.08) 0%,
      rgba(46, 181, 200, 0.05) 40%,
      rgba(126, 217, 87, 0.02) 70%,
      transparent 100%),
    var(--bg-navy);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   Centered Column Container
   -------------------------------------------------------------------------- */
.content-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Entrance fade-up: 600ms ease-out */
  animation: fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .content-container {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   1. Logo Lockup
   -------------------------------------------------------------------------- */
.logo-wrapper {
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  width: 260px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* --------------------------------------------------------------------------
   2. Badge — COMING SOON
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 8px 16px;
  margin-bottom: var(--space-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
  user-select: none;
}

.badge-dot {
  color: var(--gradient-green);
  font-size: 10px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   3. Headline
   -------------------------------------------------------------------------- */
.headline {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.headline-line {
  display: block;
}

/* Text Gradient clip for 'Generative AI.' */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   4. Subhead
   -------------------------------------------------------------------------- */
.subhead {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-md) auto;
}

/* --------------------------------------------------------------------------
   5. Email Form
   -------------------------------------------------------------------------- */
.email-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.email-input {
  flex: 1;
  min-width: 0;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.email-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.email-input:focus {
  border-color: var(--gradient-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 181, 200, 0.18);
}

.email-input.has-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.18);
}

.submit-button {
  background: var(--brand-gradient);
  color: var(--bg-navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-button:focus-visible {
  outline: 2px solid var(--gradient-teal);
  outline-offset: 2px;
}

/* Feedback message */
.form-feedback {
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
  transition: opacity 0.2s ease;
}

.form-feedback.success {
  color: var(--success);
}

.form-feedback.error {
  color: var(--error);
}

/* Small print under form */
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   6. Micro-Trust Row
   -------------------------------------------------------------------------- */
.trust-row {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-dot {
  color: var(--text-muted);
  user-select: none;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.page-footer {
  margin-top: var(--space-xl);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */

/* Tablet & Mobile Breakpoint (<= 640px) */
@media (max-width: 640px) {
  .page-shell {
    padding: 24px 20px;
  }

  .brand-logo {
    width: 200px;
  }

  .headline {
    font-size: 36px;
  }

  .subhead {
    font-size: 16px;
  }

  .form-row {
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }
}

/* Small Mobile Breakpoint (<= 360px) */
@media (max-width: 360px) {
  .headline {
    font-size: 32px;
  }

  .subhead {
    font-size: 15px;
  }
}
