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

:root {
  /* ThermaCRM palette — ember (heating) + frost (cooling) on deep slate */
  --ink: #1c2733;
  --ink-light: #273544;
  --ink-dark: #131c26;
  --ember: #e8590c;
  --ember-light: #f76b1f;
  --ember-dark: #d9480f;
  --ember-glow: rgba(232, 89, 12, 0.18);
  --frost: #1c7ed6;
  --frost-light: #339af0;
  --frost-glow: rgba(28, 126, 214, 0.16);
  --white: #ffffff;
  --cream: #f9fafb;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #868e96;
  --gray-700: #495057;
  --gray-900: #212529;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
  --transition: 0.3s ease;
  --radius: 16px;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ember);
  color: var(--white);
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ===== Header / Nav ===== */
.header {
  background: #fefefe;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Logo mark (gear + snowflake/flame) beside the wordmark */
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.logo-wordmark .wordmark-therma {
  color: var(--ember);
}

.logo-wordmark .wordmark-crm {
  color: var(--frost);
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  color: var(--gray-500);
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: #fefefe;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover {
  background: var(--gray-100);
  color: var(--ink);
}

/* ===== Keyframes ===== */
@keyframes riseUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hero ===== */
.hero {
  /* Frost-to-ember wash: cooling on one side, heating on the other */
  background:
    radial-gradient(ellipse 60% 55% at 12% 0%, var(--frost-glow), transparent 70%),
    radial-gradient(ellipse 60% 55% at 88% 100%, var(--ember-glow), transparent 70%),
    #fefefe;
  color: var(--ink);
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 1.5rem clamp(60px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

/* Hero lockup: gear mark stacked over the ThermaCRM wordmark (transparent PNG, 560x426 source; 300x228 keeps the gear ~180px) */
.hero-logo {
  display: block;
  width: 300px;
  height: 228px;
  margin: 0 auto 2.5rem;
  object-fit: contain;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 52px;
}

.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--ember);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto 1.25rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--gray-700);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Stagger animations */
.stagger {
  opacity: 0;
  animation: riseUp 0.7s ease forwards;
}

.stagger:nth-child(1) { animation-delay: 0s; }
.stagger:nth-child(2) { animation-delay: 0.1s; }
.stagger:nth-child(3) { animation-delay: 0.2s; }
.stagger:nth-child(4) { animation-delay: 0.3s; }
.stagger:nth-child(5) { animation-delay: 0.4s; }

.btn-primary {
  display: inline-block;
  background: var(--ember);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--ember-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--ember-glow);
}

/* ===== Coming-Soon Store Badges ===== */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.store-badge-soon {
  height: 56px;
  min-width: 172px;
  padding: 0 18px;
  background: #000;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: default;
  position: relative;
  opacity: 0.92;
}

.store-badge-soon svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.store-badge-soon-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.05;
  font-family: var(--font-body);
}

.store-badge-soon-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ember-light);
}

.store-badge-soon-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-cta .store-badges {
  margin-bottom: 2rem;
}

/* ===== In-Section CTA ===== */
.section-cta {
  margin-top: 3.5rem;
  text-align: center;
}

.section-cta-text {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.section-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.btn-sales {
  display: inline-block;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--ink);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-sales:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--ember-glow);
}

/* ===== Section Shared ===== */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-alt {
  background: var(--cream);
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 3.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* ===== About / Values ===== */
.about-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.our-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--frost), var(--ember));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--ember-light);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--ember);
}

.value-icon-frost {
  color: var(--frost);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Feature / Services Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--frost), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--ember-light);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.service-icon-frost {
  color: var(--frost);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Feature Checklist ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ember);
  margin-top: 3px;
}

@media (max-width: 700px) {
  .feature-list {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

/* ===== Pricing ===== */
.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pricing-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--frost), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--ember-light);
}

.pricing-card:hover::after {
  transform: scaleX(1);
}

.pricing-tile {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.pricing-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-currency {
  font-size: 0.55em;
  vertical-align: top;
  margin-right: 0.05em;
  color: var(--gray-700);
}

.pricing-period {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-left: 0.25em;
  letter-spacing: 0;
}

.pricing-divider {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1;
  flex-shrink: 0;
}

.pricing-fineprint {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 560px;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

.pricing-plans {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card-plan {
  flex: 1;
  min-width: 0;
  max-width: 460px;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
}

.pricing-card-pro {
  border-color: var(--ember-light);
  box-shadow: 0 8px 30px var(--ember-glow);
}

.pricing-card-pro::after {
  transform: scaleX(1);
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.pricing-tiles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.pricing-plan-desc {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  max-width: 340px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Contact CTA ===== */
.contact-cta {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ember-glow) 0%, transparent 65%);
  pointer-events: none;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.btn-outline:hover {
  background: var(--ember);
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--ember-glow);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink-dark);
  color: var(--gray-500);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  min-width: 0;
}

/* Two-tone wordmark: Therma in ember, CRM in frost (lightened for dark footer) */
.footer-logo .wordmark-therma {
  color: var(--ember-light);
}

.footer-logo .wordmark-crm {
  color: var(--frost-light);
}

.powered-by {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.powered-by a {
  color: var(--gray-300);
  font-weight: 600;
  transition: color var(--transition);
}

.powered-by a:hover {
  color: var(--ember-light);
}

/* ===== Footer Links ===== */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--ember-light);
}

/* ===== Page Content (Privacy, Terms, etc.) ===== */
.page-content {
  min-height: 50vh;
}

.page-body {
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.page-body p {
  margin-bottom: 1rem;
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-body ul li {
  margin-bottom: 0.5rem;
}

.page-body a {
  color: var(--ember);
  font-weight: 600;
  transition: color var(--transition);
}

.page-body a:hover {
  color: var(--ember-dark);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stagger,
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .our-values-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pricing-card {
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.25rem 1.75rem;
  }

  .pricing-plans {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card-plan {
    width: 100%;
    max-width: 460px;
  }

  .pricing-tiles {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-logo {
    width: 220px;
    height: 167px;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }

  .contact-cta h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }
}

@media (max-width: 480px) {
  .header .container {
    height: 60px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .logo-wordmark {
    font-size: 1.1rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }
}
