:root {
  --bg: #0b1220;
  --card: rgba(14, 24, 43, 0.8);
  --text: #ebf2ff;
  --muted: #b4c3e2;
  --accent: #4f8cff;
  --accent-2: #2dd4bf;
  --line: rgba(180, 195, 226, 0.2);
  --shadow: 0 10px 30px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 20% -10%, #18325f 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

.bg-glow {
  position: fixed; filter: blur(70px); opacity: .2; pointer-events: none; z-index: -1;
}
.bg-glow-a { width: 280px; height: 280px; background: var(--accent); top: 10%; left: -70px; }
.bg-glow-b { width: 360px; height: 360px; background: var(--accent-2); bottom: -140px; right: -120px; }

.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem;
  padding: 4rem 0 2rem;
}
.kicker { letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; font-size: .8rem; margin: 0; }
h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; margin: .5rem 0 1rem; }
.lead { color: var(--muted); max-width: 62ch; }
.hero-ctas { display: flex; gap: .8rem; margin: 1.3rem 0; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .75rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
  background: rgba(255,255,255,.03);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6b9dff); border: none; color: #fff; }

.facts { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.facts a { color: inherit; }

.hero-image img {
  width: 100%; max-width: 360px; aspect-ratio: 3/4;
  object-fit: contain; object-position: center top;
  background: #f3f6fc;
  border-radius: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

section { margin: 1.2rem 0 2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.1rem 1.2rem; backdrop-filter: blur(6px);
}

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-row button {
  border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted);
  border-radius: 999px; padding: .35rem .75rem; cursor: pointer;
}
.filter-row button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.timeline { margin-top: 1rem; display: grid; gap: .6rem; }
.timeline-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.timeline-toggle {
  all: unset;
  box-sizing: border-box;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem;
  font-weight: 600;
}
.timeline-toggle span:first-child { flex: 1 1 auto; min-width: 0; }
.timeline-toggle .date {
  color: var(--accent-2); font-size: .9rem; white-space: nowrap;
  flex: 0 0 auto; padding-left: .8rem;
}
.timeline-content {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  padding: 0 1rem;
}
.timeline-item.open .timeline-content { max-height: 260px; padding-bottom: .85rem; }
.timeline-content p { margin: .5rem 0; color: var(--muted); }

.references { margin-top: 1.4rem; }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .7rem;
}
.ref-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; padding: .8rem .6rem;
  border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--text);
  background: rgba(255,255,255,.02);
}
.ref-item:hover { border-color: rgba(79,140,255,.6); transform: translateY(-1px); }
.ref-item img {
  width: 44px; height: 44px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: .35rem;
}
.ref-item span { font-size: .85rem; text-align: center; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem;
  color: var(--muted); background: rgba(255,255,255,.03);
}
.langs { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--muted); }

.footer {
  text-align: center; color: var(--muted); padding: 1rem 0 3rem;
}
.footer a { color: #d4e5ff; }
.legal-links { margin-top: .4rem; font-size: .92rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: .55s ease; }
.reveal.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; }
  .grid-2 { grid-template-columns: 1fr; }
  .timeline-toggle { align-items: flex-start; }
  .timeline-toggle .date {
    white-space: normal;
    text-align: right;
    max-width: 110px;
    line-height: 1.2;
  }
}
