/* =========================================
   TrimOS — Wellness Business Operating System
   ========================================= */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --primary: #1c2b1a;
  --accent: #e07b39;
  --text: #1c2b1a;
  --muted: #6b7a65;
  --border: #e2e8d8;
  --card-bg: #f0f5ec;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* — Typography — */
h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.section-tag {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary);
  margin-bottom: 56px;
}

/* — Navigation — */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

/* — Hero — */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  padding: 80px 60px 100px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 123, 57, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-heading {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.hero-card-accent {
  background: rgba(224, 123, 57, 0.15);
  border-color: rgba(224, 123, 57, 0.3);
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.card-metric {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.card-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* — Hero Aside — */
.hero-aside {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.aside-quote {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 28px 28px 32px;
}

.aside-text {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.aside-author {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* — How — */
.how {
  padding: 100px 60px;
  background: var(--surface);
}

.how-header {
  margin-bottom: 72px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.step {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--border);
}

.step:last-child { border-right: none; }
.step:not(:first-child) { padding-left: 40px; }

.step-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--card-bg);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* — Features — */
.features {
  padding: 100px 60px;
  background: var(--bg);
}

.features-header {
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s ease;
}

.feature-card:hover { background: #f6faf3; }

.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* — Testimonials — */
.testimonials {
  padding: 100px 60px;
  background: var(--primary);
}

.testimonials-header {
  margin-bottom: 64px;
}

.testimonials .section-tag { color: var(--accent); }
.testimonials .section-title { color: #ffffff; }

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

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 32px;
}

.testimonial-card-quote {
  border-color: rgba(224, 123, 57, 0.3);
  background: rgba(224, 123, 57, 0.08);
}

.testimonial-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* — Vision — */
.vision {
  padding: 120px 60px;
  background: var(--surface);
  text-align: center;
}

.vision-inner {
  max-width: 760px;
  margin: 0 auto;
}

.vision-heading {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--primary);
  margin-bottom: 28px;
  line-height: 1.25;
}

.vision-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* — Footer — */
.footer {
  padding: 40px 60px;
  background: var(--primary);
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* — Animations — */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* — Mobile — */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px 80px;
  }
  .hero-aside { display: none; }
  .how { padding: 80px 24px; }
  .how-steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0; }
  .step:not(:first-child) { padding-left: 0; }
  .features { padding: 80px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials { padding: 80px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .vision { padding: 80px 24px; }
  .footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-visual { grid-template-columns: 1fr; }
  .hero-heading { font-size: 32px; }
}