/* TerraNexus Scientific Journal — Landing Page Styles */

:root {
  --bg:           #0a0a0a;
  --bg-alt:       #111008;
  --surface:      #181408;
  --border:       #2a2216;
  --accent:       #c8860a;
  --accent-light: #e5a932;
  --accent-dim:   #7a5006;
  --text:         #f0ead8;
  --text-muted:   #8c7d60;
  --text-dim:     #5a4d38;
  --success:      #4a7c59;
  --warning:      #c8860a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo-link { display: flex; align-items: center; }
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-light); }
.nav-cta {
  background: var(--accent);
  color: #0a0a0a !important;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.72);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,134,10,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(200,134,10,0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(200,134,10,0.02) 60px,
      rgba(200,134,10,0.02) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(200,134,10,0.02) 60px,
      rgba(200,134,10,0.02) 61px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero h1 .accent { color: var(--accent); }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.about-text strong { color: var(--text); }
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
}
.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.pillar h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.pillar p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== DISCIPLINES ===== */
.fields-list { display: flex; flex-direction: column; gap: 1.5rem; }
.field-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.field-header:hover { background: #1c1a0e; }
.field-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.field-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}
.field-toggle {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.field-block.open .field-toggle { transform: rotate(180deg); }
.field-body {
  display: none;
  padding: 1rem 1.5rem;
  background: var(--bg-alt);
}
.field-block.open .field-body { display: block; }
.disciplines-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.discipline-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.discipline-tag:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ===== EDITORIAL ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.board-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.board-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.board-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.board-country {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.board-affiliation {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}
.board-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===== EVALUATION GRID ===== */
.eval-table-wrap { overflow-x: auto; }
.eval-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}
.eval-table th,
.eval-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.eval-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
}
.eval-table td { color: var(--text-muted); }
.eval-table td:first-child { color: var(--text); }
.eval-table tr:hover td { background: rgba(200,134,10,0.03); }
.category-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent-light);
}
.category-badge.B { background: #4a5a7c; color: #a8b8d8; }
.category-badge.C { background: #3a5a4a; color: #8cc8a8; }
.weight-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200,134,10,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}
.scale-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.scale-note strong { color: var(--accent-light); }

/* ===== TIMELINE ===== */
.timeline-wrap { position: relative; padding: 2rem 0; }
.timeline-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.timeline-row::before {
  content: '';
  position: absolute;
  left: 2rem;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dim) 0%, var(--border) 100%);
  z-index: 0;
}
.timeline-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.step-node {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.step-node.active { background: var(--accent); color: #0a0a0a; }
.step-info { flex: 1; }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.step-duration {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.step-duration span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.step-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.timeline-total {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  margin-top: 1rem;
}
.timeline-total-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.timeline-total-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.timeline-total-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ===== FINANCIAL ===== */
.apc-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.apc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}
.apc-table th,
.apc-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.apc-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
}
.apc-table td { color: var(--text-muted); }
.apc-table td:first-child { color: var(--text); }
.apc-table tr:last-child td { border-bottom: none; }
.apc-table tr:hover td { background: rgba(200,134,10,0.03); }
.apc-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-alt);
  line-height: 1.6;
}
.doaj-policy {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  line-height: 1.6;
  margin-top: 1rem;
}

/* ===== PAYMENT METHODS ===== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.payment-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s;
}
.payment-card:hover { border-color: var(--accent-dim); }
.payment-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== SUBMIT CTA ===== */
.submit-section {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.submit-section .section-title { margin-bottom: 0.75rem; }
.submit-section .section-sub { margin: 0 auto 2.5rem; }

/* ===== OPEN ACCESS ===== */
.open-access-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}
.open-access-badge { flex-shrink: 0; }
.cc-badge { height: 88px; width: auto; display: block; }
.open-access-text { flex: 1; }
.open-access-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.open-access-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 0.5rem; }
.open-access-text a { color: var(--accent); text-decoration: none; }
.open-access-text a:hover { color: var(--accent-light); text-decoration: underline; }
.cope-line { margin-top: 0.75rem; font-size: 0.875rem; }

/* ===== FINANCIAL GRID ===== */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.financial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.financial-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.financial-card.featured {
  border-color: var(--accent);
  background: rgba(200,134,10,0.05);
}
.financial-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.financial-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.financial-amount.waived { color: var(--success); }
.financial-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== FOOTER (simple) ===== */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* ===== FOOTER 3-COLUMN ===== */
.footer-3col {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  font-size: 0.8rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-journal-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.footer-meta-line { color: var(--text-muted); }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  color: var(--text-dim);
}
.footer-cc-bottom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cc-badge-sm { height: 15px; width: auto; }
.footer-polsia { color: var(--text-dim); }

@media (max-width: 768px) {
  .open-access-wrap { flex-direction: column; gap: 1.25rem; }
  .cc-badge { height: 66px; }
  .footer-3col { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
}

/* ===== ISSUE / ARTICLE CARDS ===== */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--accent-dim); }
.article-card-link { display: block; text-decoration: none; color: inherit; }
.article-card-link .article-card { height: 100%; }
.article-card-link:hover .article-card { border-color: var(--accent-dim); }
.tn-code-mini {
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--accent);
  margin-left: 0.5rem;
}
.empty {
  text-align: center;
  padding: 4rem 2rem;
  opacity: 0.4;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .section { padding: 3rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .financial-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .board-grid { grid-template-columns: 1fr; }
  .timeline-row { flex-direction: column; align-items: flex-start; }
  .timeline-row::before { display: none; }
}