/* ── Treino.net · Institutional Landing ─────────────────────
   Table of contents:
   1. Custom Properties
   2. Reset & Base
   3. Background Decorations
   4. Header
   5. Main Layout
   6. Hero
   7. About Section
   8. Products Section
   9. Footer
   10. Keyframe Animations
   11. Responsive – Desktop  (min-width: 900px)
   12. Responsive – Mobile   (max-width: 480px)
── */

/* ═══════════════════════════════════════════════════════════
   1. Custom Properties
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Primary – brand green */
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --primary-light: #4ade80;
  --primary-muted: rgba(34, 197, 94, 0.12);
  --primary-glow: rgba(34, 197, 94, 0.45);

  /* Secondary green tones */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-900: #14532d;

  /* Base dark */
  --black: #1a2332;

  /* Surfaces */
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-section: #f8faf9;
  --border: rgba(26, 35, 50, 0.08);
  --border-focus: rgba(26, 35, 50, 0.15);

  /* Text */
  --text: var(--black);
  --text-muted: #475569;
  --text-subtle: #94a3b8;

  /* Accent (alias) */
  --accent: var(--primary);
  --accent-hover: var(--primary-hover);
  --accent-muted: var(--primary-muted);

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.4s;

  /* Spacing */
  --section-padding: 5rem 1.5rem;
  --container-max: 1120px;
}

/* ═══════════════════════════════════════════════════════════
   2. Reset & Base
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ═══════════════════════════════════════════════════════════
   3. Background Decorations
   ═══════════════════════════════════════════════════════════ */

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(34, 197, 94, 0.12) 40%, transparent 70%);
  top: -250px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.gradient-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(74, 222, 128, 0.08) 50%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: float 16s ease-in-out infinite reverse;
}

.gradient-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 22s ease-in-out infinite 3s;
}

/* ═══════════════════════════════════════════════════════════
   4. Header
   ═══════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease-out);
}

.header__brand:hover {
  opacity: 0.85;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-heading);
}

.header__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__name--treino {
  color: var(--text);
}

.header__name--dot {
  color: var(--primary);
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.header__nav-link:hover {
  color: var(--text);
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   5. Sections – Shared
   ═══════════════════════════════════════════════════════════ */

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.375rem 0.875rem;
  background: var(--primary-muted);
  border-radius: 999px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ═══════════════════════════════════════════════════════════
   6. Hero
   ═══════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-hover);
  background: var(--primary-muted);
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s var(--ease-out) 0.05s both;
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #86efac 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.7s var(--ease-out) 0.15s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  text-decoration: none;
}

.btn--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-focus);
  background: var(--bg-section);
}

.btn__arrow {
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Hero stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   7. About Section
   ═══════════════════════════════════════════════════════════ */

.about {
  background: var(--bg-section);
}

.about__grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.about__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.about__card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.about__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.about__card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   8. Products Section
   ═══════════════════════════════════════════════════════════ */

.products__grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.product-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.product-card__body {
  padding: 2rem;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-muted);
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.product-card__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-card__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-card__feature {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-section);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  transition: gap 0.2s var(--ease-out);
}

.product-card__link:hover {
  gap: 0.75rem;
}

/* Coming Soon card variant */
.product-card--soon {
  border-style: dashed;
  background: var(--bg-section);
}

.product-card--soon .product-card__image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px dashed var(--border);
}

.product-card__badge--soon {
  color: var(--text-subtle);
  background: rgba(148, 163, 184, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   9. Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer__logo-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 11px;
  font-family: var(--font-heading);
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-subtle);
  transition: color 0.2s var(--ease-out);
}

.footer__link:hover {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   10. Keyframe Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -25px);
  }
  66% {
    transform: translate(-20px, 15px);
  }
}

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

/* ═══════════════════════════════════════════════════════════
   11. Responsive – Desktop (min-width: 900px)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero__title {
    font-size: 4.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   12. Responsive – Tablet (max-width: 899px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 899px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 105;
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__nav-link {
    font-size: 1.125rem;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   13. Responsive – Mobile (max-width: 480px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  :root {
    --section-padding: 3.5rem 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
    min-height: auto;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .about__card {
    padding: 1.5rem;
  }

  .product-card__body {
    padding: 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}
