/* =========================================================
   Eggstra Crunch Website
   Vanilla CSS sahaja. Tukar warna utama di :root.
   ========================================================= */

:root {
  --bg: #fff8df;
  --bg-soft: #fff1bd;
  --text: #241806;
  --muted: #6d5832;
  --primary: #f7b500;
  --primary-dark: #a86000;
  --accent: #ff7a1a;
  --card: rgba(255, 255, 255, 0.78);
  --dark: #201205;
  --dark-card: #321d08;
  --border: rgba(83, 49, 8, 0.16);
  --shadow: 0 22px 70px rgba(89, 51, 0, 0.16);
  --radius: 28px;
  --container: 1120px;
}

body.dark-mode {
  --bg: #160e05;
  --bg-soft: #241707;
  --text: #fff4d0;
  --muted: #dfc993;
  --card: rgba(48, 30, 10, 0.82);
  --border: rgba(255, 205, 100, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(255, 201, 44, 0.38), transparent 36%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section-padding {
  padding: 96px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 223, 0.72);
  border-bottom: 1px solid var(--border);
}

body.dark-mode .site-header {
  background: rgba(22, 14, 5, 0.78);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2b1800;
  background: linear-gradient(135deg, #ffe179, var(--primary), #ff7a1a);
  box-shadow: 0 12px 28px rgba(168, 96, 0, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.theme-toggle {
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-one {
  background: var(--primary);
  top: 12%;
  right: 8%;
}

.hero-glow-two {
  background: var(--accent);
  bottom: 8%;
  left: 5%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-description,
.section-heading p,
.body-large {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 680px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #261200;
  background: linear-gradient(135deg, #ffe179, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(168, 96, 0, 0.25);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
}

.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stats div,
.product-card,
.feature-card,
.pricing-card,
.order-form,
.testimonial-card,
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.35rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card {
  position: relative;
  border-radius: 38px;
  padding: 28px;
  transform: rotate(2deg);
} 

.product-poster {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(89, 51, 0, 0.18);
  border: 1px solid var(--border);
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: #ffe179;
  font-weight: 900;
  z-index: 1;
}

.packet-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  color: #2b1600;
  background: linear-gradient(155deg, #fff0a7, #ffc21a 46%, #f47713);
}

.packet-visual::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 2px dashed rgba(43, 22, 0, 0.22);
  border-radius: 26px;
}

.packet-top,
.packet-main,
.packet-visual p {
  position: absolute;
  z-index: 1;
  font-weight: 1000;
}

.packet-top {
  top: 92px;
  font-size: 3.8rem;
  letter-spacing: -0.08em;
}

.packet-main {
  top: 155px;
  font-size: 5rem;
  letter-spacing: -0.08em;
}

.packet-visual p {
  bottom: 82px;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.packet-chip {
  position: absolute;
  width: 88px;
  height: 42px;
  border-radius: 50%;
  background: #8a4b09;
  opacity: 0.22;
}

.chip-one {
  left: 56px;
  bottom: 80px;
  transform: rotate(28deg);
}

.chip-two {
  right: 64px;
  top: 90px;
  transform: rotate(-24deg);
}

.chip-three {
  right: 98px;
  bottom: 135px;
  transform: rotate(8deg);
}

.product-info {
  padding-top: 24px;
}

.product-info p,
.feature-card p,
.pricing-card li,
.form-note,
.faq-list p {
  color: var(--muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-weight: 900;
}

.price-row small {
  color: var(--primary-dark);
}

.marquee {
  overflow: hidden;
  background: var(--dark);
  color: #ffe179;
  padding: 16px 0;
  font-weight: 900;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee span {
  padding-right: 32px;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section-soft {
  background: linear-gradient(180deg, transparent, var(--bg-soft));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(247, 181, 0, 0.22);
  font-size: 1.7rem;
}

.split-section,
.order-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.pricing-card {
  padding: 32px;
  border-radius: var(--radius);
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.pricing-top span {
  font-weight: 900;
}

.pricing-top strong {
  font-size: 3.2rem;
  letter-spacing: -0.08em;
}

.pricing-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.section-dark {
  background: radial-gradient(circle at top right, rgba(247, 181, 0, 0.18), transparent 40%), var(--dark);
  color: #fff6d9;
}

.section-dark .eyebrow,
.section-dark .section-heading p {
  color: #ffe179;
}

.testimonial-shell {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 16px;
  align-items: center;
}

.testimonial-card {
  min-height: 260px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--dark-card);
  border-color: rgba(255, 225, 121, 0.14);
  color: #fff6d9;
}

.testimonial-card p {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.testimonial-card footer {
  margin-top: 24px;
  color: #ffe179;
  font-weight: 900;
}

.slider-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 121, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffe179;
  cursor: pointer;
  font-size: 2rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 225, 121, 0.35);
  cursor: pointer;
}

.testimonial-dots button.active {
  width: 30px;
  background: #ffe179;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 22px;
  border-radius: 20px;
}

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

.faq-list p {
  margin-top: 10px;
}

.order-section {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-cards a {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 900;
}

.order-form {
  display: grid;
  gap: 12px;
  padding: 30px;
  border-radius: var(--radius);
}

.order-form label {
  font-weight: 900;
  margin-top: 8px;
}

.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: #241806;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}

.form-note {
  text-align: center;
  font-size: 0.92rem;
}

.site-footer {
  padding: 34px 0;
  background: var(--dark);
  color: #fff2c4;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content p {
  color: #d9be7a;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  padding: 14px 18px;
  border-radius: 999px;
  background: #20c763;
  color: #062d15;
  font-weight: 1000;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

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

  .hero-grid,
  .split-section,
  .order-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-card {
    transform: none;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 72px 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .packet-visual {
    min-height: 340px;
  }

  .packet-top {
    top: 78px;
    font-size: 2.8rem;
  }

  .packet-main {
    top: 132px;
    font-size: 3.7rem;
  }

  .price-row,
  .pricing-top,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
