/* ========================================
   FrameOS — Theme Stylesheet
   ======================================== */

:root {
  --bg: #F8F6F1;
  --bg-alt: #EFEDE7;
  --fg: #1A1A1A;
  --fg-muted: #6B6560;
  --accent: #D4662A;
  --accent-light: #F0C9A8;
  --sage: #7A8C72;
  --sage-light: #C5D3BE;
  --border: #DDD9D1;
  --white: #FFFFFF;
  --dash-bg: #1C1C1C;
  --dash-surface: #262626;
  --dash-border: #3A3A3A;
  --dash-text: #E8E4DE;
  --dash-muted: #8A8680;
  --dash-green: #6BBF78;
  --dash-amber: #E8A83E;
  --dash-red: #E85C4A;
}

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

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

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 3rem;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(212, 102, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.65;
}

/* ---- DASHBOARD MOCK ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-mock {
  background: var(--dash-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}

.dash-topbar {
  background: var(--dash-surface);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dash-border);
}

.dash-logo {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-nav {
  display: flex;
  gap: 0.25rem;
}

.dash-nav-item {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dash-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.dash-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: var(--dash-text);
}

.dash-body {
  padding: 1.25rem;
}

.dash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--dash-surface);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--dash-border);
}

.stat-card.accent {
  border-color: var(--dash-amber);
  background: rgba(232, 168, 62, 0.08);
}

.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dash-text);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-card.accent .stat-num {
  color: var(--dash-amber);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--dash-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lead-item {
  background: var(--dash-surface);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--dash-border);
  transition: border-color 0.2s;
}

.lead-item:hover {
  border-color: rgba(255,255,255,0.15);
}

.lead-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lead-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dash-text);
}

.lead-type {
  font-size: 0.68rem;
  color: var(--dash-muted);
}

.lead-status {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.lead-status.hot {
  background: rgba(232, 92, 74, 0.2);
  color: #E85C4A;
}

.lead-status.quote {
  background: rgba(232, 168, 62, 0.15);
  color: #E8A83E;
}

.lead-status.new {
  background: rgba(107, 191, 120, 0.15);
  color: #6BBF78;
}

.lead-status.follow {
  background: rgba(122, 140, 114, 0.2);
  color: #9FB394;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.8rem;
  margin-top: 4rem;
  justify-content: center;
}

/* ---- FEATURES ---- */
.features {
  padding: 6rem 4rem;
  background: var(--white);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 2.5rem;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 8rem 4rem;
  background: var(--fg);
  color: var(--white);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.manifesto-label .line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.manifesto-label .text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  font-style: normal;
}

.manifesto-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ---- PRINCIPLES ---- */
.principles {
  padding: 6rem 4rem;
  background: var(--bg);
}

.principles-header {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.principles-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}

.principles-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.principle-item:last-child {
  border-bottom: none;
}

.principle-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  padding-top: 0.2rem;
}

.principle-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.principle-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 4rem;
  background: var(--accent);
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.closing p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
}

/* ---- FOOTER ---- */
.footer {
  padding: 2.5rem 4rem;
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .dashboard-mock {
    max-width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .principle-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .hero, .features, .manifesto, .principles, .closing, .footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero {
    padding-top: 7rem;
  }
  .dash-row {
    grid-template-columns: 1fr 1fr;
  }
  .dash-row .stat-card:last-child {
    grid-column: span 2;
  }
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 4rem;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 400;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover { background: #b85a22; }

@media (max-width: 768px) {
  .nav { padding: 0.75rem 1.25rem; }
  .nav-tagline { display: none; }
}