:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-soft: #edf4ff;
  --bg-warm: #e8f3ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #243349;
  --text-soft: #5f738f;
  --heading: #152238;
  --primary: #2c6ef2;
  --primary-strong: #1e56c8;
  --secondary: #ffb347;
  --accent: #27c2a5;
  --accent-strong: #168f79;
  --border: rgba(47, 77, 122, 0.12);
  --shadow: 0 20px 50px rgba(37, 73, 130, 0.14);
  --shadow-soft: 0 14px 30px rgba(37, 73, 130, 0.1);
  --radius: 24px;
  --radius-small: 16px;
  --container: min(1120px, calc(100vw - 2rem));
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(44, 110, 242, 0.12), transparent 26%),
    radial-gradient(circle at left center, rgba(39, 194, 165, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6ff 52%, #f5f8ff 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--heading);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(222, 237, 255, 0.6));
}

.section-warm {
  background:
    radial-gradient(circle at bottom left, rgba(255, 179, 71, 0.28), transparent 28%),
    linear-gradient(180deg, #eef6ff 0%, #e6f1ff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 255, 0.8);
  border-bottom: 1px solid rgba(47, 77, 122, 0.08);
}

.header-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--heading);
}

.brand small {
  margin-top: 0.2rem;
  color: var(--text-soft);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4aa3ff);
  box-shadow: 0 10px 22px rgba(44, 110, 242, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--heading);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(44, 110, 242, 0.12);
  color: var(--primary-strong) !important;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: rgba(44, 110, 242, 0.1);
  border-radius: 16px;
  padding: 0.65rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding-top: 4rem;
}

.hero-grid,
.about-grid,
.ordering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--primary-strong);
  background: rgba(44, 110, 242, 0.1);
}

.hero h1,
.section-heading h2,
.about-copy h2,
.ordering-copy h2 {
  margin: 0;
  font-family: "Fredoka", Arial, sans-serif;
  line-height: 1;
  color: var(--heading);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.25rem);
}

.tagline {
  margin: 0.95rem 0 1rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-text,
.section-heading p,
.about-copy p,
.ordering-copy p,
.contact-card p,
.modal-description {
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #4aa3ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(44, 110, 242, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 32px rgba(44, 110, 242, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(47, 77, 122, 0.12);
  color: var(--heading);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-highlights li {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(47, 77, 122, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  position: relative;
}

.hero-card,
.ordering-panel,
.about-visual {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.generated-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  max-width: min(18rem, 58%);
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 77, 122, 0.08);
  animation: bob 4s ease-in-out infinite;
}

.floating-note strong,
.panel-badge strong {
  display: block;
  font-family: "Fredoka", Arial, sans-serif;
  color: var(--heading);
  margin-bottom: 0.35rem;
}

.floating-note span,
.panel-badge span {
  color: var(--text-soft);
  line-height: 1.5;
}

.note-top {
  top: 1.5rem;
  left: -1.5rem;
}

.note-bottom {
  right: -1rem;
  bottom: 1.75rem;
  animation-delay: 0.9s;
}

.about-copy h2,
.ordering-copy h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.about-points,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-tile,
.contact-card,
.step-card,
.product-card {
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 77, 122, 0.08);
  box-shadow: var(--shadow-soft);
}

.info-tile,
.contact-card {
  padding: 1.25rem;
}

.info-tile h3,
.contact-card h3,
.step-card h3 {
  margin: 0 0 0.6rem;
  font-family: "Fredoka", Arial, sans-serif;
  color: var(--heading);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 22px 40px rgba(37, 73, 130, 0.16);
  border-color: rgba(44, 110, 242, 0.18);
}

.product-button-shell {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.product-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.8), rgba(255, 255, 255, 0.9));
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.price-pill {
  position: absolute;
  right: 0.95rem;
  bottom: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(37, 73, 130, 0.12);
}

.product-content {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
}

.product-content h3 {
  margin: 0;
  font-family: "Fredoka", Arial, sans-serif;
  color: var(--heading);
  font-size: 1.4rem;
}

.product-content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.product-content .button {
  width: 100%;
  margin-top: 0.2rem;
}

.ordering-grid {
  gap: 2rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.step-card {
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
}

.step-card span {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(44, 110, 242, 0.14);
  color: var(--primary-strong);
  font-weight: 800;
}

.panel-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.contact-grid {
  margin-top: 2.4rem;
}

.contact-card {
  min-height: 12rem;
}

.contact-card a,
.contact-card strong {
  color: var(--heading);
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(47, 77, 122, 0.08);
  background: rgba(245, 248, 255, 0.92);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-shell strong {
  font-family: "Fredoka", Arial, sans-serif;
  color: var(--heading);
}

.footer-shell p {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-soft);
  font-weight: 600;
}

.modal.hidden,
.toast:empty {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 50, 0.58);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  border-radius: 30px;
  overflow: hidden;
  background: #f7fbff;
  box-shadow: 0 34px 70px rgba(18, 30, 50, 0.28);
  animation: modalIn 0.24s ease;
}

.modal-media {
  background: linear-gradient(180deg, #e9f4ff, #dbeeff);
}

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

.modal-content {
  padding: 2rem 1.5rem 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--heading);
  box-shadow: 0 10px 20px rgba(18, 30, 50, 0.12);
  font-size: 1.4rem;
}

.selected-flavor {
  margin: 1.3rem 0 1.2rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(44, 110, 242, 0.08);
}

.selected-flavor span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.selected-flavor strong {
  font-family: "Fredoka", Arial, sans-serif;
  color: var(--heading);
  font-size: 1.2rem;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--heading);
}

.field input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(47, 77, 122, 0.16);
  background: #fff;
  color: var(--heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: 0;
  border-color: rgba(44, 110, 242, 0.5);
  box-shadow: 0 0 0 4px rgba(44, 110, 242, 0.12);
}

.field-error,
.form-status {
  display: block;
  min-height: 1.2rem;
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.field-error {
  color: #c0392b;
}

.form-status.is-error {
  color: #b63a32;
}

.form-status.is-success {
  color: #157b65;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.modal-actions .button {
  flex: 1 1 180px;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1800;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(21, 34, 56, 0.94);
  color: #fff;
  box-shadow: 0 18px 36px rgba(47, 31, 24, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .ordering-grid,
  .product-grid,
  .about-points,
  .contact-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .note-top,
  .note-bottom {
    position: static;
    max-width: 100%;
    margin-top: 1rem;
  }

  .modal-media {
    max-height: 14rem;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 22px;
    background: rgba(245, 248, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(47, 77, 122, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
  }

  .nav-cta {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 4.3rem 0;
  }

  .hero-actions,
  .modal-actions,
  .footer-shell,
  .footer-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .brand small {
    font-size: 0.85rem;
  }

  .hero-highlights {
    flex-direction: column;
  }

  .contact-grid,
  .about-points,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem 1rem 1.2rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
