/* =========================================
   ClarityHeat Global Styles (Homepage)
   Uses Inter from Google Fonts
========================================= */

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

html, body {
  margin: 0;
  padding: 0;
}

body.ch-home {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

/* Layout Helpers */

.ch-container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

.ch-center {
  text-align: center;
}

/* =========================================
   HEADER / NAV
========================================= */

.ch-header {
  background: #0b1220;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ch-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e7eb;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.ch-logo span {
  color: #38bdf8;
}

.ch-nav a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 20px;
  position: relative;
}

.ch-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.2s ease;
}

.ch-nav a:hover::after {
  width: 100%;
}

/* =========================================
   HERO
========================================= */

.ch-hero {
  padding: 56px 0 48px;
  background: radial-gradient(circle at top left, #1d4ed8 0, #0b1120 38%, #020617 100%);
  color: #e5e7eb;
}

.ch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 32px;
  align-items: stretch;
}

.ch-hero-copy h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 12px;
}

.ch-hero-copy h1 span {
  color: #bae6fd;
  font-weight: 600;
}

.ch-hero-sub {
  margin: 0 0 20px;
  color: #cbd5f5;
  font-size: 0.98rem;
  line-height: 1.6;
}

.ch-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.ch-cta-primary,
.ch-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.ch-cta-primary {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
}

.ch-cta-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  transform: translateY(-1px);
}

.ch-cta-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: #64748b;
}

.ch-cta-ghost:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: #94a3b8;
}

.ch-hero-note {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Hero side card */

.ch-hero-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(8px);
}

.ch-hero-card-header {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.ch-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.ch-hero-list li {
  padding-left: 16px;
  margin-bottom: 8px;
  position: relative;
}

.ch-hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #38bdf8;
}

.ch-hero-mini-cta {
  display: inline-block;
  font-size: 0.9rem;
  color: #bae6fd;
  text-decoration: none;
  margin-top: 6px;
}

.ch-hero-mini-cta:hover {
  text-decoration: underline;
}

/* =========================================
   SECTIONS
========================================= */

.ch-section {
  padding: 48px 0;
}

.ch-section-light {
  background: #f8fafc;
}

.ch-section-alt {
  background: #f1f5f9;
}

.ch-section h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.ch-section-lead {
  margin: 0 0 24px;
  color: #475569;
  max-width: 640px;
}

/* Steps grid */

.ch-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.ch-step-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 16px 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ch-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.ch-step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.ch-step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Generic three-column features */

.ch-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ch-feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 16px 18px;
  border: 1px solid #e2e8f0;
}

.ch-feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.ch-feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: #4b5563;
}

/* Learn section */

.ch-learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 24px;
  align-items: start;
}

.ch-link-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.ch-link-list li {
  margin-bottom: 8px;
}

.ch-link-list a {
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
}

.ch-link-list a:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

.ch-learn-aside {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px 16px;
  border: 1px solid #1f2937;
}

.ch-learn-aside h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.ch-learn-aside p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: #cbd5f5;
}

/* CTA buttons reused */

.ch-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  border: 1px solid #0ea5e9;
  color: #0ea5e9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.ch-cta-secondary:hover {
  background: #0ea5e911;
  transform: translateY(-1px);
}

/* FAQ */

.ch-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ch-faq-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 16px 18px;
  border: 1px solid #e2e8f0;
}

.ch-faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.ch-faq-item p {
  margin: 0;
  font-size: 0.94rem;
  color: #4b5563;
}

/* =========================================
   FOOTER
========================================= */

.ch-footer {
  background: #020617;
  color: #9ca3af;
  padding: 18px 0;
  font-size: 0.86rem;
}

.ch-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ch-footer-row a {
  color: #e5e7eb;
  text-decoration: none;
}

.ch-footer-row a:hover {
  text-decoration: underline;
}

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

@media (max-width: 900px) {
  .ch-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ch-hero-card {
    margin-top: 12px;
  }

  .ch-steps-grid,
  .ch-grid-3,
  .ch-faq-list,
  .ch-learn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .ch-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ch-nav a {
    margin-left: 0;
    margin-right: 16px;
    font-size: 0.9rem;
  }

  .ch-hero {
    padding-top: 40px;
  }

  .ch-hero-copy h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .ch-hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ch-cta-primary,
  .ch-cta-ghost {
    width: 100%;
    justify-content: center;
  }
}
