:root {
  --bg: #FFFFFF;
  --panel: #F5F5F5;
  --fg: #0D0D0D;
  --fg-dim: #666666;
  --accent: #000000;
  --steel: #B5B5B5;
  --wa: #25D366;
  --success: #1E8E3E;
  --error: #C4291C;
  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.intro-lock { overflow: hidden; height: 100vh; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  transition: opacity 0.6s ease;
}
.intro.is-hidden { opacity: 0; pointer-events: none; }

.intro__logo {
  width: min(72vw, 420px);
  opacity: 0;
  transform: scale(1.15) rotateX(10deg);
  animation: introIn 0.85s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes introIn {
  to { opacity: 1; transform: scale(1) rotateX(0deg); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav__mark { display: flex; align-items: center; text-decoration: none; }
.nav__mark img { height: 30px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--fg-dim); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--fg); }

.nav__cta {
  border: 1.5px solid var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--fg) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--panel);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 60px clamp(20px, 5vw, 64px) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo-stage {
  position: relative;
  width: min(45vw, 200px);
  margin-bottom: 24px;
}

.logo-3d {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 9s linear infinite;
}

.logo-3d__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}
.logo-3d__face--back { transform: rotateY(180deg); }

.hashtag-svg { display: block; }

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.logo-3d__shadow {
  width: 70%;
  height: 18px;
  margin: 10px auto 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.18), transparent 70%);
  animation: shadowPulse 9s linear infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.5; }
  25%, 75% { transform: scaleX(0.55); opacity: 0.25; }
  50% { transform: scaleX(1); opacity: 0.5; }
}

.hero__copy { max-width: 640px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5.4vw, 54px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero__tagline { font-size: 17px; color: var(--fg); margin: 0 0 16px; font-weight: 600; }
.hero p:not(.hero__tagline) { font-size: 15px; color: var(--fg-dim); max-width: 46ch; margin: 0 auto 28px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: #262626; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--fg); }
.btn--light:hover { background: #eeeeee; }

/* About */
.about {
  position: relative;
  background: var(--panel);
  padding: 90px clamp(20px, 5vw, 64px);
}
.about__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about__eyebrow { color: var(--fg-dim); font-size: 14px; letter-spacing: 0.04em; }
.about h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 14px 0 10px; }
.about__tagline { color: var(--fg); font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.about__desc { color: var(--fg-dim); font-size: 15px; max-width: 60ch; margin: 0 auto 26px; }
.about__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge {
  border: 1.5px solid var(--fg);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Register */
.register {
  position: relative;
  background: var(--panel);
  padding: 90px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: center;
}

.register--page { min-height: calc(100vh - 200px); align-items: center; }

.register__card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 40px clamp(24px, 4vw, 48px);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.register__tag {
  display: inline-block;
  color: var(--fg-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.register__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 10px;
}

.register__desc {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg-dim);
  font-size: 12px;
}

.form-input {
  width: 100%;
  border: 1.5px solid var(--steel);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  background: #fff;
  transition: border-color 0.2s ease;
}
.form-input:focus { outline: none; border-color: var(--fg); }
.form-input.is-invalid { border-color: var(--error); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  color: var(--fg);
}
select.form-input:invalid { color: #767676; }

.form-error {
  display: block;
  min-height: 16px;
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
}

.register__submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  background: var(--wa);
  color: #08341a;
}
.register__submit:hover { background: #22c15e; }

.register__note {
  text-align: center;
  color: var(--fg-dim);
  font-size: 12px;
  margin: 14px 0 0;
}

/* Category */
.category { position: relative; background: var(--bg); padding: 90px clamp(20px, 5vw, 64px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  background: var(--fg);
  color: #fff;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  margin: 0 0 12px;
}
.category__hint {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 0 0 36px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

.product-card__box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 3px solid var(--fg);
  border-radius: 6px;
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
}

.product-card__box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  margin: 0 0 16px;
}

.btn-order {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--fg);
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-order:hover { background: #262626; transform: translateY(-1px); }

/* Final CTA */
.cta-final { position: relative; background: var(--fg); color: #fff; padding: 90px clamp(20px, 5vw, 64px); text-align: center; }
.cta-final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3.6vw, 38px); max-width: 20ch; margin: 0 auto 28px; line-height: 1.2; }

/* Footer */
.footer {
  position: relative;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
  font-size: 13px;
  color: var(--fg-dim);
  font-family: var(--font-display);
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 25;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* Mobile */
@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 0 32px;
    font-size: 16px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    box-shadow: -12px 0 30px rgba(0,0,0,0.15);
  }
  .nav__links.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }
  .nav__toggle { display: flex; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero__logo-stage { width: 42vw; max-width: 160px; }

  .about, .category, .cta-final, .register { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro__logo { animation: none; opacity: 1; transform: none; }
  .logo-3d { animation: none; }
  .logo-3d__shadow { animation: none; }
}
/* Pincode sits next to nothing special, uses existing .form-input styles */
/* Owner dashboard */
.owner-panel { padding: 40px clamp(20px, 5vw, 64px) 90px; max-width: 800px; margin: 0 auto; }
.owner-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.owner-panel__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0; }
.owner-panel__actions { display: flex; gap: 10px; }
.owner-panel__loading { color: var(--fg-dim); font-size: 14px; }

.btn-order--ghost { background: #fff; color: var(--fg); border: 1.5px solid var(--fg); }
.btn-order--ghost:hover { background: var(--panel); }

.order-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.order-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-card__type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  background: var(--fg);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.order-card__date { color: var(--fg-dim); font-size: 12px; }
.order-card p { margin: 4px 0; font-size: 14px; }

.order-card__status {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.order-card__status--pending { background: #FFF3CD; color: #7A5B00; }
.order-card__status--done { background: #D4EDDA; color: #155724; }

.form-success { text-align: center; }
.form-success .btn { margin-top: 10px; }
