/* ============================================================
   Perch — theme.css
   Dark desert aesthetic. Rust/burnt-orange accent. Barlow type.
   ============================================================ */

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

:root {
  --bg:         #0d0d0b;
  --bg-raised:  #161612;
  --bg-card:    #1c1c17;
  --border:     #2a2a22;
  --accent:     #e05c1a;
  --accent-dim: #8a3d0f;
  --text:       #f0ece4;
  --text-muted: #8a867c;
  --text-dim:   #4a4840;
  --font-head:  'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:  'Barlow', 'Arial', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- Shared layout ---------------------------------------- */
.hero-inner,
.how-inner,
.tools-inner,
.closing-inner,
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Section labels --------------------------------------- */
.section-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ---- Primary CTA button ----------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn-primary:hover  { background: #c44e12; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Dark fallback gradient before image loads */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a100a 0%, #0d0d0b 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 8, 5, 0.9) 0%,
    rgba(10, 8, 5, 0.65) 55%,
    rgba(10, 8, 5, 0.2) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 660px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dotpulse 2.4s ease-in-out infinite;
}

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

.hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
}

.step { flex: 1; min-width: 180px; }

.step-connector {
  flex: 0 0 2px;
  width: 2px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  align-self: center;
  margin: 0 1.5rem;
}

.step-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.65;
}

.step-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}

.tool-card--live { border-color: var(--accent-dim); }
.tool-card--live:hover { border-color: var(--accent); }

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.tool-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.tool-badge--live { background: var(--accent); color: #fff; }
.tool-badge--soon { background: var(--border); color: var(--text-muted); }

.tool-icon { opacity: 0.85; }

.tool-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.tool-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.tool-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: color 0.15s ease;
}
.tool-link:hover { color: #ff7033; }
.tool-link--disabled { color: var(--text-dim); cursor: default; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg), #0f0e09);
}

.closing-inner { text-align: center; }

.closing-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.closing-cta { display: flex; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.15rem; }

.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-tagline { font-size: 0.8rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.25rem;
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
}

.about-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.about-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    min-height: 75vh;
    background-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10, 8, 5, 0.72) 0%,
      rgba(10, 8, 5, 0.88) 100%
    );
  }

  .steps {
    flex-direction: column;
    gap: 2rem;
  }

  .step-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-dim), transparent);
    margin: 0;
  }

  .tool-cards { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
