/* ============================================
   CodeMate — Landing Page
   landing.css — styles specific to index.html
   anything reusable goes in main.css instead
   ============================================ */

/* ── HERO ────────────────────────────────── */

/* the hero takes up most of the first screen
   min-height pushes it tall without locking the height
   so it still grows if content needs more space */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* the ambient glow behind the headline
   it's just a blurred circle — no image needed
   position absolute so it doesn't affect layout */
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* everything in the hero sits above the glow */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* small label above the headline
   like a category tag — tells you what this is before you read */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite; /* gentle breathing effect */
}

/* the pulse animation on the dot
   draws the eye without being annoying */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* main headline — already styled in main.css
   we just add bottom margin here */
.hero h1 {
  margin-bottom: 1.25rem;
}

/* the subheadline — slightly larger than body
   sits between the headline and the CTA */
.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* CTA row — button and the trust line sit side by side on desktop
   stack on mobile */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* the small social proof text next to the button
   "Join 200+ developers already waiting" kind of energy */
.hero-trust {
  font-size: 0.8125rem;
  color: var(--subtle);
}

.hero-trust span {
  color: var(--accent);
}

/* ── FEATURES ─────────────────────────────── */

.features {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--muted);
}

/* three column grid on desktop, single column on mobile */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* each feature card */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(251, 113, 133, 0.3);
}

/* the icon box above the feature title */
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 100%;
}

/* ── HOW IT WORKS ─────────────────────────── */

.how-it-works {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

/* three steps in a row */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.step {
  padding: 1.5rem;
  position: relative;
}

/* the step number — large and faint behind the content */
.step-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(251, 113, 133, 0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 100%;
}

/* ── WAITLIST ─────────────────────────────── */

.waitlist {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

/* the waitlist box — centered, max width, amber border */
.waitlist-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-box h2 {
  margin-bottom: 0.75rem;
}

.waitlist-box p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 auto 2rem;
}

/* the form row — input and button sit side by side */
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

/* amber border when the input is focused */
.waitlist-input:focus {
  border-color: rgba(251, 113, 133, 0.5);
}

.waitlist-input::placeholder {
  color: var(--subtle);
}

/* small text below the form */
.waitlist-note {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  color: var(--subtle);
  text-align: center;
}

/* ── FOOTER ───────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-mark {
  font-size: 1rem;
  color: var(--accent);
}

.footer-logo-text {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}

.footer-right {
  font-size: 0.8125rem;
  color: var(--subtle);
}

.footer-right a {
  color: var(--subtle);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ───────────────────────────── */

/* on mobile everything stacks to one column */
@media (max-width: 768px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
    padding: 4rem 0 3rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}