@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Saira:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --fw-blue: #283583;
  --fw-red: #cd1719;
  --fw-black: #0a0d18;
  --fw-white: #ffffff;
  --fw-paper: #f7f8fb;
  --fw-paper-strong: #eef1f7;
  --fw-border: #d9deea;
  --fw-text: #172033;
  --fw-muted: #596579;
  --fw-muted-strong: #38445a;
  --fw-blue-soft: rgba(40, 53, 131, 0.08);
  --fw-red-soft: rgba(205, 23, 25, 0.08);
  --fw-shadow: 0 18px 55px rgba(10, 13, 24, 0.10);
  --fw-shadow-soft: 0 10px 30px rgba(40, 53, 131, 0.08);
  --radius: 4px;
  --container: min(1180px, calc(100% - 32px));
  --font-body: "Saira", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Rajdhani", "Saira", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fw-text);
  background:
    linear-gradient(90deg, rgba(40, 53, 131, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 53, 131, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, rgba(205, 23, 25, 0.10), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(40, 53, 131, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--fw-white) 0%, var(--fw-paper) 58%, #edf1f7 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: var(--font-body);
  line-height: 1.6;
}

body.home {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

a { color: var(--fw-blue); text-underline-offset: 0.2em; }
a:hover { color: var(--fw-red); }

:focus-visible {
  outline: 3px solid rgba(205, 23, 25, 0.72);
  outline-offset: 3px;
}

img { max-width: 100%; }

.fw-shell { width: min(100%, 64rem); }

.fw-brandbar {
  width: var(--container);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home .fw-brandbar { width: 100%; }

.fw-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fw-blue);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.fw-logo img { display: block; width: 184px; height: auto; }
.fw-logo-icon img { width: 44px; }

.fw-navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--fw-border);
  border-radius: var(--radius);
  color: var(--fw-blue);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--fw-shadow-soft);
}

.fw-navlink:hover,
.fw-navlink:focus-visible {
  color: var(--fw-red);
  border-color: rgba(205, 23, 25, 0.38);
}

.deployment-card,
.hero,
.note,
.card,
.legend {
  border: 1px solid var(--fw-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--fw-shadow);
  backdrop-filter: blur(12px);
}

.deployment-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(2rem, 5vw, 4rem);
}

.deployment-card::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--fw-blue), var(--fw-red));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--fw-red);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--fw-black);
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.lead {
  margin: 1.4rem 0 0;
  max-width: 68ch;
  color: var(--fw-muted-strong);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.status,
.pill,
.badge,
.filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(40, 53, 131, 0.24);
  color: var(--fw-blue);
  background: var(--fw-blue-soft);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status {
  margin: 2rem 0 0;
  color: var(--fw-blue);
  box-shadow: inset 4px 0 0 var(--fw-red);
}

.status::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--fw-red);
  box-shadow: 0 0 0 0.25rem var(--fw-red-soft);
}

.link-list { display: grid; gap: 1rem; margin-top: 2rem; }

.page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  background: var(--fw-white);
  border: 1px solid var(--fw-border);
  box-shadow: var(--fw-shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.page-link:hover,
.page-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(205, 23, 25, 0.42);
  background: linear-gradient(90deg, var(--fw-white), rgba(205, 23, 25, 0.04));
}

.page-link strong,
.page-link small { display: block; }
.page-link strong { color: var(--fw-blue); font-family: var(--font-display); font-size: 1.25rem; }
.page-link small { margin-top: 0.25rem; color: var(--fw-muted); line-height: 1.45; }

.wrap { width: var(--container); margin: 0 auto; padding: 32px 0 56px; }

