:root {
  --bg: #fff7e8;
  --surface: #fffdf6;
  --text: #1f2a37;
  --muted: #5e6a75;
  --primary: #f97316;
  --secondary: #0ea5a4;
  --accent: #f43f5e;
  --line: #ffd7a8;
  --success: #047857;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  background: radial-gradient(circle at 15% 20%, #fff1d6 0, #fff7e8 40%),
    radial-gradient(circle at 90% 0%, #d4f7ef 0, transparent 35%),
    radial-gradient(circle at 85% 90%, #ffe4ec 0, transparent 30%),
    var(--bg);
  min-height: 100%;
}

.background-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 999px;
  opacity: 0.32;
  filter: blur(1px);
}

.shape-a {
  width: 240px;
  height: 240px;
  background: #7dd3fc;
  top: 16%;
  left: -80px;
  animation: drift 11s ease-in-out infinite alternate;
}

.shape-b {
  width: 320px;
  height: 320px;
  background: #fb7185;
  bottom: -120px;
  right: -90px;
  animation: drift 13s ease-in-out infinite alternate;
}

.shape-c {
  width: 190px;
  height: 190px;
  background: #2dd4bf;
  top: 55%;
  right: 20%;
  animation: drift 9s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-20px) scale(1.08);
  }
}

.site-header,
.site-content,
.launch-gate,
.cart-panel {
  position: relative;
  z-index: 2;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-family: "Bungee", cursive;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.cart-toggle {
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
}

.site-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}

.hero {
  padding: 40px 0 28px;
  animation: fadeUp 0.6s ease;
}

.tag {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--secondary);
  font-size: 0.86rem;
}

.hero h1,
.gate-card h1 {
  margin: 8px 0 10px;
  line-height: 1.05;
  font-family: "Bungee", cursive;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #0f172a;
}

.hero p {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.24);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
}

.shop,
.safety,
.faq,
.contact {
  margin-top: 42px;
}

.product-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
  animation: fadeUp 0.55s ease;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-content {
  padding: 14px;
}

.product-content h3 {
  margin: 0;
}

.product-content p {
  margin: 7px 0;
  color: var(--muted);
}

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

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.safety-grid article {
  background: #ffffff;
  border: 2px solid #f9c9d5;
  border-radius: 14px;
  padding: 12px;
}

.disclaimer {
  color: #7c2d12;
  font-weight: 700;
  margin-top: 14px;
}

.faq-list details {
  background: #fff;
  border: 2px solid #dbeafe;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: #0369a1;
  font-weight: 700;
}

.launch-gate {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.gate-card {
  width: min(670px, 100%);
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(31, 42, 55, 0.1);
  animation: fadeUp 0.65s ease;
}

.gate-card h1 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
}

#gate-message {
  color: var(--muted);
}

.countdown {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 10px;
}

.countdown div {
  background: #fff;
  border: 2px solid #bae6fd;
  border-radius: 12px;
  text-align: center;
  padding: 8px 6px;
}

.countdown span {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
}

.countdown small {
  color: var(--muted);
  font-weight: 700;
}

.notify-form label {
  font-weight: 700;
}

.notify-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.notify-row input {
  flex: 1;
  border-radius: 999px;
  border: 2px solid var(--line);
  padding: 11px 12px;
  font-family: inherit;
}

.notify-result {
  margin: 8px 0 0;
  font-size: 0.93rem;
  color: var(--success);
}

.gate-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-links a {
  color: #0369a1;
  font-weight: 800;
  text-decoration: none;
}

.page-content {
  padding-top: 20px;
}

.page-hero {
  padding: 20px 0 6px;
  animation: fadeUp 0.6s ease;
}

.page-hero h1 {
  margin: 8px 0 10px;
  line-height: 1.05;
  font-family: "Bungee", cursive;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-stack {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.page-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
}

.page-card h2 {
  margin-top: 0;
}

.page-card a {
  color: #0369a1;
  font-weight: 700;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: #fff;
  border-left: 2px solid var(--line);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.cart-panel[hidden] {
  display: none;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
}

.cart-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.cart-items {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  flex: 1;
  overflow: auto;
}

.cart-items li {
  border-bottom: 1px solid #fee2e2;
  padding: 10px 0;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-controls {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.cart-controls button {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
}

.cart-summary {
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.cart-note {
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .gate-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(74px, 1fr));
  }

  .site-header {
    padding-top: 14px;
  }

  .hero {
    padding-top: 26px;
  }
}
