/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent2); }

header nav {
  margin-left: auto;
}

header nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
header nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
  text-align: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(88, 166, 255, 0.13), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(63, 185, 80, 0.08), transparent 70%);
  bottom: -100px;
  left: -50px;
}
.hero-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(210, 168, 255, 0.07), transparent 70%);
  bottom: -50px;
  right: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp .6s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
}

.hero h1 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* ── Hero meta stats ── */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.75rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}

.meta-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.meta-label {
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Disciplines section ── */
.disciplines {
  padding: 5rem 0 6rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section-header h2 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ── Animações ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeUp .45s ease both; }
.card:nth-child(1) { animation-delay: .05s; }
.card:nth-child(2) { animation-delay: .1s; }
.card:nth-child(3) { animation-delay: .15s; }
.card:nth-child(4) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content, .card { animation: none; }
}

/* ── Card ── */
.card {
  position: relative;
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
  border-color: rgba(88, 166, 255, 0.35);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(88, 166, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(88, 166, 255, 0.06);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Card top row ── */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Card icon ── */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.icon-blue   { background: rgba(88, 166, 255, 0.12);  color: var(--accent); }
.icon-green  { background: rgba(63, 185, 80, 0.12);   color: var(--accent2); }
.icon-purple { background: rgba(210, 168, 255, 0.12); color: var(--accent4); }
.icon-orange  { background: rgba(247, 129, 102, 0.12); color: var(--accent3); }
.icon-yellow  { background: rgba(227, 179, 65, 0.12);  color: var(--accent5); }

/* ── Status badge ── */
.card-status {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: .25rem .65rem;
  border-radius: 20px;
}

.status-done {
  background: rgba(63, 185, 80, .1);
  color: var(--accent2);
  border: 1px solid rgba(63, 185, 80, .2);
}

.status-progress {
  background: rgba(88, 166, 255, .08);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, .18);
}

.status-soon {
  background: rgba(139, 148, 158, .06);
  color: var(--muted);
  border: 1px solid rgba(139, 148, 158, .14);
}

/* ── Card text ── */
.card h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text);
  line-height: 1.3;
}

.card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

/* ── Card footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .25rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.chip {
  font-size: .68rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: .2rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-arrow {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}

.card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── Disclaimer ── */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 2.5rem;
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.disclaimer svg {
  flex-shrink: 0;
  margin-top: .15rem;
  opacity: .65;
}

.disclaimer p { margin: 0; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--muted);
  font-size: .8rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 5rem 1.25rem 3.5rem; }
  .hero h1 { letter-spacing: -1.5px; }

  .hero-meta {
    gap: 1rem;
    padding: .75rem 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .meta-divider { display: none; }

  .disciplines { padding: 3rem 0 4rem; }
  .container { padding: 0 1.25rem; }
  .grid { gap: .75rem; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   LIGHT MODE — home page overrides
   ═══════════════════════════════════════════════════════ */

html[data-theme="light"] header {
  background: rgba(240,244,255,.92);
  border-bottom-color: var(--border);
}

html[data-theme="light"] .card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-theme="light"] .card:hover {
  border-color: rgba(9,105,218,.35);
  box-shadow:
    0 0 0 1px rgba(9,105,218,.1),
    0 16px 40px rgba(0,0,0,.1),
    0 4px 12px rgba(9,105,218,.06);
}

html[data-theme="light"] .icon-blue   { background: rgba(9,105,218,.1);  color: var(--accent); }
html[data-theme="light"] .icon-green  { background: rgba(26,127,55,.1);  color: var(--accent2); }
html[data-theme="light"] .icon-purple { background: rgba(102,57,183,.1); color: var(--accent4); }
html[data-theme="light"] .icon-orange  { background: rgba(212,75,58,.1);  color: var(--accent3); }
html[data-theme="light"] .icon-yellow  { background: rgba(154,103,0,.1);  color: var(--accent5); }

html[data-theme="light"] .status-done     { background: rgba(26,127,55,.08);  border-color: rgba(26,127,55,.2); }
html[data-theme="light"] .status-progress { background: rgba(9,105,218,.07);  border-color: rgba(9,105,218,.18); }
html[data-theme="light"] .status-soon     { background: rgba(87,96,106,.06);  border-color: rgba(87,96,106,.15); }

html[data-theme="light"] .chip {
  background: rgba(0,14,77,.05);
  border-color: rgba(0,14,77,.08);
}

html[data-theme="light"] .hero-meta {
  background: rgba(255,255,255,.7);
  border-color: var(--border);
}

html[data-theme="light"] .hero-badge {
  background: rgba(9,105,218,.07);
  border-color: rgba(9,105,218,.16);
}

html[data-theme="light"] footer { border-top-color: var(--border); }

html[data-theme="light"] .disclaimer {
  background: rgba(0,14,77,.025);
  border-color: var(--border);
}

html[data-theme="light"] .hero-glow-1 {
  background: radial-gradient(ellipse, rgba(9,105,218,.1), transparent 70%);
}
html[data-theme="light"] .hero-glow-2 {
  background: radial-gradient(ellipse, rgba(26,127,55,.07), transparent 70%);
}
html[data-theme="light"] .hero-glow-3 {
  background: radial-gradient(ellipse, rgba(102,57,183,.06), transparent 70%);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) header { background: rgba(240,244,255,.92); border-bottom-color: var(--border); }
  html:not([data-theme="dark"]) .card { background: rgba(255,255,255,.85); }
  html:not([data-theme="dark"]) .icon-blue   { background: rgba(9,105,218,.1);  color: var(--accent); }
  html:not([data-theme="dark"]) .icon-green  { background: rgba(26,127,55,.1);  color: var(--accent2); }
  html:not([data-theme="dark"]) .icon-purple { background: rgba(102,57,183,.1); color: var(--accent4); }
  html:not([data-theme="dark"]) .icon-orange  { background: rgba(212,75,58,.1);  color: var(--accent3); }
  html:not([data-theme="dark"]) .icon-yellow  { background: rgba(154,103,0,.1);  color: var(--accent5); }
  html:not([data-theme="dark"]) .chip { background: rgba(0,14,77,.05); border-color: rgba(0,14,77,.08); }
  html:not([data-theme="dark"]) .hero-meta { background: rgba(255,255,255,.7); }
  html:not([data-theme="dark"]) footer { border-top-color: var(--border); }
  html:not([data-theme="dark"]) .disclaimer { background: rgba(0,14,77,.025); border-color: var(--border); }
}
