/* ============================================================
   FIRSTSTEP — Site layout and components
   ============================================================ */

/* ---- Event strip ---- */
.event-strip {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.event-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.strip-countdown {
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.strip-countdown code {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
}

.strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-300);
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  max-width: 100%;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--fg-strong);
  background: var(--bg-elev);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--blue-500);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 108, 255, 0.35);
}

.btn-secondary {
  background: var(--bg-elev-2);
  color: var(--fg-base);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--fg-strong);
}

.btn-ghost {
  background: none;
  color: var(--fg-muted);
}

.btn-ghost:hover {
  color: var(--fg-strong);
  background: var(--bg-elev);
}

/* Minimum touch target size on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
  }
}

/* ---- Form inputs ---- */
.fs-input {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-strong);
  font-family: var(--font-text);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.fs-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(45, 108, 255, 0.18);
}

.fs-input::placeholder { color: var(--fg-faint); }

/* ---- Chips ---- */
.fs-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.fs-chip-blue {
  background: rgba(45, 108, 255, 0.12);
  border-color: rgba(45, 108, 255, 0.28);
  color: var(--blue-300);
}

/* ---- Card base ---- */
.fs-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.fs-card:hover { border-color: var(--border-strong); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
}

.hero-halo {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(45, 108, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { max-width: 560px; }

/* ---- Device fan ---- */
.device-fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 420px;
}

.phone {
  width: 155px;
  height: 290px;
  margin: 0 -28px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center bottom;
  flex-shrink: 0;
}

.phone-notch {
  width: 56px;
  height: 10px;
  background: var(--bg-base);
  border-radius: 0 0 7px 7px;
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ---- Fake phone UI ---- */
.ff {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  overflow: hidden;
}

.ff-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ff-search {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--fg-muted);
  background: var(--bg-elev-2);
  border-radius: 5px;
  padding: 4px 8px;
  width: 100%;
}

.ff-chips {
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.ff-job {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  flex-shrink: 0;
}

.ff-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.ff-info { flex: 1; min-width: 0; }
.ff-title { font-size: 10px; font-weight: 600; color: var(--fg-strong); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-co    { font-size: 9px; color: var(--fg-muted); }
.ff-pay   { font-size: 9px; color: var(--blue-300); margin-top: 2px; font-weight: 600; }

/* ---- Waitlist counter ---- */
.waitlist-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}

.wl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(46, 204, 139, 0.55);
  flex-shrink: 0;
  animation: wl-pulse 2.2s ease-in-out infinite;
}

@keyframes wl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(0.82); }
}

.wl-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
}

/* ---- Sections ---- */
.section {
  padding: 96px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

/* ---- How it works ---- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-400);
  letter-spacing: 0.06em;
}

/* ---- Event card ---- */
.event-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
}

.event-halo {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 108, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.event-inner {
  position: relative;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
}

.event-meta {
  display: flex;
  flex-direction: column;
  min-width: 240px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.event-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.event-meta-row:last-child { border-bottom: none; }

.event-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
}

.event-meta-value {
  font-size: 13px;
  color: var(--fg-base);
  text-align: right;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-row {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
  color: inherit;
}

.faq-row:last-child { border-bottom: none; }
.faq-row:hover, .faq-row.open { background: var(--bg-elev-2); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-strong);
}

.faq-a {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  text-align: left;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto 48px;
  display: flex;
  gap: 60px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--fg-strong);
  flex-shrink: 0;
  min-width: 120px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  flex: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--fg-strong); }

.footer-base {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 900px */
@media (max-width: 900px) {
  .hero { padding: 64px 24px 80px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy { max-width: 100%; }

  .device-fan { height: 340px; }

  .phone {
    width: 130px;
    height: 248px;
    margin: 0 -22px;
    border-radius: 18px;
  }

  .event-inner {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 32px;
  }

  .event-meta { min-width: unset; }

  .footer-inner { gap: 36px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  /* Event strip */
  .event-strip { padding: 0 16px; }

  .event-strip-inner {
    gap: 6px;
    padding: 8px 0;
    font-size: 12px;
  }

  .strip-countdown { font-size: 11px; }

  .strip-cta { font-size: 12px; }

  /* Nav */
  .nav {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links { display: none; }

  .nav-cta {
    margin-left: auto;
    gap: 6px;
  }

  /* Hero */
  .hero {
    padding: 48px 16px 64px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
  }

  .hero-copy { max-width: 100%; }

  .hero-copy .row { justify-content: center; }

  .device-fan {
    height: 280px;
    width: 100%;
    max-width: 360px;
  }

  .phone {
    width: 108px;
    height: 208px;
    margin: 0 -18px;
    border-radius: 16px;
  }

  /* Reduce tilt so rotated phones don't overflow/clip in the hero */
  .device-fan .phone:first-child { transform: rotate(-4deg) !important; }
  .device-fan .phone:nth-child(2) { transform: rotate(0deg) !important; }
  .device-fan .phone:last-child  { transform: rotate(5deg) !important; }

  /* Sections */
  .section { padding: 60px 16px; }

  .section-head { margin-bottom: 36px; }

  /* How it works */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Event card */
  .event-card { border-radius: var(--r-lg); }

  .event-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }

  .event-halo { display: none; }

  .event-meta-row { padding: 12px 16px; }

  /* FAQ */
  .faq-row { padding: 16px 18px; }

  .faq-q { font-size: 14px; }

  /* Footer */
  .footer { padding: 40px 16px 24px; }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer-base {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  .hero { padding: 36px 14px 48px; }

  .device-fan {
    max-width: 300px;
    height: 195px;
  }

  .phone {
    width: 90px;
    height: 178px;
    margin: 0 -14px;
    border-radius: 14px;
  }

  /* On small screens show only the center phone */
  .device-fan .phone:first-child,
  .device-fan .phone:last-child {
    display: none;
  }

  .device-fan .phone:nth-child(2) {
    margin: 0;
    transform: none !important;
  }

  .event-inner { padding: 20px 16px; }

  .fs-card { padding: 20px 18px; }

  .faq-q { font-size: 13px; }

  /* On very small screens hide the device fan entirely to give the hero text room */
  @media (max-width: 360px) {
    .device-fan { display: none; }
  }
}
