:root {
  --bg: #f6fbfc;
  --bg-deep: #e3f3f5;
  --ink: #0b2a3a;
  --muted: #4d6a78;
  --line: rgba(11, 42, 58, 0.12);
  --card: rgba(255, 255, 255, 0.7);
  --accent: #0aa5a8;
  --accent-ink: #ffffff;
  --sand: #f2d9a8;
  --wave-1: rgba(10, 165, 168, 0.10);
  --wave-2: rgba(10, 165, 168, 0.18);
  --error: #c2410c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06161f;
    --bg-deep: #0a2230;
    --ink: #e8f4f6;
    --muted: #9db7c2;
    --line: rgba(232, 244, 246, 0.12);
    --card: rgba(10, 34, 48, 0.6);
    --accent: #3fd0cf;
    --accent-ink: #04212a;
    --sand: #d8b97a;
    --wave-1: rgba(63, 208, 207, 0.06);
    --wave-2: rgba(63, 208, 207, 0.12);
    --error: #fb923c;
  }
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.glow-a { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -120px; opacity: 0.18; }
.glow-b { width: 420px; height: 420px; background: var(--sand); bottom: 40px; left: -160px; opacity: 0.25; }
.waves { position: absolute; bottom: 0; left: 0; width: 200%; height: 38vh; }
.wave.w1 { fill: var(--wave-1); animation: drift 18s linear infinite; }
.wave.w2 { fill: var(--wave-2); animation: drift 26s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(16px, 5vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 22px;
}
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }

/* Hero */
.hero {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: clamp(32px, 8vh, 96px) 16px 48px;
  text-align: center;
}
h1 {
  font-weight: 300; font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05; letter-spacing: -0.035em;
}
h1 .accent { font-weight: 600; color: var(--accent); }
.lead {
  max-width: 560px; margin: 24px auto 0;
  font-size: clamp(16px, 2.2vw, 18px); line-height: 1.6; color: var(--muted);
}

/* Notify form */
.notify {
  position: relative; display: flex; gap: 8px;
  max-width: 460px; margin: 36px auto 0; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(11, 42, 58, 0.25);
}
.field-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.notify input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; padding: 12px 8px 12px 44px; outline: none;
}
.notify input::placeholder { color: var(--muted); opacity: 0.8; }
.notify:focus-within { border-color: var(--accent); }
.notify button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 500; font-size: 15px; padding: 12px 20px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.notify button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-msg { min-height: 22px; margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: var(--accent); }
.form-msg.error { color: var(--error); }

/* Features */
.features {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 48px; text-align: left;
}
.features li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); backdrop-filter: blur(8px);
}
.features i { font-size: 28px; color: var(--accent); flex-shrink: 0; }
.features span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.features strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* Footer */
.bottom {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px 16px 32px; font-size: 13px; color: var(--muted);
}
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 20px; text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }

/* Navigation */
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; padding: 10px 18px;
  text-decoration: none; transition: border-color 0.15s, color 0.15s, filter 0.15s;
}
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; padding: 13px 22px; font-size: 15px; }
.btn-primary:hover { filter: brightness(1.08); }
.browse { margin-top: 8px; }

/* Inner pages */
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 16px 48px; }
.page-head { max-width: 640px; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.page-head .lead { margin: 14px 0 0; }
.notice {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13px; color: var(--muted);
  padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.notice i { color: var(--accent); font-size: 16px; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search, .select {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.search { flex: 1 1 260px; }
.search:focus-within, .select:focus-within { border-color: var(--accent); }
.search i, .select i { position: absolute; left: 14px; color: var(--muted); font-size: 18px; pointer-events: none; }
.search input, .select select {
  width: 100%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; padding: 11px 16px 11px 42px; outline: none;
}
.select select { appearance: none; cursor: pointer; padding-right: 20px; }
.select option { color: #0b2a3a; }
.segmented {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.segmented button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  font: inherit; font-size: 14px; padding: 8px 16px 8px 12px; border-radius: 999px;
}
.chip i { font-size: 20px; color: var(--accent); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] i { color: inherit; }

.count { margin: 20px 0 12px; font-size: 13px; color: var(--muted); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(8px); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(11, 42, 58, 0.35); }
.card-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--wave-2), transparent 70%);
}
.card-icon { font-size: 72px; color: var(--accent); }
.badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.badge i { font-size: 13px; }
.badge-digital { color: var(--accent); }
.badge-featured { left: auto; right: 12px; background: var(--sand); color: #3d2d0c; border-color: transparent; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card-title { font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.price { margin-top: auto; padding-top: 14px; font-size: 18px; font-weight: 600; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.price-alt { font-size: 12px; color: var(--muted); margin: 2px 0 14px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty i { font-size: 40px; color: var(--accent); }
.empty p { margin: 10px 0 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.info {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); text-decoration: none;
}
a.info:hover { border-color: var(--accent); }
.info i { font-size: 30px; color: var(--accent); flex-shrink: 0; }
.info h2 { font-size: 14px; font-weight: 600; }
.info p { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.5; word-break: break-word; }
.contact-form {
  display: grid; gap: 14px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(10px);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.contact-form .form-msg { margin-top: 0; }
.map { margin-top: 24px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 360px; background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .top { padding: 16px; }
  .nav a { padding: 8px 10px; }
  .toolbar .segmented { flex: 1 1 100%; }
  .badge { top: 10px; left: 10px; }
  .badge-featured { top: auto; bottom: 10px; right: auto; }
  .segmented button { flex: 1; }
  .select { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-icon { font-size: 52px; }
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 14px; }
  .card-desc { display: none; }
  .price { font-size: 15px; }
  .price small { display: block; }
  .card .btn { padding: 8px 10px; font-size: 13px; }
  .contact { grid-template-columns: 1fr; }
  .contact-form { padding: 18px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .map { height: 280px; }
  .notify { flex-direction: column; border-radius: 20px; }
  .field-icon { top: 30px; }
  .notify button { justify-content: center; }
}

@media (max-width: 400px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}
