/* ==========================================================================
   Carreira Comercial - Main Stylesheet
   Design System, Utilities, and Responsive Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-dark: #0b0c0e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  --bg-cta-box: linear-gradient(180deg, rgba(20, 32, 25, 0.9), rgba(8, 12, 10, 0.95));
  --bg-btn-primary: linear-gradient(180deg, #45e888, #17ab5c);
  --bg-btn-primary-hover: linear-gradient(180deg, #5cf79a, #1cc26a);

  --text-main: #f2efe9;
  --text-muted: rgba(242, 239, 233, 0.72);
  --text-subtle: rgba(242, 239, 233, 0.5);
  --text-dim: rgba(242, 239, 233, 0.3);
  --text-white-80: rgba(255, 255, 255, 0.82);
  --text-white-90: rgba(255, 255, 255, 0.9);

  --primary-green: #2fbf6d;
  --primary-green-light: #7ef7b0;
  --primary-green-glow: rgba(47, 191, 109, 0.14);
  --primary-green-border: rgba(47, 191, 109, 0.2);

  --accent-red: #e63935;
  --accent-red-bright: #ff4b45;
  --accent-red-bg: rgba(230, 57, 53, 0.08);
  --accent-red-border: rgba(230, 57, 53, 0.45);

  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Fonts */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container-max-width: 1080px;
  --container-wide-max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a:hover {
  color: rgba(255, 255, 255, 0.75);
}

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

/* --------------------------------------------------------------------------
   3. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(52, 199, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 123, 0);
  }
}

@keyframes floatLight {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-radial {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
  animation: floatLight 8s ease-in-out infinite;
}

.hero-container {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 56px 24px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

/* Red Exclusive Badge */
.badge-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--accent-red-border);
  border-radius: 999px;
  background: var(--accent-red-bg);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  display: block;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-red);
}

/* Main Title */
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-title-highlight {
  display: block;
  color: var(--primary-green);
  font-weight: 600;
}

/* Subtitle */
.hero-subtitle {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Image Banner Container */
.hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-top: 14px;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(47, 191, 109, 0.3);
  box-shadow: 0 0 70px var(--primary-green-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 85px rgba(47, 191, 109, 0.22);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-line {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 191, 109, 0), var(--primary-green-light), rgba(47, 191, 109, 0));
}

.hero-image-caption {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.spacer-hero {
  height: 48px;
}

/* --------------------------------------------------------------------------
   5. Overview Text Section
   -------------------------------------------------------------------------- */
.section-overview {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.text-overview {
  margin: 0 auto;
  max-width: 70ch;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--text-white-80);
  text-align: center;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   6. Benefits & Curriculum Grid Section
   -------------------------------------------------------------------------- */
.section-grid {
  max-width: var(--container-wide-max-width);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.grid-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-align: center;
}

.grid-title-highlight {
  display: block;
  color: var(--primary-green);
}

/* Arrow Separator */
.arrow-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
}

.arrow-line {
  width: min(520px, 70%);
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 191, 109, 0), rgba(47, 191, 109, 0.75), rgba(47, 191, 109, 0));
}

.arrow-head {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--primary-green);
  opacity: 0.85;
}

/* Grid Layout */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* Feature Cards */
.card-benefit {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 30px;
  border-radius: 20px;
  background: var(--bg-card-gradient);
  border: 1px solid var(--primary-green-border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-benefit:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 191, 109, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-top-line {
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 191, 109, 0), var(--primary-green), rgba(47, 191, 109, 0));
}

.card-pattern-dots {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 34px;
  height: 26px;
  opacity: 0.3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 8px 8px;
}

.card-check-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  background: radial-gradient(circle, rgba(47, 191, 109, 0.22), rgba(47, 191, 109, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(47, 191, 109, 0.3);
}

.card-text {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-white-90);
  text-wrap: pretty;
}

.card-text-negative {
  color: var(--accent-red-bright);
  font-weight: 700;
}

