/* Virtual I-Ching — Site SEO statique */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --dark: #0a0a0f;
  --dark-mid: #1a1a2e;
  --dark-light: #16213e;
  --purple: #a925aa;
  --green: #39ff14;
  --green-dim: rgba(57, 255, 20, 0.15);
  --blue: #64b5f6;
  --blue-light: #90caf9;
  --gold: #ffd700;
  --white: #e0e0e0;
  --white-bright: #ffffff;
  --text: #c0c0c0;
  --text-light: #8a8a8a;
  --bg: #0a0a0f;
  --card-bg: rgba(20, 20, 35, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

/* ===== HEADER ===== */
.header {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header__logo img {
  display: none;
}

.header__logo span {
  color: var(--white-bright);
  font-weight: 800;
  font-size: 1.1rem;
}

.header__nav { display: flex; gap: 24px; align-items: center; }
.header__nav a {
  color: var(--purple);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--white-bright); }

.header__cta {
  background: var(--purple);
  color: var(--white-bright) !important;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(169, 37, 170, 0.5);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, var(--dark-light) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 370px 50px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.35), transparent);
  background-size: 500px 200px;
  animation: stars 100s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: 500px 200px; }
}

.hero__inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.hero__logo {
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.5));
}

.hero__symbol {
  font-size: 4rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.5));
}

.hero h1 {
  color: var(--white-bright);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero__subtitle {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.hero p {
  color: var(--blue-light);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.btn--green {
  background: var(--purple);
  color: var(--white-bright);
}
.btn--blue {
  background: var(--purple);
  color: var(--white-bright);
}
.btn--outline {
  background: transparent;
  color: var(--white-bright);
  border: 2px solid var(--blue);
}

.hero__free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(57, 255, 20, 0.08);
  border: 2px solid var(--green);
  border-radius: 30px;
  padding: 10px 20px;
  margin-top: 24px;
}
.hero__free-badge {
  background: var(--green);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}
.hero__free-text { color: var(--white-bright); font-size: 0.9rem; font-weight: 700; }

/* ===== FEATURES ===== */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.features h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white-bright);
  margin-bottom: 32px;
  text-align: center;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.3);
}

.feature-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white-bright);
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== ARTICLES GRID ===== */
.articles {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.articles h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white-bright);
  margin-bottom: 32px;
  text-align: center;
}

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

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 181, 246, 0.3);
}

.article-card__img {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-card__img--history { background: linear-gradient(135deg, #1a1a2e, #2d1b3d); }
.article-card__img--concept { background: linear-gradient(135deg, #1a2e1a, #1b3d2d); }
.article-card__img--practice { background: linear-gradient(135deg, #2e2a1a, #3d2d1b); }
.article-card__img--tech { background: linear-gradient(135deg, #1a1a2e, #1b2d3d); }
.article-card__img--product { background: linear-gradient(135deg, #0d1b2a, #1b2d3d); }

.article-card__body { padding: 20px; }

.article-card__cat {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white-bright);
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  background: linear-gradient(135deg, var(--dark-mid), var(--dark-light));
  padding: 60px 24px;
  text-align: center;
}

.quote-section blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--blue-light);
  line-height: 1.6;
}

.quote-section cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 24px;
  text-align: center;
  background: var(--dark-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 { font-size: 1.8rem; font-weight: 900; color: var(--white-bright); margin-bottom: 12px; }
.cta-section p { color: var(--text); font-size: 1rem; margin-bottom: 24px; }

/* ===== ARTICLE PAGE ===== */
.article-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.article-page__cat {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.article-page h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white-bright);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-page__meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-page__content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin: 32px 0 12px;
}

.article-page__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-light);
  margin: 24px 0 8px;
}

.article-page__content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--text);
}

.article-page__content ul, .article-page__content ol {
  margin: 0 0 16px 24px;
}

.article-page__content li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.article-page__content blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--green-dim);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--blue-light);
}

.article-page__content strong {
  color: var(--white-bright);
}

/* Article CTA box */
.article-cta {
  background: linear-gradient(135deg, var(--dark-mid), var(--dark-light));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.article-cta h3 { color: var(--white-bright); font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.article-cta p { color: var(--blue-light); font-size: 0.9rem; margin-bottom: 20px; }

/* ===== RELATED ARTICLES ===== */
.related {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.related h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white-bright);
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related__list { display: flex; flex-direction: column; gap: 10px; }

.related__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.2s;
}
.related__link:hover {
  transform: translateX(4px);
  border-color: rgba(57, 255, 20, 0.3);
}
.related__link span { font-size: 1.3rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--green); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 48px 16px; }
  .hero__subtitle { font-size: 1.2rem; }
  .articles__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .article-page h1 { font-size: 1.6rem; }
  .header__nav a:not(.header__cta) { display: none; }
  .hero__buttons { flex-direction: column; align-items: center; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
