:root {
  --bg: #050816;
  --bg-soft: #0f172a;
  --card-bg: #020617;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #1d293b 0, #020617 45%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.08), transparent 55%),
    linear-gradient(to right, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.18s ease-out;
}

.primary-btn {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #111827;
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.4);
}

.primary-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.55);
}

.secondary-btn {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text);
}

.secondary-btn:hover {
  border-color: rgba(249, 115, 22, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

.ghost-btn {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

.ghost-btn:hover {
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.8);
}

.main {
  padding: 1.5rem 5vw 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 2.5rem 2.8rem;
  margin-top: 0.8rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.24), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(135deg, #020617, #020617 60%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.95);
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3.1vw + 1.5rem, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  max-width: 30rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.1), transparent 55%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-image::after {
  content: "Fast delivery";
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.menu-section {
  margin-top: 3.3rem;
}

.menu-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.menu-header p {
  color: var(--muted);
}

.menu-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.filter-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.filter-btn:hover {
  color: var(--text);
}

.menu-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.7rem;
}

.food-card {
  background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.15), transparent 55%),
    linear-gradient(145deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
}

.food-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.food-content {
  padding: 0.95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.food-title {
  font-size: 1.02rem;
}

.food-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.food-meta {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.food-price {
  font-weight: 600;
  font-size: 1.02rem;
  color: #fbbf24;
}

.rating {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.rating::before {
  content: "★★★★★";
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #facc15, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rating::after {
  content: attr(data-rating);
  margin-left: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.order-btn {
  margin-top: 0.7rem;
  width: 100%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(420px, 92vw);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.15), transparent 55%),
    linear-gradient(135deg, #020617, #020617 55%, #020617 100%);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.4rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.modal-title {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.modal-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-value {
  font-size: 0.95rem;
}

.total-row .modal-value {
  font-weight: 600;
  color: #facc15;
}

.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

#quantity {
  width: 3rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 0.85rem;
}

#quantity:focus {
  outline: none;
}

.qty-btn {
  border-radius: 999px;
  border: none;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.qty-btn:hover {
  color: var(--text);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.modal-close:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .header {
    padding-inline: 1.1rem;
    gap: 0.8rem;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.8rem 1.6rem 2rem;
  }

  .hero-image {
    order: -1;
    max-height: 260px;
  }

  .main {
    padding-inline: 1.4rem;
  }

  .menu-filters {
    width: 100%;
    justify-content: space-between;
  }

  .menu-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero {
    border-radius: 24px;
  }

  .menu-filters {
    border-radius: 18px;
    justify-content: flex-start;
  }

  .food-image {
    height: 170px;
  }
}
