/* ============================================================
   SimpleStack — Custom landing page CSS
   ============================================================ */

/* --- Variables --- */
:root {
  --bg: #FAF8F5;
  --fg: #1C1917;
  --accent: #C4793A;
  --accent-dark: #7A4F2A;
  --cream: #E8DCC8;
  --muted: #A89880;
  --white: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Selection --- */
::selection { background: var(--accent); color: var(--white); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 190, 175, 0.25);
}

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

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

.nav-logo-mark {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}

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

/* --- Section Labels --- */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 40%, rgba(200, 180, 160, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream), transparent);
}

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

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(196, 121, 58, 0.3);
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--fg);
}

.hero-headline-line {
  display: block;
}

.hero-headline-accent {
  color: var(--accent);
}

.hero-subhead {
  font-size: 17px;
  line-height: 1.7;
  color: #5A5048;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-proof-stat {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-proof-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-proof-divider {
  width: 1px;
  height: 32px;
  background: var(--cream);
}

/* Hero Right — Product Grid */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-visual-caption {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}

.hero-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 20px rgba(196, 121, 58, 0.08), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(232, 220, 200, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(196, 121, 58, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* T-Shirt */
.product-shirt {
  width: 80px;
  height: 65px;
  position: relative;
}
.shirt-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 42px;
  background: linear-gradient(135deg, #F5EFE6 0%, #E8DCC8 100%);
  border-radius: 4px 4px 6px 6px;
  border: 1px solid rgba(196,121,58,0.2);
}
.shirt-body::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 10px;
  background: linear-gradient(135deg, #F5EFE6 0%, #E8DCC8 100%);
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(196,121,58,0.2);
  border-bottom: none;
}
.shirt-graphic {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 30px;
}
.shirt-graphic svg { width: 100%; height: 100%; }

/* Mug */
.product-mug {
  width: 50px;
  height: 50px;
  position: relative;
}
.mug-body {
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 32px;
  height: 36px;
  background: linear-gradient(135deg, #F5EFE6 0%, #E8DCC8 100%);
  border-radius: 4px 4px 8px 8px;
  border: 1px solid rgba(196,121,58,0.2);
}
.mug-handle {
  position: absolute;
  bottom: 8px;
  right: 2px;
  width: 14px;
  height: 20px;
  border: 2px solid rgba(196,121,58,0.3);
  border-left: none;
  border-radius: 0 10px 10px 0;
}
.mug-texture {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 1px;
}

/* Poster */
.product-poster {
  width: 40px;
  height: 52px;
}
.poster-frame {
  width: 40px;
  height: 52px;
  background: linear-gradient(135deg, #F5EFE6 0%, #E8DCC8 100%);
  border: 2px solid rgba(196,121,58,0.25);
  border-radius: 2px;
  padding: 4px;
}
.poster-art { width: 100%; height: 100%; }
.poster-art svg { width: 100%; height: 100%; }

/* Tote */
.product-tote {
  width: 60px;
  height: 50px;
  position: relative;
}
.tote-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 36px;
  background: linear-gradient(135deg, #F5EFE6 0%, #E8DCC8 100%);
  border-radius: 4px 4px 6px 6px;
  border: 1px solid rgba(196,121,58,0.2);
}
.tote-strap {
  position: absolute;
  top: 0;
  width: 6px;
  height: 20px;
  background: linear-gradient(135deg, #E8DCC8 0%, #C9B89A 100%);
  border-radius: 3px 3px 0 0;
  border: 1px solid rgba(196,121,58,0.15);
}
.tote-strap-left { left: 12px; }
.tote-strap-right { right: 12px; }

.product-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   THE STACK
   ============================================================ */
.stack-section {
  padding: 120px 40px;
  background: var(--fg);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.stack-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,121,58,0.4), transparent);
}

.stack-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.stack-header .section-label {
  color: var(--accent);
}

.stack-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--bg);
}

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

.stack-item {
  background: #252220;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s ease;
}

.stack-item:hover {
  background: #2D2A27;
}

.stack-item-icon {
  margin-bottom: 24px;
}

.stack-item-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.stack-item-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(250,248,245,0.55);
  margin-bottom: 20px;
}

.stack-item-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(196,121,58,0.3);
  border-radius: 2px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.works-section {
  padding: 120px 40px;
  background: var(--bg);
}

.works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.works-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--fg);
}

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

.works-step {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--cream);
}

.works-step:last-child {
  border-bottom: none;
}

.works-step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: rgba(196,121,58,0.15);
  line-height: 1;
}

.works-step-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.works-step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #6A6058;
  max-width: 520px;
}

.works-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), rgba(196,121,58,0.1));
  margin-left: 80px;
  border-radius: 1px;
}

/* Step Visuals */
.works-step-visual { display: flex; align-items: center; justify-content: flex-end; }

/* Visual 1: Grid */
.works-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100px;
}

