/* ============================
   APROEST BLOG — Design System
   ============================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --bg-primary: #07080d;
  --bg-secondary: #0d0f17;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(13, 15, 23, 0.7);
  --bg-input: rgba(255, 255, 255, 0.06);

  --accent-primary: #743bbc;
  --accent-secondary: #4b2779;
  --accent-green: #96d700;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-gradient: linear-gradient(135deg, #743bbc, #4b2779);
  --accent-gradient-hover: linear-gradient(135deg, #8b4cde, #5d3294);
  --accent-glow: 0 0 20px rgba(116, 59, 188, 0.3);
  --accent-glow-strong: 0 0 40px rgba(116, 59, 188, 0.4), 0 0 80px rgba(75, 39, 121, 0.2);

  --text-primary: #e8ecf4;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(116, 59, 188, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-white);
}

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

ul, ol {
  list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-4xl) 0;
}

/* ── Background Effects ── */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--blue {
  background: var(--accent-primary);
  top: -200px;
  right: -200px;
}

.bg-glow--purple {
  background: var(--accent-secondary);
  bottom: -200px;
  left: -200px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-white);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

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

.nav__cta {
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
  color: var(--bg-primary) !important;
}

.nav__mobile-cta {
  display: none;
}

/* Mobile Nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 30%, transparent 70%, var(--bg-primary) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-spring);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--accent-glow-strong);
  color: var(--bg-primary);
}

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

.btn--outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

/* Glass Card */
.card--glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Feature Card */
.card--feature {
  text-align: center;
  padding: var(--space-2xl);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover .card__icon {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(124, 58, 237, 0.25));
  box-shadow: var(--accent-glow);
  transform: scale(1.1);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Blog Card */
.card--blog {
  padding: 0;
  overflow: hidden;
}

.card--blog .card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card--blog .card__body {
  padding: var(--space-xl);
}

.card--blog .card__category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.card--blog .card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.card--blog:hover .card__title {
  color: var(--accent-primary);
}

.card--blog .card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.card--blog .card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Grids ── */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

/* ── Comparison Table ── */
.comparison {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison th {
  background: var(--bg-card);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison tr:last-child td {
  border-bottom: none;
}

.comparison .check {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.comparison .cross {
  color: var(--accent-red);
  font-size: 1.2rem;
}

.comparison .highlight-col {
  background: rgba(0, 212, 255, 0.05);
}

/* ── Testimonials ── */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
}

.testimonial__quote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.testimonial__quote::before {
  content: '"';
  font-size: 3rem;
  font-family: var(--font-heading);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

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

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg-primary);
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
}

.testimonial__location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial__stars {
  color: var(--accent-orange);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ── Forms ── */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form__select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form__error {
  font-size: 0.8rem;
  color: var(--accent-red);
  display: none;
}

.form__group.error .form__input,
.form__group.error .form__select {
  border-color: var(--accent-red);
}

.form__group.error .form__error {
  display: block;
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: var(--space-md);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── WhatsApp Float Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-spring);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsapp-pulse 2s ease infinite;
}

/* ── Exit Intent Popup ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-spring);
  position: relative;
}

.popup-overlay.active .popup {
  transform: scale(1) translateY(0);
}

.popup__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.popup__close:hover {
  background: var(--bg-card-hover);
  color: var(--text-white);
}

.popup__emoji {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.popup__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.popup__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ── Article Styles ── */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
}

.article__header {
  margin-bottom: var(--space-2xl);
}

.article__category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.article__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-lg);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.article__cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--border-color);
}

.article__content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.article__content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.6rem;
}

.article__content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
}

.article__content p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article__content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--space-md);
}

.article__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.article__content ol {
  list-style: decimal;
}

.article__content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article__content blockquote p {
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0;
}

.article__content strong {
  color: var(--text-white);
}

/* Article CTA Box */
.article__cta {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-2xl) 0;
}

.article__cta h3 {
  margin-bottom: var(--space-sm);
}

.article__cta p {
  margin-bottom: var(--space-lg);
}

/* Article Sidebar (on wide screens) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  align-self: start;
}

.article-sidebar__box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.article-sidebar__box h4 {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

/* ── Page Header (for Blog, Cotação, Sobre) ── */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
}

.page-header__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cotação Page ── */
.cotacao-section {
  max-width: 650px;
  margin: 0 auto;
}

.cotacao-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

/* ── Sobre Page ── */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.sobre__image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.timeline__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

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

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

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

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

  .sobre__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .nav:has(.nav__links.active) {
    background: rgba(7, 8, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
  }

  .nav__links {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    background: #07080d;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 3rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1001;
  }

  .nav__links.active {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.3rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-xl);
    width: auto;
    text-align: center;
  }

  .nav__link.active {
    color: var(--accent-green) !important;
  }

  .nav__cta {
    display: none;
  }

  .nav__mobile-cta {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav__mobile-cta a {
    width: 80%;
    max-width: 280px;
    justify-content: center;
    margin-top: 1rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .comparison {
    overflow-x: auto;
  }

  .comparison table {
    min-width: 500px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .nav__logo {
    font-size: 1.15rem;
  }

  .popup {
    padding: var(--space-xl);
  }
}

/* ── FAQ Accordion ── */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-color-hover) !important;
}

.faq-open .faq-answer {
  max-height: 300px !important;
  padding-top: 0 !important;
}

.faq-open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-item button:hover {
  color: var(--accent-primary) !important;
}