header.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero { position: relative; overflow: hidden; padding: clamp(1.6rem, 4vw, 2.4rem); }
.hero > * { position: relative; z-index: 1; }
.hero::after {
  content: "FW";
  position: absolute;
  right: clamp(1rem, 5vw, 3rem);
  bottom: -0.33em;
  color: rgba(40, 53, 131, 0.055);
  font-family: var(--font-display);
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 700;
  line-height: 1;
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.stat {
  padding: 16px;
  border: 1px solid var(--fw-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--fw-white), var(--fw-paper));
}
.stat strong { display: block; color: var(--fw-blue); font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.stat span { color: var(--fw-muted); font-size: 0.9rem; }

.note { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.note h2 { font-size: 1.35rem; }
.note p { margin: 0; color: var(--fw-muted-strong); }

.badge { min-height: 34px; font-size: 0.88rem; background: rgba(40, 53, 131, 0.09); }
.badge.mix { color: #8f1012; border-color: rgba(205, 23, 25, 0.28); background: var(--fw-red-soft); }

.filter {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px 0;
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(14px);
}

.filter button {
  cursor: pointer;
  min-height: 44px;
  color: var(--fw-blue);
  background: rgba(255, 255, 255, 0.9);
  font: 700 1rem var(--font-display);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.filter button:hover { transform: translateY(-1px); border-color: rgba(40, 53, 131, 0.45); }
.filter button.active,
.filter button[aria-pressed="true"] {
  color: var(--fw-white);
  background: var(--fw-blue);
  border-color: var(--fw-blue);
  box-shadow: 5px 5px 0 var(--fw-red-soft);
}

.cards { display: grid; gap: 22px; }
.card { padding: clamp(1rem, 3vw, 1.75rem); }
.card.hidden { display: none; }
.product { display: grid; grid-template-columns: 150px minmax(260px, 0.62fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.product-image { display: flex; justify-content: center; align-items: flex-start; }
.product-image img { 
  max-width: 150px; 
  max-height: 200px; 
  width: auto; 
  height: auto; 
  border-radius: var(--radius); 
  border: 1px solid var(--fw-border);
  box-shadow: var(--fw-shadow-soft);
}
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
figure { margin: 0; }
.photo {
  overflow: hidden;
  border: 1px solid var(--fw-border);
  border-radius: var(--radius);
  background: var(--fw-white);
  box-shadow: var(--fw-shadow-soft);
}
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { color: var(--fw-muted); font-size: 0.86rem; padding: 9px 2px 0; line-height: 1.45; }

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--fw-border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.sub { color: var(--fw-muted-strong); line-height: 1.5; }
.stars { white-space: nowrap; color: var(--fw-red); font-size: 1.55rem; letter-spacing: 0.02em; }
.score { text-align: right; color: var(--fw-blue); font-family: var(--font-display); font-weight: 700; }

dl { display: grid; grid-template-columns: 165px 1fr; gap: 10px 18px; margin: 0; }
dt { color: var(--fw-muted); font-weight: 600; }
dd { margin: 0; color: var(--fw-black); font-weight: 600; }
blockquote {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 5px solid var(--fw-red);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--fw-red-soft), rgba(255, 255, 255, 0.75));
  color: var(--fw-muted-strong);
  line-height: 1.65;
}

table { width: 100%; border-collapse: collapse; margin-top: 18px; min-width: 760px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--fw-border); vertical-align: top; }
th {
  color: var(--fw-blue);
  background: var(--fw-paper-strong);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
td { color: var(--fw-text); }
tbody tr:hover { background: rgba(40, 53, 131, 0.045); }

.legend { margin-top: 22px; padding: 22px; overflow-x: auto; }
.legend h2 { font-size: 1.4rem; }
.legend ul { margin: 0; padding-left: 1.2rem; color: var(--fw-muted-strong); line-height: 1.8; }
footer { margin-top: 24px; color: var(--fw-muted); font-size: 0.92rem; text-align: center; }

@media (max-width: 900px) {
  .fw-brandbar,
  header.page-hero,
  .product { grid-template-columns: 1fr; }
  .fw-brandbar { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .product-top { flex-direction: column; }
  .product-image { margin-bottom: 1rem; }
  .score { text-align: left; }
  dl { grid-template-columns: 1fr; }
  .legend { margin-left: -8px; margin-right: -8px; }
}

@media (max-width: 560px) {
  :root { --container: min(100% - 20px, 1180px); }
  body.home { padding: 0.85rem; }
  .deployment-card, .hero, .note, .card, .legend { box-shadow: 0 10px 26px rgba(10, 13, 24, 0.10); }
  .fw-logo img { width: 156px; }
  .photos { grid-template-columns: 1fr; }
  .filter { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
