/* =========================================================
   MINTAREX LEARN PAGE • WHAT IS POLYGON (MATIC)
   ========================================================= */

.polygon-section {
  text-align: center;
  padding-block: clamp(60px, 8vh, 120px);
  background: #fff;
}
.polygon-section:nth-of-type(even) {
  background: rgba(250,250,250,.7);
}
.polygon-section h2 {
  color: var(--ink);
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.polygon-section p {
  color: var(--muted);
  line-height: 1.8;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  max-width: 820px;
  margin: 0 auto 1.3rem;
  word-break: break-word;
}

/* === Grid Structures === */
.polygon-grid,
.benefit-grid,
.faq-grid {
  display: grid;
  gap: clamp(1.5rem, 2vw, 2.5rem);
  margin-top: clamp(2rem, 3vh, 3rem);
}
.polygon-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.benefit-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.faq-grid {
  text-align: left;
  grid-template-columns: 1fr;
}

/* === Cards === */
.polygon-card,
.benefit-card,
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.polygon-card:hover,
.benefit-card:hover,
.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px -10px rgba(162,235,204,.25);
  border-color: rgba(162,235,204,.4);
}
.polygon-card h3,
.benefit-card h3 {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.polygon-card p,
.benefit-card p,
.faq-item p {
  color: var(--muted);
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.7;
  text-align: center;
}

/* === FAQ === */
.faq-item h3 {
  color: var(--ink);
  margin-bottom: .4rem;
  font-weight: 600;
  text-align: center;
}
.faq-item {
  transition: box-shadow .3s ease, transform .3s ease;
}
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(162,235,204,.2);
}

/* === Buttons === */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.8rem, 2vw, 1rem);
  margin-top: clamp(1.5rem, 3vh, 2rem);
}

/* === Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Glow Animation for Active Cards === */
.polygon-card.glow,
.benefit-card.glow {
  box-shadow: 0 0 25px -5px var(--accent-glow),
              0 0 60px -10px rgba(162,235,204,.3);
  transition: box-shadow .6s ease, transform .6s ease;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 1280px) {
  .polygon-section { padding-block: clamp(70px, 10vh, 100px); }
  .polygon-grid, .benefit-grid { gap: 2rem; }
}
@media (max-width: 960px) {
  .polygon-section p { padding-inline: 1rem; }
  .polygon-grid,
  .benefit-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .polygon-card, .benefit-card { padding: 1.8rem; }
}
@media (max-width: 768px) {
  .polygon-section h2 { font-size: 1.7rem; }
  .polygon-card h3,
  .benefit-card h3 { font-size: 1.05rem; }
  .polygon-section p { font-size: .95rem; }
  .faq-grid { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .polygon-section { padding-block: 70px; }
  .polygon-card,
  .benefit-card,
  .faq-item { padding: 1.3rem; }
  .actions { flex-direction: column; gap: .8rem; }
  .polygon-section p { padding-inline: .8rem; }
}
@media (max-width: 480px) {
  .polygon-section { padding-block: 60px; }
  .polygon-section h2 { font-size: 1.5rem; }
  .polygon-card h3, .benefit-card h3 { font-size: 1rem; }
  .polygon-card p, .benefit-card p { font-size: .9rem; line-height: 1.6; }
}
@media (min-width: 1920px) {
  .polygon-section { max-width: 1800px; margin-inline: auto; }
  .polygon-section p { font-size: 1.1rem; }
}
