@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --ink: #0f1720;
  --muted: #586574;
  --paper: #f2eee5;
  --card: #fffaf0;
  --line: rgba(15, 23, 32, .14);
  --yellow: #f4c842;
  --blue: #3aa4ff;
  --pink: #ee5fa7;
  --green: #3fbf8d;
  --dark: #101820;
  --shadow: 0 24px 80px rgba(15, 23, 32, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 200, 66, .35), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(58, 164, 255, .24), transparent 24rem),
    linear-gradient(135deg, #f8f2e7, #e6edf1 56%, #f2eee5);
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero, main, footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--dark); color: var(--yellow);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--yellow);
  font-family: 'Archivo Black', sans-serif;
}
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .button {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.48);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav-links a:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,23,32,.12); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: stretch;
  padding: 44px 0 34px;
}
.hero-copy, .status-card, .panel, .diagram-card, .part-card, .search-panel, figure, .timeline article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-copy {
  background: rgba(255, 250, 240, .72);
  backdrop-filter: blur(12px);
  border-radius: 38px;
  padding: clamp(28px, 5vw, 62px);
  position: relative;
  overflow: hidden;
}
.hero-copy::after {
  content: "GL016-06";
  position: absolute;
  right: -18px;
  bottom: -8px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(54px, 10vw, 130px);
  color: rgba(15,23,32,.055);
  pointer-events: none;
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 900; font-size: .75rem; color: #8a5b00; margin: 0 0 10px; }
h1, h2, h3 { margin: 0; line-height: .98; letter-spacing: -.045em; }
h1 { font-family: 'Archivo Black', sans-serif; font-size: clamp(3rem, 7vw, 6.6rem); max-width: 850px; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; }
.lead { max-width: 650px; font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.button.primary { background: var(--dark); color: white; border-color: var(--dark); box-shadow: 7px 7px 0 var(--yellow); }
.button.ghost { background: transparent; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; position: relative; z-index: 1; }
.facts div { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 900; }
dd { margin: 6px 0 0; font-weight: 900; }
.pill { display: inline-flex; border-radius: 999px; padding: 4px 9px; }
.pill.warn { background: #fff0c2; color: #805600; }
.status-card {
  background: var(--dark);
  color: white;
  border-radius: 38px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.status-orb { width: 140px; height: 140px; border-radius: 999px; background: radial-gradient(circle, var(--yellow), #f97316); filter: blur(4px); margin-left: auto; opacity: .9; }
.ranked-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; }
.ranked-list li { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 14px; font-weight: 800; }
.ranked-list span { color: var(--yellow); font-family: 'Archivo Black', sans-serif; }
.safety { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 16px; border-radius: 18px; line-height: 1.5; }

main { display: grid; gap: 26px; padding-bottom: 60px; }
.search-panel {
  display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 18px; align-items: center;
  padding: 24px; border-radius: 28px; background: rgba(255,255,255,.62); backdrop-filter: blur(12px);
}
.search-box { display: grid; gap: 8px; font-weight: 900; }
.search-box input { width: 100%; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--dark); font: inherit; background: white; }
.cards { display: grid; grid-template-columns: 1.6fr .9fr; gap: 24px; }
.panel { background: var(--card); border-radius: 32px; padding: clamp(24px, 4vw, 38px); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 28px; }
.flow-step { min-height: 160px; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.flow-step strong { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--yellow); font-family: 'Archivo Black', sans-serif; }
.flow-line { width: 30px; height: 4px; background: var(--dark); border-radius: 99px; }
.test-card { background: #eaf6ff; }
.check-list { padding-left: 20px; line-height: 1.85; font-weight: 700; }
.result { background: white; border-left: 7px solid var(--pink); border-radius: 14px; padding: 16px; }
.section-heading { display: grid; gap: 10px; margin-bottom: 18px; }
.section-heading p:not(.eyebrow) { color: var(--muted); max-width: 780px; line-height: 1.65; margin: 0; }
.diagram-card { background: #101820; border-radius: 34px; padding: 18px; overflow: hidden; }
.diagram-card svg { width: 100%; height: auto; display: block; }
.part-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.part-card { background: white; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.part-code { width: fit-content; font-family: 'Archivo Black', sans-serif; background: var(--dark); color: var(--yellow); padding: 9px 12px; border-radius: 12px; box-shadow: 5px 5px 0 rgba(244,200,66,.45); }
.part-card p { color: var(--muted); line-height: 1.55; margin: 0; }
.part-card a { color: #005c99; font-weight: 900; }
.tag { margin-top: auto; background: #f5f0e7; border-radius: 14px; padding: 10px; font-size: .84rem; font-weight: 800; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
figure { margin: 0; background: white; border-radius: 28px; overflow: hidden; }
figure img { width: 100%; height: 340px; object-fit: cover; display: block; }
figcaption { padding: 16px; color: var(--muted); font-weight: 700; line-height: 1.45; }
.placeholder { display: grid; place-items: center; min-height: 420px; background: repeating-linear-gradient(-45deg, #fff, #fff 14px, #f5f0e7 14px, #f5f0e7 28px); }
.placeholder-art { width: 108px; height: 108px; border-radius: 999px; background: var(--dark); color: white; display: grid; place-items: center; font-size: 4rem; box-shadow: 9px 9px 0 var(--pink); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timeline article { background: rgba(255,255,255,.74); border-radius: 24px; padding: 22px; }
time { display: inline-block; font-weight: 900; color: #8a5b00; margin-bottom: 14px; }
.timeline p { color: var(--muted); line-height: 1.55; }
footer { padding: 30px 0 50px; color: var(--muted); font-weight: 800; }

.hidden-by-search { display: none !important; }
.search-empty { outline: 4px dashed var(--pink); }

@media (max-width: 980px) {
  .hero-grid, .cards, .search-panel { grid-template-columns: 1fr; }
  .facts, .part-grid, .photo-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-line { width: 4px; height: 24px; justify-self: center; }
}
@media (max-width: 620px) {
  .hero, main, footer { width: min(100% - 20px, 1180px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .facts, .part-grid, .photo-grid, .timeline { grid-template-columns: 1fr; }
  .hero-copy, .status-card { border-radius: 26px; padding: 22px; }
  figure img { height: 260px; }
}

.category-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: 30px;
  background: rgba(16, 24, 32, .92);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
}
.category-panel h2 { color: white; }
.category-panel p:not(.eyebrow) { color: rgba(255,255,255,.76); line-height: 1.65; margin: 12px 0 0; }
.category-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.category-tags span {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}
.category-tags .active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
@media (max-width: 980px) { .category-panel { grid-template-columns: 1fr; } .category-tags { justify-content: flex-start; } }
