@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --ink: #0b1e33;
  --paper: #ffffff;
  --sky: #1e6fd9;
  --sky-dark: #15529e;
  --deep: #0f3d73;
  --mist: #eaf3fc;
  --foam: #12b8a0;
  --gray: #64748b;
  --gray-light: #e2e8f0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a {
  color: var(--gray);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--sky);
}

.nav-cta {
  background: var(--sky);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.nav-cta:hover { background: var(--sky-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  background: var(--mist);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sky-dark);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.wipe {
  position: relative;
  display: inline-block;
  color: var(--sky-dark);
}

.wipe svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
}

.hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 36px;
}

.search-bar {
  display: flex;
  gap: 8px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 61, 115, 0.08), 0 8px 24px rgba(15, 61, 115, 0.08);
  max-width: 520px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  color: var(--ink);
}

.search-bar input::placeholder { color: #94a3b8; }

.search-bar button {
  background: var(--sky);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-bar button:hover { background: var(--sky-dark); }

/* ---------- Section headers ---------- */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
}

.section-head p {
  color: var(--gray);
  font-size: 15px;
}

.section-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--sky-dark);
  white-space: nowrap;
}

/* ---------- Mess grid ---------- */
.mess-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mess-card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mess-card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
}

.mess-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--sky);
}

.mess-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.mess-card span {
  font-size: 13px;
  color: var(--gray);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(15, 61, 115, 0.1);
  transform: translateY(-2px);
}

.product-thumb {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
}

.product-thumb svg { width: 40px; height: 40px; }

.product-body { padding: 18px 20px 20px; }

.product-brand {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.product-price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}

.product-rating {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-rating svg { width: 14px; height: 14px; color: var(--foam); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--deep);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 12px;
}

.cta-band p {
  color: #c9dcf0;
  margin-bottom: 28px;
  font-size: 16px;
}

.cta-band .btn {
  background: white;
  color: var(--deep);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-block;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-light);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--gray);
}

.footer-links a:hover { color: var(--sky); }

.footer-note {
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- Placeholder page ---------- */
.placeholder {
  padding: 100px 0;
  text-align: center;
}

.placeholder h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 12px;
}

.placeholder p {
  color: var(--gray);
  font-size: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mess-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .mess-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* ---------- Mess filter buttons ---------- */
.mess-filter-btn {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.mess-filter-btn.active-mess {
  border-color: var(--sky);
  background: var(--mist);
}
/* ---------- Compare page ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.compare-picker select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: white;
  color: var(--ink);
}

.compare-col {
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 24px;
  background: white;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.compare-table td:first-child {
  color: var(--gray);
  font-weight: 500;
  width: 40%;
}

@media (max-width: 640px) {
  .compare-grid,
  .compare-picker {
    grid-template-columns: 1fr;
  }
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}