.works-grid-cell {
  height: 28px;
  background: linear-gradient(135deg, #F5EFE6, #E8DCC8);
  border-radius: 4px;
  border: 1px solid rgba(196,121,58,0.15);
}

.works-grid-cell:nth-child(2) { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.works-grid-cell:nth-child(5) { background: linear-gradient(135deg, var(--cream), #C9B89A); }

/* Visual 2: Progress bars */
.works-progress {
  width: 100%;
  height: 6px;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.works-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
}

.works-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Visual 3: Revenue */
.works-revenue { width: 100%; }

.works-revenue-bar {
  height: 8px;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.works-revenue-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--accent), #D4954A);
  border-radius: 4px;
}

.works-revenue-dots {
  display: flex;
  gap: 6px;
}

.works-revenue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.works-revenue-dot:first-child { opacity: 1; }

/* ============================================================
   THE PRODUCTS
   ============================================================ */
.products-section {
  padding: 120px 40px;
  background: var(--cream);
  position: relative;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,121,58,0.3), transparent);
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.products-header {
  text-align: center;
  margin-bottom: 72px;
}

.products-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 16px;
}

.products-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

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

.product-type {
  background: var(--bg);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid rgba(200,190,175,0.5);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-type:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(196,121,58,0.1);
}

.product-type-featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(196,121,58,0.1);
}

.pt-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.product-type-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* PT Shirt */
.pt-shirt {
  width: 70px;
  height: 58px;
  position: relative;
}
.pt-shirt-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 40px;
  background: var(--cream);
  border-radius: 4px 4px 8px 8px;
  border: 1px solid rgba(196,121,58,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-shirt-body::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  background: var(--cream);
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(196,121,58,0.15);
  border-bottom: none;
}
.pt-graphic {
  width: 30px;
  height: 24px;
}
.pt-graphic svg { width: 100%; height: 100%; }

/* PT Mug */
.pt-mug {
  width: 48px;
  height: 48px;
  position: relative;
}
.pt-mug-body {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 32px;
  height: 38px;
  background: var(--cream);
  border-radius: 4px 4px 10px 10px;
  border: 1px solid rgba(196,121,58,0.15);
}
.pt-mug-handle {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 12px;
  height: 18px;
  border: 2px solid rgba(196,121,58,0.2);
  border-left: none;
  border-radius: 0 8px 8px 0;
}

/* PT Poster */
.pt-poster {
  width: 36px;
  height: 48px;
}
.pt-poster-frame {
  width: 36px;
  height: 48px;
  background: var(--cream);
  border: 2px solid rgba(196,121,58,0.2);
  border-radius: 2px;
  padding: 4px;
}
.pt-poster-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-poster-inner svg { width: 20px; height: 100%; }

.product-type-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.product-type-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #6A6058;
  margin-bottom: 16px;
}

.product-type-meta {
  display: flex;
  align-items: center;
}

.pt-margin {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy-section {
  padding: 120px 40px;
  background: var(--bg);
  position: relative;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream), transparent);
}

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

.philosophy-quote {
  margin-bottom: 48px;
}

.philosophy-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--fg);
}

.philosophy-text + .philosophy-text {
  color: var(--accent);
}

.philosophy-body {
  font-size: 16px;
  line-height: 1.8;
  color: #6A6058;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing-section {
  padding: 120px 40px;
  background: var(--fg);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.closing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,121,58,0.4), transparent);
}

.closing-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(196,121,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--bg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(250,248,245,0.55);
  margin-bottom: 56px;
}

.closing-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 56px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.closing-stat { text-align: center; }

.closing-stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.closing-stat-label {
  font-size: 12px;
  color: rgba(250,248,245,0.45);
  letter-spacing: 0.5px;
}

.closing-vibe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(250,248,245,0.35);
}

.closing-vibe-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: rgba(250,248,245,0.5);
}

.closing-vibe a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
}

.closing-vibe a:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px;
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

.footer-logo-mark {
  font-size: 14px;
  color: var(--accent);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: rgba(250,248,245,0.6);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(250,248,245,0.3);
}

.footer-powered {
  font-size: 12px;
  color: rgba(250,248,245,0.25);
}

.footer-powered a {
  color: rgba(196,121,58,0.6);
  text-decoration: none;
}

.footer-powered a:hover {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    order: -1;
  }

  .hero-product-grid {
    max-width: 360px;
  }

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

  .works-step {
    grid-template-columns: 60px 1fr;
    gap: 24px;
  }

  .works-step-visual {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .closing-stats {
    flex-direction: column;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-tagline {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 24px 60px;
  }

  .stack-section,
  .works-section,
  .products-section,
  .philosophy-section,
  .closing-section {
    padding: 80px 24px;
  }

  .works-step {
    grid-template-columns: 1fr;
  }

  .works-step-num {
    font-size: 36px;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-proof-divider {
    display: none;
  }
}