/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark:   #111111;
  --blue-mid:    #2a0000;
  --blue-light:  #cc0000;
  --gold:        #ff3333;
  --bg:          #f9f9f9;
  --bg-alt:      #f0f0f0;
  --text:        #111111;
  --text-muted:  #444444;
  --card-bg:     #ffffff;
  --radius:      10px;
  --shadow:      0 4px 18px rgba(0,0,0,0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--blue-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: #000000;
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-pyramid {
  width: 44px;
  height: 40px;
  margin-right: 10px;
  flex-shrink: 0;
  display: block;
}

.hero-flag-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-flag {
  width: 32px;
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: block;
}







nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  transition: none;
}

nav a {
  color: #dddddd;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--gold);
  text-decoration: none;
}

nav a#lang-toggle {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding-left: 1.8rem;
  margin-left: 0.2rem;
}



/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: #000000;
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: #cccccc;
  margin-bottom: 2.2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  text-decoration: none;
}

.btn-donate {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid #ffffff;
  margin-left: 1rem;
  margin-top: 0;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

@media (max-width: 640px) {
  .btn-donate {
    margin-left: 0;
    margin-top: 1rem;
  }
}


.btn-donate:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,255,255,0.2);
  text-decoration: none;
}



/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 4rem 2rem;
}

.section-alt {
  background: #ffffff;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: #000000;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 800px;
}

.section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.section ul li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  color: var(--text-muted);
}

.section ul li::before {
  content: '▸';
  color: #000000;
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 0.45rem;
}

/* ── Cards ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── HuggingFace highlight box ───────────────────────────── */
.huggingface-box {
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 1rem;
  display: inline-block;
  width: 100%;
}

.huggingface-box p {
  color: #ffffff;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.huggingface-box a {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-all;
}

/* ── Code block ──────────────────────────────────────────── */
.code-block {
  background: #000000;
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  background: none;
  color: #ffffff;
  font-size: 0.93rem;
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  padding: 0;
  white-space: pre;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #111111;
  color: #999999;
  text-align: center;
  padding: 1.8rem 2rem;
  font-size: 0.88rem;
}

/* ── Hamburger button ────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 300;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 1.2rem;
  }

  nav {
    gap: 1.2rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    height: 56px;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    gap: 0;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 1.2rem;
    flex: 1;
  }

  .logo-pyramid {
    width: 34px;
    height: 30px;
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Nav becomes full-width dropdown */
  nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--blue-dark);
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
    z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.10);
    animation: navSlideDown 0.22s ease forwards;
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  nav.nav-open {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
    width: 100%;
    display: block;
    color: #eeeeee;
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a#lang-toggle {
    border-left: none;
    padding-left: 1.5rem;
    margin-left: 0;
    border-top: 2px solid rgba(255,255,255,0.18);
    border-bottom: none;
    color: #ffaaaa;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }

  .btn-primary,
  .btn-donate {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
  }

  /* Sections */
  .section {
    padding: 2.5rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .section p {
    max-width: 100%;
  }

  /* Cards: single column */
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Code block */
  .code-block {
    padding: 1rem;
    border-radius: 6px;
  }

  .code-block code {
    font-size: 0.82rem;
  }

  /* HuggingFace box */
  .huggingface-box {
    padding: 1rem 1.2rem;
  }

  .huggingface-box a {
    font-size: 0.92rem;
    word-break: break-all;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.82rem;
    word-break: break-word;
  }
}

/* Extra small (very narrow phones) */
@media (max-width: 380px) {
  .logo {
    font-size: 1rem;
  }

  .logo-pyramid {
    width: 28px;
    height: 25px;
  }

  .hero h1 {
    font-size: 1.35rem;
  }

  .code-block code {
    font-size: 0.75rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .card {
    padding: 1.3rem 1rem;
  }
}

/* Ensure images and embeds never overflow */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll on all screens */
html, body {
  overflow-x: clip;
}

