/* ============================================================
   MEGAMINDS LANDING PAGE — Styles
   Requires styles.css to be loaded first (design tokens + reset)
   ============================================================ */

/* ---- Layout ---- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.landing-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Logo ---- */
.landing-logo-wrap {
  margin-bottom: 20px;
}

.landing-logo {
  width: 80px;
  height: 80px;
  animation: logoBreath 5s ease-in-out infinite;
}


/* ---- Wordmark ---- */
.landing-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.wordmark-s {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(78, 205, 196, 0.6), 0 0 28px rgba(78, 205, 196, 0.3);
}

/* ---- Tagline ---- */
.landing-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 7.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  white-space: nowrap;
  margin-bottom: 20px;
}

.tagline-line-1 {
  color: var(--text);
}

.tagline-line-2 {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(78, 205, 196, 0.35), 0 0 80px rgba(78, 205, 196, 0.15);
}

/* ---- Sub-copy ---- */
.landing-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 440px;
}

/* ---- Form ---- */
.landing-form-wrap {
  width: 100%;
  max-width: 480px;
}

.landing-form {
  display: flex;
  flex-direction: column;
}

.form-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.landing-email-input {
  flex: 1;
  min-width: 0;
  font-size: 15px;
}

.landing-submit-btn {
  flex-shrink: 0;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}

.btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin-icon {
  animation: spin 0.75s linear infinite;
}

/* ---- GDPR ---- */
.gdpr-row {
  margin-bottom: 10px;
}

.gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.gdpr-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gdpr-custom-check {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-hover);
  background: var(--surface-2);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdpr-checkbox:checked + .gdpr-custom-check {
  background: var(--primary);
  border-color: var(--primary);
}

.gdpr-checkbox:checked + .gdpr-custom-check::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #0C0C10;
  border-bottom: 2px solid #0C0C10;
  transform: rotate(-45deg) translateY(-1px);
}

.gdpr-checkbox:focus-visible + .gdpr-custom-check {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.gdpr-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Privacy note ---- */
.privacy-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
  text-align: left;
  margin-top: 8px;
}

.privacy-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--primary);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.privacy-link:hover {
  opacity: 1;
}

/* ---- Error ---- */
.form-error {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--error);
  text-align: left;
  display: none;
}

/* ---- Success ---- */
.landing-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  animation: fadeInUp 0.55s ease-out both;
}

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

.success-icon {
  animation: successPulse 4s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(78, 205, 196, 0.25)); }
  50%      { filter: drop-shadow(0 0 16px rgba(78, 205, 196, 0.55)); }
}

.success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
}

.success-copy {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
}

/* ---- Privacy Modal ---- */
.privacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.privacy-modal {
  position: fixed;
  z-index: 1200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 32px;
  display: none;
  animation: modalIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.privacy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--surface-2);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.privacy-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.privacy-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 14px;
}

.privacy-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.privacy-list {
  margin: 10px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.privacy-list li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-email {
  color: var(--primary);
  text-decoration: none;
}

.privacy-email:hover {
  text-decoration: underline;
}

/* ---- Light mode adjustments ---- */
[data-theme="light"] .wordmark-s {
  text-shadow: 0 0 10px rgba(42, 157, 151, 0.5), 0 0 22px rgba(42, 157, 151, 0.25);
}

[data-theme="light"] .landing-logo {
  animation-name: logoBreathLight;
}

@keyframes logoBreathLight {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(42, 157, 151, 0.4)); }
  50%      { filter: drop-shadow(0 0 18px rgba(42, 157, 151, 0.65)); }
}

[data-theme="light"] .landing-glow {
  background: radial-gradient(ellipse at center, rgba(42, 157, 151, 0.06) 0%, transparent 65%);
}

/* ---- Responsive ---- */
@media (max-width: 620px) {
  .landing-copy {
    font-size: 16px;
  }

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

  .landing-submit-btn {
    width: 100%;
    min-width: unset;
  }

  .copy-break {
    display: none;
  }
}

@media (max-width: 400px) {
  .landing-copy {
    font-size: 15px;
  }
}
