:root {
  --text: #0f1a2e;
  --text-muted: #4a6080;
  --text-light: #8aaabf;
  --accent: #1a6fd4;
  --accent-soft: #5ba3e8;
  --divider: rgba(26, 111, 212, 0.18);
}

@font-face {
  font-family: MerriweatherRegular;
  src: url(../fonts/Merriweather-Regular.ttf);
}

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

body {
  font-family: MerriweatherRegular;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #e8f0fb;
  background-image: url("../assets/bcg.png");
  background-size: 180px 180px;
}

@keyframes dotsDrift {
  from { background-position: 0 0; }
  to   { background-position: 180px 180px; }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 15%  5%,  rgba(100, 170, 255, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 85%  90%, rgba(120, 185, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #0d4fa0;
}

.App {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────── */
.AppHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15vh 20px 5vh;
  gap: 20px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.1s;
}

.Title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.18em;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.AppHeader > span {
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  letter-spacing: 0.22em;
  color: var(--text-muted);
  line-height: 1.6;
}

.AppHeader > span strong {
  font-weight: 700;
}

.AppHeader > span strong a {
  color: var(--accent);
}

/* thin accent line below header */
.AppHeader::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 1px;
  margin-top: 8px;
  opacity: 0.6;
}

/* ── BODY ───────────────────────────────────── */
.AppBody {
  display: flex;
  flex-direction: column;
  width: min(560px, 88vw);
  gap: 0;
  text-align: start;
  padding-bottom: 4vh;
}

.AppBody > div {
  padding: 40px 0;
  border-bottom: 1px solid var(--divider);
  opacity: 0;
  transform: translateY(22px);
}

.AppBody > div:first-child {
  border-top: 1px solid var(--divider);
}

.AppBody > div.visible {
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.AppBody h2 {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 400;
  margin-bottom: 22px;
}

.text {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 2.5;
}

.text strong {
  color: var(--text);
  font-weight: 700;
}

.text span {
  display: block;
}

.text a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text a:hover {
  border-bottom-color: var(--accent);
}

/* ── FOOTER ─────────────────────────────────── */
.AppFooter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-light);
  padding: 50px 20px 60px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1.4s;
}

.AppSocials {
  display: flex;
  height: 100px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(26, 111, 212, 0.28);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 111, 212, 0.55);
}

/* ── KEYFRAMES ───────────────────────────────── */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .AppHeader { padding: 12vh 24px 4vh; gap: 14px; }
  .AppHeader > span { letter-spacing: 0.14em; }
  .AppBody { width: 100%; padding: 0 24px 4vh; }
  .AppBody > div { padding: 32px 0; }
  .AppBody h2 { letter-spacing: 0.28em; }
  .text { font-size: 0.85rem; line-height: 2.4; }
  .AppFooter { padding: 40px 24px 48px; font-size: 0.60rem; }
}

@media (max-width: 400px) {
  .Title { letter-spacing: 0.10em; }
  .AppHeader { padding: 10vh 20px 3vh; }
  .AppBody { padding: 0 20px 4vh; }
  .AppBody > div { padding: 26px 0; }
  .text { line-height: 2.2; }
}

/* touch: bigger tap targets on links */
@media (hover: none) {
  .text { line-height: 2.6; }
  a { padding: 2px 0; }
}
