/* ==========================================================================
   landing.css
   Place at: static/css/landing.css
   ========================================================================== */

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

:root {
  --primary:   #0080FF;
  --secondary: #115FFB;
  --tertiary:  #5540FB;
  --warm:      #FF6B35;
  --magenta:   #C026D3;
  --white:     #ffffff;
  --card-bg:   rgba(255,255,255,0.97);
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

/* ── Background gradient ── */
body {
  background: linear-gradient(176deg, #0080ff 0%, #115ffb 25%, #5540fb 50%, #b620e0 75%, #f7b500 100%);
  background-attachment: fixed;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  position: relative;
  z-index: 10;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nav-logo img {
  height: 48px;
  filter: brightness(0) invert(1);
}

.nav-logo-sub {
  font-family: 'Quicksand', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

.nav-login {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 9px 24px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, border-color 0.2s;
}

.nav-login:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.9);
}

/* ── Hero section ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 48px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Left copy ── */
.hero-copy { color: #ffffff; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF6B35;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  max-width: 400px;
}

.hero-sub strong {
  color: #ffffff;
  font-weight: 500;
}

.hero-spots {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  margin-top: 8px;
}

/* ── Form card ── */
.hero-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.1s;
}

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

.card-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  text-align: center;
}

.card-desc {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-desc strong { color: #374151; }

/* ── Form inputs ── */
.form-group { margin-bottom: 12px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1a1a2e;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #9ca3af; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,128,255,0.1);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-select-wrap { position: relative; }

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #9ca3af;
  pointer-events: none;
}

.form-textarea {
  resize: none;
  height: 80px;
  line-height: 1.5;
}

/* ── Submit button ── */
.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  color: #ffffff;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}

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

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Form fine print ── */
.card-fine {
  margin-top: 16px;
  text-align: center;
}

.card-fine p {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.6;
}

.card-fine strong { color: #6b7280; }

/* ── Success state ── */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #18A957, #0f7a3d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

.form-success h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 4px 48px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

/* ── Error message ── */
.form-error {
  font-size: 12px;
  color: #DF1642;
  margin-top: 4px;
  display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 24px 40px;
    gap: 40px;
  }

  .hero-headline { font-size: 36px; }
  .hero-sub { max-width: 100%; }
  .hero-card { padding: 28px 24px; }
}