/* ==============================
   TRIBO — Theme CSS
   ============================== */

:root {
  --bg: #faf7f2;
  --bg-dark: #1a3d2e;
  --fg: #1a1a1a;
  --fg-light: #6b6b6b;
  --accent: #e8622a;
  --accent-dark: #c44e1a;
  --green: #1a3d2e;
  --white: #ffffff;
  --off-white: #f5f2ed;

  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
}

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

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

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

/* ==============================
   NAV
   ============================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 61, 46, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ==============================
   HERO
   ============================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(232, 98, 42, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 70%, rgba(26, 61, 46, 0.06) 0%, transparent 70%),
    var(--bg);
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-light);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(26, 61, 46, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green);
  background: rgba(26, 61, 46, 0.04);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-end;
}

.hero-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 61, 46, 0.2);
}

.hero-img {
  display: block;
  width: 340px;
  height: 260px;
  object-fit: cover;
}

/* Cap Mockup */
.cap-mockup {
  position: relative;
  width: 280px;
}

.cap-body {
  position: relative;
  width: 220px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #111;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
}

.cap-panel {
  position: absolute;
  top: 0;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.cap-panel-1 { left: 0; width: 25%; background: #111; }
.cap-panel-2 { left: 25%; width: 25%; background: #1a1a1a; }
.cap-panel-3 { left: 50%; width: 25%; background: #141414; }
.cap-panel-4 { left: 75%; width: 25%; background: #0d0d0d; }

.cap-visor {
  position: absolute;
  bottom: -18px;
  left: -20px;
  right: -20px;
  height: 40px;
  background: #0a0a0a;
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cap-button {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2a;
}

.cap-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
}

.cap-logo svg {
  width: 100%;
  height: 100%;
}

.cap-label {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-light);
  opacity: 0.6;
}

/* Prompt Preview */
.prompt-preview {
  background: var(--green);
  color: var(--bg);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 320px;
  position: relative;
  box-shadow: 0 20px 60px rgba(26, 61, 46, 0.25);
}

.prompt-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.prompt-text {
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(250, 247, 242, 0.9);
  margin-bottom: 1rem;
}

.prompt-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.prompt-arrow svg {
  width: 20px;
  height: 20px;
}

.prompt-result {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-top: 0.25rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-light);
  opacity: 0.5;
}

/* ==============================
   SOCIAL PROOF
   ============================== */
.social-proof {
  padding: 4rem 3rem;
  background: var(--off-white);
  border-top: 1px solid rgba(26, 61, 46, 0.06);
  border-bottom: 1px solid rgba(26, 61, 46, 0.06);
}

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

.social-proof-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-light);
  margin-bottom: 2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proof-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.proof-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proof-card:hover .proof-img {
  transform: scale(1.03);
}

.proof-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, transparent 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .proof-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ==============================
   HOW IT WORKS
   ============================== */
.how {
  padding: var(--space-xl) 3rem;
  background: var(--off-white);
}

.how-header,
.products-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-light);
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid rgba(26, 61, 46, 0.08);
  transition: box-shadow 0.3s ease;
}

.step:hover {
  box-shadow: 0 12px 40px rgba(26, 61, 46, 0.1);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(26, 61, 46, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg-light);
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3rem;
  width: 40px;
}

.step-connector svg {
  width: 40px;
  height: 80px;
}

/* ==============================
   PRODUCTS
   ============================== */
.products {
  padding: var(--space-xl) 3rem;
  background: var(--bg);
}

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

.product-card {
  background: var(--off-white);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(26, 61, 46, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 61, 46, 0.12);
}

.product-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-tee {
  object-position: center 30%;
}

.product-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* Mini Cap */
.product-mini-cap {
  position: relative;
  width: 100px;
}

.mini-cap-dome {
  width: 90px;
  height: 55px;
  background: var(--green);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  position: relative;
}

.mini-cap-dome::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.mini-cap-visor {
  width: 120px;
  height: 22px;
  background: var(--green);
  border-radius: 0 0 80% 80% / 0 0 200% 200%;
  margin: 0 auto;
}

/* Mini Tee */
.product-mini-tee {
  position: relative;
  width: 100px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-tee-body {
  width: 60px;
  height: 80px;
  background: var(--fg);
  border-radius: 4px;
  position: relative;
}

.mini-tee-body::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.mini-tee-sleeve-left,
.mini-tee-sleeve-right {
  position: absolute;
  width: 25px;
  height: 30px;
  background: var(--fg);
  top: 12px;
}

.mini-tee-sleeve-left { left: 2px; border-radius: 4px 0 0 4px; }
.mini-tee-sleeve-right { right: 2px; border-radius: 0 4px 4px 0; }

/* Mini Hoodie */
.product-mini-hoodie {
  position: relative;
  width: 100px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-hoodie-body {
  width: 65px;
  height: 85px;
  background: var(--fg);
  border-radius: 6px;
  position: relative;
}

.mini-hoodie-body::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.mini-hoodie-hood {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 35px;
  background: var(--fg);
  border-radius: 50% 50% 0 0;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--fg-light);
  margin-bottom: 0.75rem;
}

.product-material {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ==============================
   QUOTE
   ============================== */
.quote-section {
  padding: var(--space-xl) 3rem;
  background: var(--green);
  color: var(--bg);
}

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

.quote-mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.7;
  font-style: italic;
  color: rgba(250, 247, 242, 0.92);
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.5);
}

/* ==============================
   CLOSING
   ============================== */
.closing {
  padding: var(--space-xl) 3rem;
  background: var(--bg);
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1rem;
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-light);
  margin-bottom: 3rem;
}

.closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--off-white);
  border: 1px solid rgba(26, 61, 46, 0.15);
  border-radius: 100px;
  padding: 1rem 2rem;
}

.cta-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.cta-text {
  font-size: 0.9rem;
  color: var(--fg-light);
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  padding: 3rem;
  background: var(--green);
  color: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-mark-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.6);
  font-style: italic;
}

.footer-copy {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.4);
  letter-spacing: 0.04em;
}

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

  .hero-visual {
    align-items: center;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-connector {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }

  .nav {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .how,
  .products,
  .closing {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .cap-mockup {
    width: 220px;
  }

  .prompt-preview {
    max-width: 100%;
  }
}