/* ============================================================
   SolarSage PH — Brand styles
   Solar Orange #E87722 | Harvest Gold #F5A623 | Deep Solar #B4500A
   Sun Yellow #FFD23C | Midnight Dark #1C1C1C | Warm Cream #FAF8F3
   Typography: Big Shoulders Display (display) + Poppins (body)
   Design rule: straight corners, 4px radius maximum
   ============================================================ */

:root {
  --solar-orange: #E87722;
  --harvest-gold: #F5A623;
  --deep-solar: #B4500A;
  --sun-yellow: #FFD23C;
  --midnight: #1C1C1C;
  --charcoal: #2C2C2C;
  --warm-cream: #FAF8F3;
  --warm-cream-2: #F2EFE5;
  --pure-white: #FFFFFF;
  --text-dark: #1C1C1C;
  --text-muted: #6A6A6A;
  --text-light: rgba(255,255,255,0.9);
  --text-light-muted: rgba(255,255,255,0.6);

  --font-display: 'Big Shoulders Display', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-card: 4px;

  --container-max: 1180px;
  --section-pad-y: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 119, 34, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--pure-white);
  letter-spacing: -0.01em;
}

.logo-ph {
  color: var(--solar-orange);
  margin-left: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--text-light-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.site-nav a:hover { color: var(--solar-orange); }

.nav-cta {
  background: var(--solar-orange);
  color: var(--pure-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 180ms ease;
}

.nav-cta:hover { background: var(--deep-solar) !important; color: var(--pure-white) !important; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .logo-text { font-size: 19px; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, background 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--solar-orange);
  color: var(--pure-white);
  box-shadow: 0 6px 24px rgba(232, 119, 34, 0.35);
}

.btn-primary:hover {
  background: var(--deep-solar);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(232, 119, 34, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--pure-white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  border-color: var(--solar-orange);
  color: var(--solar-orange);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--midnight);
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
  color: var(--pure-white);
}

.hero-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 70vw;
  max-width: 700px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-sun {
  width: 100%;
  height: auto;
  animation: rays-rotate 80s linear infinite;
}

@keyframes rays-rotate {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(232, 119, 34, 0.4);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--harvest-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-title-accent {
  color: var(--solar-orange);
}

.hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-light-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 700px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--solar-orange);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .stat-divider { display: none; }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: var(--section-pad-y) 0;
}

.section-light {
  background: var(--warm-cream);
  color: var(--text-dark);
}

.section-dark {
  background: var(--charcoal);
  color: var(--pure-white);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--solar-orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
}

.section-dark .section-sub {
  color: var(--text-light-muted);
}

/* ============================================================
   Steps (How it works)
   ============================================================ */

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

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--pure-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28,28,28,0.08);
  border-color: rgba(232,119,34,0.3);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--solar-orange);
  line-height: 1;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.step-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Chat (AI Consultant)
   ============================================================ */

.chat {
  max-width: 760px;
  margin: 0 auto;
  background: var(--midnight);
  border: 1px solid rgba(232, 119, 34, 0.25);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(232, 119, 34, 0.08);
  border-bottom: 1px solid rgba(232, 119, 34, 0.2);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--pure-white);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.1); }
}

.chat-log {
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  max-width: 85%;
  animation: msg-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
  align-self: flex-start;
}

.msg-user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-card);
  font-size: 15px;
  line-height: 1.5;
}

.msg-bot .msg-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--pure-white);
  border: 1px solid rgba(255,255,255,0.08);
}

.msg-user .msg-bubble {
  background: var(--solar-orange);
  color: var(--pure-white);
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  background: var(--midnight);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.chat-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--pure-white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease;
}

.chat-input::placeholder { color: rgba(255,255,255,0.35); }

.chat-input:focus {
  border-color: var(--solar-orange);
  background: rgba(255,255,255,0.06);
}

.chat-send {
  padding: 14px 22px;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.chat-option-btn {
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,119,34,0.4);
  border-radius: var(--radius);
  color: var(--harvest-gold);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
}

.chat-option-btn:hover {
  background: var(--solar-orange);
  color: var(--pure-white);
  border-color: var(--solar-orange);
}

/* Recommendation card inside chat */
.rec-card {
  background: linear-gradient(135deg, rgba(232,119,34,0.12), rgba(255,210,60,0.06));
  border: 1px solid rgba(232,119,34,0.4);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-top: 6px;
}

.rec-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--sun-yellow);
  margin-bottom: 10px;
}

.rec-card-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rec-card-row:last-of-type { border-bottom: 0; }

.rec-card-label { color: rgba(255,255,255,0.6); }

.rec-card-value {
  color: var(--pure-white);
  font-weight: 600;
}

.rec-card-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--solar-orange);
  color: var(--pure-white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   Features (Why us)
   ============================================================ */

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

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--pure-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 200ms ease, transform 200ms ease;
}

.feature:hover {
  border-color: rgba(232,119,34,0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--solar-orange);
  color: var(--pure-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  border-radius: var(--radius-card);
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   Final CTA section
   ============================================================ */

.section-cta {
  background: linear-gradient(135deg, var(--solar-orange), var(--deep-solar));
  color: var(--pure-white);
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
}

.section-cta .btn-primary {
  background: var(--midnight);
  color: var(--pure-white);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.section-cta .btn-primary:hover {
  background: var(--pure-white);
  color: var(--solar-orange);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--midnight);
  color: var(--text-light-muted);
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  width: 42px;
  height: 42px;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--pure-white);
}

.footer-tag {
  font-size: 13px;
  color: var(--text-light-muted);
}

.footer-meta {
  text-align: right;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  justify-content: flex-end;
}

.footer-links a:hover { color: var(--solar-orange); }

@media (max-width: 600px) {
  .footer-meta { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
