/* ===========================
   Base
   =========================== */

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.text-gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Skip Link
   =========================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--cyan);
  color: var(--bg-body);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cyan);
  color: var(--bg-body);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--cyan-light);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--border-accent);
  color: var(--cyan);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-lg);
}

.btn--xl {
  padding: 1rem 2.5rem;
  font-size: var(--text-xl);
}

/* ===========================
   Header
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, box-shadow 0.3s;
}

.header--scrolled {
  background: rgba(7, 11, 20, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo--guerch {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo__icon {
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__sep {
  color: var(--text-muted);
  font-size: var(--text-xl);
  font-weight: 300;
}

.header__brand .logo {
  font-size: var(--text-xl);
}

.header__brand .logo--guerch {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__brand .logo--guerch:hover {
  color: var(--text-primary);
}

.logo__planner {
  color: var(--text-primary);
}

.logo__next {
  color: var(--cyan);
}

.nav__list {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
}

.nav__link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   Section Base
   =========================== */

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: var(--header-height);
}

.section--alt {
  background: var(--bg-surface-1);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   Hero
   =========================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero__orb--cyan {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: 10%;
  left: -10%;
}

.hero__orb--blue {
  width: 400px;
  height: 400px;
  background: var(--blue);
  bottom: 10%;
  right: -5%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__mockup {
  perspective: 1000px;
}

.hero__mockup img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border: 1px solid var(--border-card);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero__mockup:hover img {
  transform: rotateY(0deg) rotateX(0deg);
}

/* ===========================
   Pain Cards (Problema)
   =========================== */

.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pain-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-card);
  border-left: 3px solid #f97316;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pain-card__icon {
  color: #f97316;
  margin-bottom: var(--space-lg);
}

.pain-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pain-card__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===========================
   Steps (Como Funciona)
   =========================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps__line {
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border-card);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
}

.step__icon {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===========================
   Feature Cards
   =========================== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===========================
   Carousel (Screenshots)
   =========================== */

.carousel {
  max-width: 900px;
  margin: 0 auto;
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: var(--space-xl);
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-md);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel__slide img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.carousel__caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-lg);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  transition: all 0.2s;
}

.carousel__btn:hover {
  background: var(--bg-surface-3);
  border-color: var(--cyan);
  color: var(--cyan);
}

.carousel__dots {
  display: flex;
  gap: var(--space-sm);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-card);
  transition: all 0.3s;
}

.carousel__dot--active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* ===========================
   Stats (Benefícios)
   =========================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat__number {
  display: block;
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__title {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.stat__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===========================
   FAQ
   =========================== */

.faq {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-card);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s;
  gap: var(--space-md);
}

.faq-item__question:hover {
  color: var(--cyan);
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
}

.faq-item--open .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item--open .faq-item__answer {
  padding-bottom: var(--space-lg);
}

.faq-item__answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   CTA Section
   =========================== */

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

.cta-block {
  text-align: center;
  padding: var(--space-4xl);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-block__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-block__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.cta-block .btn {
  position: relative;
}

.btn--copy {
  position: relative;
}

.btn--copy__success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn--copy.copied .btn--copy__text {
  opacity: 0;
}

.btn--copy.copied .btn--copy__success {
  opacity: 1;
}

/* ===========================
   Footer
   =========================== */

.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
}

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

.footer .logo {
  font-size: var(--text-lg);
}

.footer__copy {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__guerch {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__guerch:hover {
  color: var(--cyan-light);
}

/* ===========================
   Focus Styles
   =========================== */

*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