/* Wide Featured Card (Revenue Proof) */
.card-featured {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
  border-radius: 20px;
  border: 1px solid rgba(47, 191, 109, 0.5);
  background: linear-gradient(180deg, rgba(47, 191, 109, 0.09), rgba(47, 191, 109, 0.02));
  box-shadow: 0 0 50px rgba(47, 191, 109, 0.12);
}

.featured-top-line {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 191, 109, 0), var(--primary-green), rgba(47, 191, 109, 0));
}

.featured-chart-icon {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(47, 191, 109, 0.85);
  background: radial-gradient(circle, rgba(47, 191, 109, 0.2), rgba(47, 191, 109, 0.03));
  box-shadow: 0 0 26px rgba(47, 191, 109, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  gap: 6px;
}

.bar-1 {
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: rgba(47, 191, 109, 0.45);
  display: block;
}

.bar-2 {
  width: 9px;
  height: 24px;
  border-radius: 2px;
  background: rgba(47, 191, 109, 0.7);
  display: block;
}

.bar-3 {
  width: 9px;
  height: 34px;
  border-radius: 2px;
  background: var(--primary-green);
  display: block;
  box-shadow: 0 0 14px rgba(47, 191, 109, 0.6);
}

.featured-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(47, 191, 109, 0.3);
}

.featured-text {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}

.highlight-green-bold {
  color: var(--primary-green);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Quote & Eligibility Section
   -------------------------------------------------------------------------- */
.section-eligibility {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 72px 24px 0;
}

.quote-box {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 52px 8px;
  text-align: center;
}

.quote-text {
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-subtle);
  max-width: 24ch;
}

.quote-highlight {
  display: block;
  color: var(--text-main);
  margin-top: 10px;
}

.eligibility-desc {
  margin: 36px auto 0;
  max-width: 64ch;
  text-align: center;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   8. Call to Action (CTA) Box
   -------------------------------------------------------------------------- */
.section-cta {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 80px 24px 110px;
}

.cta-outer-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.cta-glow-bg {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -26px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(47, 191, 109, 0.35), rgba(47, 191, 109, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid rgba(47, 191, 109, 0.4);
  background: var(--bg-cta-box);
  box-shadow: 0 0 90px var(--primary-green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-top-glow-line {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 191, 109, 0), var(--primary-green-light), rgba(47, 191, 109, 0));
}

.cta-top-radial-blur {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(140, 255, 190, 0.75), rgba(47, 191, 109, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.cta-header-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-green);
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-green);
  display: block;
}

.cta-date-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}

.cta-weekday {
  color: var(--accent-red);
}

.cta-time {
  display: block;
  color: #ffffff;
}

.cta-description {
  margin: 0;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}

/* Button CTA */
.btn-group-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin-top: 8px;
  padding: clamp(18px, 2.6vw, 26px) 32px;
  border-radius: 16px;
  background: var(--bg-btn-primary);
  color: #04150b;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 3vw, 30px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  box-shadow: 0 0 60px rgba(47, 191, 109, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 12px rgba(0, 0, 0, 0.25);
  animation: pulseRing 2.8s infinite;
  cursor: pointer;
  border: none;

  /* Touch / Click Feedback */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-group-cta:hover {
  background: var(--bg-btn-primary-hover);
  color: #04150b;
  transform: translateY(-2px);
}

.btn-group-cta:active {
  transform: translateY(1px);
  box-shadow: 0 0 30px rgba(47, 191, 109, 0.3);
}

.btn-icon-sphere {
  flex-shrink: 0;
  width: clamp(26px, 3.4vw, 38px);
  height: clamp(26px, 3.4vw, 38px);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff, #b9ffd6 45%, var(--primary-green));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8), inset 0 0 6px rgba(0, 0, 0, 0.15);
  display: block;
}

.cta-footer-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 26px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   10. Toast Notification / Modal Feedback
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(20, 32, 25, 0.95);
  border: 1px solid var(--primary-green);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. Mobile Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-container {
    padding-top: 40px;
    gap: 20px;
  }

  .card-featured {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .featured-divider {
    width: 60%;
    height: 1px;
    margin: 8px 0;
  }

  .btn-group-cta {
    padding: 18px 20px;
    gap: 12px;
  }
}
