:root {
  --navy: #0b1a3a;
  --navy-deep: #06101f;
  --cyan: #00a3d4;
  --ink: #10233f;
  --muted: #5b6b82;
  --paper: #f4f7fb;
  --card: #ffffff;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Syne", "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: var(--navy);
  border-bottom: 4px solid var(--cyan);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand em {
  font-style: normal;
  color: var(--cyan);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn.primary {
  background: var(--cyan);
  color: var(--navy-deep);
  border-color: var(--cyan);
}

.btn.primary:hover { filter: brightness(1.05); }

.btn.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 163, 212, 0.22), transparent 65%),
    linear-gradient(165deg, var(--navy-deep), var(--navy) 55%, var(--navy-deep));
  color: #fff;
  padding: clamp(2.5rem, 8vh, 4.5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vh, 3.5rem);
  text-align: center;
}

.logo-frame {
  width: 7.5rem;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  padding: 0.85rem;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.logo-frame img {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  color: rgba(247, 250, 252, 0.78);
  font-size: 1.05rem;
  line-height: 1.45;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.rule {
  width: 3.5rem;
  height: 0.28rem;
  background: var(--cyan);
  border-radius: 999px;
  margin-top: 0.65rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(11, 26, 58, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(11, 26, 58, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(11, 26, 58, 0.12);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d7e2ef;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--navy);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 163, 212, 0.14);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty, .loading, .error-box {
  text-align: center;
  padding: 3rem 1.25rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px dashed rgba(11, 26, 58, 0.18);
  color: var(--muted);
}

.error-box { color: #9b1c1c; border-color: rgba(155, 28, 28, 0.25); }

.lookup {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--navy);
  color: #fff;
}

.lookup h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
}

.lookup p {
  margin: 0 0 1rem;
  color: rgba(247, 250, 252, 0.72);
}

.lookup-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr auto;
  gap: 0.65rem;
}

.lookup input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  font: inherit;
}

.lookup input::placeholder { color: rgba(247, 250, 252, 0.45); }

.lookup .error {
  margin: 0.75rem 0 0;
  color: #ffb4b4;
  font-weight: 600;
}

.footer {
  padding: 2rem 1rem 2.5rem;
  text-align: center;
}

.powered {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 0.85rem;
  background: rgba(11, 26, 58, 0.06);
  border: 1px solid rgba(11, 26, 58, 0.1);
  color: var(--navy);
}

.powered img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #000;
}

.powered span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.powered small {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.powered strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .lookup-form { grid-template-columns: 1fr; }
  .brand span { font-size: 1.05rem; }
}
