@import url("./fonts.css");
@import url("./tokens.css");
@import url("./base.css");
@import url("./layout.css");
@import url("./components.css");

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow span:first-child {
  position: absolute;
  top: 20%;
  left: 15%;
  width: 24rem;
  height: 24rem;
  background: rgba(220, 38, 38, 0.12);
  border-radius: 50%;
  filter: blur(100px);
}

.hero__glow span:last-child {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(80px);
}

[data-theme="light"] .hero__glow span:last-child {
  background: rgba(220, 38, 38, 0.08);
}

[data-theme="light"] .neon-text {
  text-shadow: 0 0 18px rgba(220, 38, 38, 0.25);
}

[data-theme="light"] .price-float {
  box-shadow: 0 10px 24px rgba(23, 20, 18, 0.15);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero__copy {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__copy {
    text-align: left;
  }
}

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.hero__lead {
  margin-top: 1.25rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  max-width: 28rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero__lead {
    margin-inline: 0;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

@media (min-width: 1024px) {
  .hero__cta {
    justify-content: flex-start;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1.75rem;
  color: var(--color-muted-2);
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .hero__meta {
    justify-content: flex-start;
  }
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta .icon {
  color: #ef4444;
}

.hero__visual {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
}

@media (min-width: 768px) {
  .hero__visual {
    min-height: 32rem;
  }
}

.pizza-orb {
  position: relative;
  width: min(22rem, 80vw);
  aspect-ratio: 1;
  animation: float 6s ease-in-out infinite;
}

.pizza-orb__glow {
  position: absolute;
  inset: 1rem;
  background: rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  filter: blur(40px);
  transition: background 0.5s ease;
}

.pizza-orb:hover .pizza-orb__glow {
  background: rgba(220, 38, 38, 0.5);
}

.pizza-orb__img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #171717;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.7s ease;
}

.pizza-orb:hover .pizza-orb__img {
  transform: rotate(12deg) scale(1.05);
}

.pizza-orb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pizza-orb__gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), transparent 45%, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.steam {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  opacity: 0.5;
  pointer-events: none;
}

.steam span {
  width: 0.4rem;
  height: 2.5rem;
  background: #fff;
  border-radius: var(--radius-full);
  filter: blur(8px);
  animation: steam 3s infinite ease-out;
}

.steam span:nth-child(2) {
  height: 3.5rem;
  animation-delay: 1s;
}

.steam span:nth-child(3) {
  height: 2rem;
  animation-delay: 0.5s;
}

.price-float {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  background: #fff;
  color: #000;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transform: rotate(-6deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  animation: float-tilt 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

@media (min-width: 768px) {
  .price-float {
    left: 1.5rem;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.1rem);
  }
}

@keyframes float-tilt {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-1.1rem);
  }
}

@keyframes steam {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  50% {
    transform: translateY(-1.25rem) scaleX(1.2);
    opacity: 0;
  }
  100% {
    transform: translateY(-2.5rem) scaleX(1.5);
    opacity: 0;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--color-muted);
  max-width: 24rem;
  margin-top: 0.75rem;
}

.link-underline {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 0.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.link-underline:hover {
  color: #ef4444;
}

.checkout-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .cart-layout {
    grid-template-columns: 1.5fr 0.8fr;
  }
}

.cart-layout {
  display: grid;
  gap: 2rem;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.blog-hero-img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin: 1.5rem 0 2rem;
}

.error-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1rem 3rem;
}

.error-page h1 {
  font-size: clamp(4rem, 15vw, 8rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--color-primary);
}

.error-page p {
  color: var(--color-muted);
  margin: 1rem 0 1.5rem;
}

.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-split img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  object-fit: cover;
  min-height: 20rem;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
}

.team-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.team-card div {
  padding: 1rem 1.15rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card p {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.noscript-note {
  background: #171717;
  color: var(--color-muted);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}
