/* ========================================
   Unbox Athletics — Color Palette from Pitch Deck
   
   Cream/Ivory:   #f0efe3  (backgrounds)
   Warm Beige:    #ccc8b1  (secondary bg, borders)
   Sage Green:    #8fa28e  (accent, circles)
   Muted Teal:    #95aaa0  (secondary accent)
   Dark Olive:    #3c4a2e  (headings, dark accents)
   Deep Forest:   #2e3b25  (text, dark elements)
   ======================================== */

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

:root {
  --cream: #f0efe3;
  --cream-light: #f7f6ee;
  --beige: #ccc8b1;
  --beige-dark: #b8b49e;
  --sage: #8fa28e;
  --sage-light: #a8b8a6;
  --teal: #95aaa0;
  --olive-dark: #3c4a2e;
  --forest: #2e3b25;
  --forest-light: #4a5a3e;
  --white: #fefefe;
  --text: #2e3b25;
  --text-light: #5a6652;
  --shadow: rgba(46, 59, 37, 0.1);
  --shadow-md: rgba(46, 59, 37, 0.15);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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


/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--olive-dark);
  color: var(--cream);
  border-color: var(--olive-dark);
}

.btn-primary:hover {
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--olive-dark);
  border-color: var(--olive-dark);
}

.btn-outline:hover {
  background: var(--olive-dark);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-nav {
  padding: 10px 24px;
  font-size: 0.875rem;
}


/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(240, 239, 227, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  transition: all var(--transition);
}


/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream-light);
  padding-top: 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--beige);
  top: -100px;
  right: -50px;
  opacity: 0.5;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--sage);
  bottom: 100px;
  right: 200px;
  opacity: 0.3;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: var(--teal);
  top: 200px;
  right: 400px;
  opacity: 0.25;
}

.shape-4 {
  width: 300px;
  height: 300px;
  background: var(--olive-dark);
  bottom: -150px;
  left: -100px;
  opacity: 0.08;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* Hero Box Illustration */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-box-illustration {
  position: relative;
  width: 320px;
  height: 300px;
}

.box-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  background: var(--olive-dark);
  border-radius: 8px 8px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(46, 59, 37, 0.3);
}

.box-lid {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  width: 280px;
  height: 60px;
  background: var(--sage);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 2;
  animation: lidFloat 3s ease-in-out infinite;
}

@keyframes lidFloat {
  0%, 100% { transform: translateX(-50%) rotate(-8deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-5deg) translateY(-10px); }
}

.box-items {
  display: flex;
  gap: 16px;
}

.box-item {
  font-size: 2.5rem;
  animation: itemBounce 2s ease-in-out infinite;
}

.item-1 { animation-delay: 0s; }
.item-2 { animation-delay: 0.3s; }
.item-3 { animation-delay: 0.6s; }

@keyframes itemBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--beige-dark);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  width: 100%;
  height: 40px;
  background: var(--olive-dark);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -40px; }
  100% { top: 40px; }
}


/* ---- Section Shared Styles ---- */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.2;
}

.section-desc {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--text-light);
  font-size: 1.05rem;
}


/* ---- About Section ---- */
.about {
  background: var(--cream);
}

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

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--beige);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow);
  border-color: var(--sage-light);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ---- How It Works ---- */
.how-it-works {
  background: var(--beige);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--sage);
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--forest);
  margin-bottom: 12px;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: var(--sage);
  margin-top: 56px;
  position: relative;
}

.step-connector::after {
  content: '→';
  position: absolute;
  right: -6px;
  top: -10px;
  color: var(--sage);
  font-size: 1.2rem;
}


/* ---- Boxes / Products ---- */
.boxes {
  background: var(--cream-light);
}

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

.box-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--beige);
}

.box-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow);
}

.box-card-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--sage-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-sport-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.box-card-content {
  padding: 24px;
}

.box-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.box-card-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.box-price {
  font-weight: 700;
  color: var(--olive-dark);
  font-size: 0.95rem;
}


/* ---- Pricing ---- */
.pricing {
  background: var(--cream);
}

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

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid var(--beige);
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow);
}

.pricing-card.featured {
  border-color: var(--olive-dark);
  background: var(--forest);
  color: var(--cream);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-header {
  margin-bottom: 28px;
}

.pricing-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pricing-card.featured .pricing-header h3 {
  color: var(--cream);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--forest);
}

.pricing-card.featured .price-amount {
  color: var(--cream);
}

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

.pricing-card.featured .price-period {
  color: var(--sage-light);
}

.pricing-features {
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--beige);
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card.featured .pricing-features li {
  color: var(--sage-light);
  border-bottom-color: var(--forest-light);
}

.pricing-features li::before {
  content: '✓';
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card.featured .pricing-features li::before {
  color: var(--sage-light);
}

.pricing-card.featured .btn-primary {
  background: var(--sage);
  border-color: var(--sage);
}

.pricing-card.featured .btn-primary:hover {
  background: var(--sage-light);
  border-color: var(--sage-light);
}


/* ---- Social Proof / Stats ---- */
.social-proof {
  background: var(--olive-dark);
  color: var(--cream);
}

.social-proof .section-label {
  color: var(--sage-light);
}

.social-proof .section-header h2 {
  color: var(--cream);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--sage-light);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--beige);
  letter-spacing: 0.05em;
}


/* ---- Contact ---- */
.contact {
  background: var(--cream-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-label {
  text-align: left;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-icon {
  font-size: 1.2rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--beige);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream-light);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
}

.form-group textarea {
  resize: vertical;
}


/* ---- Footer ---- */
.footer {
  background: var(--forest);
  color: var(--beige);
  padding: 60px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--cream);
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--beige-dark);
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--beige-dark);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--sage-light);
}

.footer-bottom {
  border-top: 1px solid var(--forest-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--beige-dark);
}


/* ---- Animations (Scroll Reveal) ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid,
  .boxes-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px var(--shadow);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    flex: 0 0 40px;
    margin-top: 0;
  }

  .step-connector::after {
    content: '↓';
    right: -8px;
    top: auto;
    bottom: -4px;
  }

  .about-grid,
  .boxes-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .contact-form {
    padding: 24px;
  }
}
