:root {
  --bg: #f4f7fb;
  --ink: #0d1720;
  --muted: rgba(13, 23, 32, 0.62);
  --line: rgba(13, 23, 32, 0.10);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.62);

  --accent: #0b1a24;
  --accent-2: #1f6feb;
  --accent-3: #00b894;
  --danger: #c73b3b;

  --shadow-soft: 0 20px 60px rgba(9, 30, 66, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.bg-gradient {
  position: fixed;
  inset: -40vh -20vw;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(31, 111, 235, 0.18) 0%, transparent 60%),
    radial-gradient(820px 520px at 65% 5%, rgba(0, 184, 148, 0.12) 0%, transparent 62%),
    radial-gradient(900px 520px at 100% 50%, rgba(135, 79, 246, 0.10) 0%, transparent 62%),
    radial-gradient(900px 520px at 10% 90%, rgba(255, 178, 92, 0.12) 0%, transparent 62%);
  filter: blur(2px) saturate(1.1);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(244, 247, 251, 0.65);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.10em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,0.85) 0%, transparent 60%),
    linear-gradient(135deg, rgba(31,111,235,1), rgba(0,184,148,1));
  box-shadow: 0 18px 40px rgba(31,111,235,0.18);
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover { color: var(--ink); }

main {
  width: min(1200px, 92vw);
  margin: 26px auto 90px;
}

section { margin: 54px 0; }

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 40px);
}

.kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: rgba(13, 23, 32, 0.55);
}

.muted { color: var(--muted); }

/* Liquid glass surfaces */
.glass-surface {
  position: relative;
  border-radius: 68px;
  background: #ffffff;
  box-shadow: 26px 26px 51px #d9d9d9, -26px -26px 51px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.80);
  overflow: hidden;
}

.glass-card {
  position: relative;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.specular {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 20% 20%, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.12) 46%, transparent 70%),
    radial-gradient(closest-side at 80% 40%, rgba(255,255,255,0.42) 0%, transparent 60%);
  transform: rotate(14deg);
  opacity: 0.92;
}

.glass-surface .specular,
.glass-card .specular {
  /* Optional mouse-follow: defaults stay nice if JS not running. */
  transform: translate(calc(var(--mx, 0.65) * -12px), calc(var(--my, 0.35) * -10px)) rotate(14deg);
}

.hero {
  padding: 56px 54px 42px;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.glass-tile {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(13, 23, 32, 0.10);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-inset);
  color: var(--muted);
}

.glass-tile span {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.catalog-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background:
    radial-gradient(18px 18px at 25% 28%, rgba(255,255,255,0.85) 0%, transparent 70%),
    linear-gradient(135deg, rgba(31,111,235,0.22), rgba(0,184,148,0.20));
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 20px;
}

.card-desc {
  margin: 0;
  line-height: 1.45;
  min-height: 44px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.price {
  color: rgba(13, 23, 32, 0.9);
  font-weight: 800;
}

.pager {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.see-more-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.why-grid article {
  padding: 18px;
}

.why-grid h3 {
  margin: 0 0 8px;
}

.support {
  padding: 28px;
}

.support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(13,23,32,1), rgba(31,111,235,1));
  color: white;
  font-weight: 800;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-small { padding: 8px 12px; font-size: 13px; }

.btn-outline {
  background: rgba(255,255,255,0.62);
  border-color: rgba(13, 23, 32, 0.16);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.checkout-panel {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 24, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 60;
}

.checkout-panel.open { display: flex; }

.checkout-card {
  width: min(540px, 96vw);
  padding: 22px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: rgba(13, 23, 32, 0.5);
  font-size: 28px;
  cursor: pointer;
}

label { display: block; margin: 12px 0 6px; font-weight: 700; }

input {
  width: 100%;
  border: 1px solid rgba(13, 23, 32, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: 0;
  backdrop-filter: blur(10px);
}

input:focus { border-color: rgba(31, 111, 235, 0.55); box-shadow: 0 0 0 4px rgba(31,111,235,0.14); }

.checkout-links {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.hidden { display: none; }

/* Liquid CTA button (Tailwind-like effect, implemented as plain CSS) */
.liquid-cta {
  position: relative;
  height: 64px;
  width: min(420px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(13, 23, 32, 0.14);
  background: rgba(13, 23, 32, 0.92);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 12px 18px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(9, 30, 66, 0.22);
  transition: border-color 220ms ease, transform 220ms ease, color 220ms ease;
}

.liquid-cta::before,
.liquid-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
  transition: transform 500ms ease, right 500ms ease, bottom 500ms ease, opacity 500ms ease;
}

.liquid-cta::before {
  width: 56px;
  height: 56px;
  right: 10px;
  top: 10px;
  background: rgba(162, 28, 175, 0.9);
}

.liquid-cta::after {
  width: 84px;
  height: 84px;
  right: 36px;
  top: 18px;
  background: rgba(255, 140, 175, 0.75);
}

.liquid-cta__label {
  position: relative;
  z-index: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.liquid-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 110, 160, 0.55);
  color: rgba(255, 200, 225, 0.98);
}

.liquid-cta:hover::after {
  right: -28px;
}

.liquid-cta:hover::before {
  right: 52px;
  bottom: -28px;
  opacity: 1;
  filter: blur(24px);
}

/* Heart (favorite) - SVG variant without text */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  border-radius: 35px;
  border: 9px solid rgba(255, 226, 226, 1);
  background-color: #e8e8e8;
  box-shadow: rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.68, -0.55, 0.27, 2.5), border-color 400ms ease-in-out, background-color 400ms ease-in-out;
}

.fav-btn:hover {
  background-color: #eee;
  transform: scale(1.05);
  animation: movingBorders 3s infinite;
}

@keyframes movingBorders {
  0% { border-color: #fce4e4; }
  50% { border-color: #ffd8d8; }
  90% { border-color: #fce4e4; }
}

.fav-btn svg {
  fill: rgb(255, 110, 110);
  transition: opacity 100ms ease-in-out;
}

.fav-btn .filled {
  position: absolute;
  opacity: 0;
  top: 14px;
  left: 14px;
}

@keyframes beatingHeart {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.fav-btn:hover .empty {
  opacity: 0;
}

.fav-btn:hover .filled {
  opacity: 1;
  animation: beatingHeart 1.2s infinite;
}

.fav-btn.active .empty { opacity: 0; }
.fav-btn.active .filled { opacity: 1; }

.fav-btn.active .filled {
  animation: beatingHeart 1.2s infinite;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.6s ease forwards;
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .catalog-grid, .why-grid, .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 28px 30px; border-radius: 34px; }
  .site-header { padding: 12px 16px; }
}

@media (max-width: 680px) {
  main { width: min(1200px, 94vw); }
  .catalog-grid, .why-grid, .hero-metrics { grid-template-columns: 1fr; }
  .hero-actions, .support-actions { display: grid; }
  .hero-lead { font-size: 16px; }
}
