/* ==========================================
   MassimoOS — Landing Page Stylesheet
   ========================================== */

:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE8DC;
  --forest: #1A2E1A;
  --forest-mid: #2D4A2D;
  --forest-light: #3D6A3D;
  --copper: #C17F4E;
  --copper-light: #D4956A;
  --stone: #8C7B6B;
  --ink: #1A1A18;
  --ink-light: #4A4A45;
  --parchment: #F5F0E8;
  --white: #FFFFFF;
}

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

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

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

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.hero-inner {
  padding: 80px 64px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.hero-kicker {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--forest);
  margin-bottom: 28px;
}

.hero-sub p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 420px;
  font-weight: 300;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--copper);
  margin: 40px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
  border-right: 1px solid rgba(193,127,78,0.25);
  margin-right: 40px;
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Hero visual — gradient landscape */
.hero-visual {
  position: relative;
  background: var(--forest);
  display: flex;
  flex-direction: column;
}

.hero-image-frame {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  /* Multi-layer atmospheric gradient — mountain terrain */
  background:
    linear-gradient(180deg,
      #2A3D28 0%,
      #1A2E1A 15%,
      #0F1F0F 30%,
      #1A2E1A 45%,
      #243524 60%,
      #1E2E1E 75%,
      #162016 100%
    );
}

/* Mountain silhouette layers */
.hero-gradient-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background:
    linear-gradient(165deg,
      transparent 0%,
      #162016 20%,
      #1A2E1A 40%,
      transparent 60%,
      #243524 80%,
      #1A2E1A 100%
    );
}

/* Subtle texture overlay */
.hero-gradient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.015) 3px,
      rgba(255,255,255,0.015) 4px
    );
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(10,15,10,0.85) 0%, rgba(10,15,10,0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.overlay-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.overlay-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.7);
}

.overlay-price {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--copper-light);
}

.hero-caption {
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  background: var(--forest);
  text-align: center;
}

/* ---- PROVENANCE ---- */
.provenance {
  background: var(--forest);
  padding: 120px 80px;
}

.provenance-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.provenance-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 28px;
}

.provenance-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: 32px;
}

.provenance-body p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245,240,232,0.7);
  max-width: 640px;
  margin-bottom: 56px;
  font-weight: 300;
}

.provenance-timeline {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(193,127,78,0.3);
}

.timeline-item {
  flex: 1;
  padding: 28px 32px 28px 0;
  border-right: 1px solid rgba(193,127,78,0.2);
  padding-right: 40px;
}

.timeline-item:first-child {
  padding-left: 0;
}

.timeline-item:last-child {
  border-right: none;
  padding-right: 0;
}

.timeline-year {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--copper);
  margin-bottom: 8px;
}

.timeline-event {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245,240,232,0.6);
  font-weight: 400;
}

/* ---- CRAFT ---- */
.craft {
  padding: 120px 80px;
  background: var(--bg);
}

.craft-header {
  max-width: 1100px;
  margin: 0 auto 72px;
}

.craft-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.craft-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--forest);
}

.craft-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--forest);
}

.craft-card {
  background: var(--bg);
  padding: 48px 44px;
  transition: background 0.3s ease;
}

.craft-card:hover {
  background: var(--bg-alt);
}

.craft-icon {
  margin-bottom: 28px;
}

.craft-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 14px;
}

.craft-card-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-light);
  font-weight: 300;
}

/* ---- LINEAGE ---- */
.lineage {
  background: var(--bg-alt);
  padding: 120px 80px;
}

.lineage-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.lineage-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 32px;
}

.lineage-stat-stack {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 24px;
  align-items: baseline;
}

.lineage-big {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--forest);
  grid-column: 1;
}

.lineage-desc {
  font-size: 14px;
  color: var(--ink-light);
  font-weight: 300;
  grid-column: 2;
  align-self: center;
}

.lineage-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 24px;
}

.lineage-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
  font-weight: 300;
  margin-bottom: 36px;
}

.lineage-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tag {
  padding: 8px 16px;
  background: var(--forest);
  color: var(--parchment);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--forest);
  padding: 120px 80px;
}

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

.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--copper);
  margin: 0 auto 56px;
}

.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--parchment);
  margin-bottom: 40px;
}

.closing-body {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(245,240,232,0.6);
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto 56px;
}

.closing-models {
  border-top: 1px solid rgba(193,127,78,0.25);
  padding-top: 40px;
}

.model-list-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.model-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  color: rgba(245,240,232,0.5);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.5;
  display: inline-block;
}

/* ---- CLOSING CTA ---- */
.closing-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(193,127,78,0.2);
  text-align: center;
}

.cta-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--copper);
  color: var(--parchment);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.cta-button:hover { background: var(--copper-light); }

.cta-note {
  font-size: 12px;
  color: rgba(245,240,232,0.35);
  font-weight: 300;
}

/* ---- FOOTER ---- */
.footer {
  background: #0D160D;
  padding: 48px 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--parchment);
  margin-bottom: 16px;
}

.footer-meta {
  font-size: 13px;
  color: rgba(245,240,232,0.4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-meta a {
  color: var(--copper-light);
  text-decoration: none;
}

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

.footer-sep {
  opacity: 0.3;
}

.footer-legal {
  font-size: 11px;
  color: rgba(245,240,232,0.2);
  line-height: 1.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    height: 60vw;
    min-height: 300px;
  }

  .hero-inner {
    padding: 64px 40px 56px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, auto);
    gap: 24px;
  }

  .stat {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .provenance {
    padding: 80px 40px;
  }

  .provenance-timeline {
    flex-direction: column;
    gap: 0;
  }

  .timeline-item {
    border-right: none;
    border-bottom: 1px solid rgba(193,127,78,0.15);
    padding: 24px 0;
  }

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

  .craft {
    padding: 80px 40px;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .lineage {
    padding: 80px 40px;
  }

  .lineage-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .closing {
    padding: 80px 40px;
  }

  .footer {
    padding: 48px 40px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 48px 24px 40px;
  }

  .hero-headline {
    font-size: 40px;
  }

  .provenance,
  .craft,
  .lineage,
  .closing {
    padding: 64px 24px;
  }

  .footer {
    padding: 40px 24px;
  }

  .model-list {
    font-size: 14px;
    gap: 8px;
  }
}