body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-main);
  border-radius: 50%;
  display: inline-block;
  margin: 0 1px;
}

/* Jarak antar link sedikit dirapatkan karena link sekarang punya padding sendiri */
.nav-links {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Beri bentuk pil dan padding pada semua link */
.nav-links a {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  transition:
    background 0.3s ease,
    opacity 0.3s ease;
}

/* Efek hover: muncul lingkaran transparan tipis */
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

/* Menu yang sedang aktif: muncul pil iOS (tanpa garis bawah) */
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-text);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-actions svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 5.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Satu kata kunci pada judul hero diberi warna aksen */
.hero h1 .hero-accent {
  color: var(--accent-text);
}

.hero p {
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.hero-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.hero-image-wrapper img {
  width: 700px;
  opacity: 0.9;
  filter: contrast(1.05);
  transform: rotate(-15deg) translateY(5%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 50%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 50%
  );
}

.floating-card {
  position: absolute;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  width: 220px;
  z-index: 3;
}

.floating-card.left {
  left: 10%;
  bottom: 20%;
}

.floating-card.right {
  right: 8%;
  bottom: 30%;
}

.floating-card h4 {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.floating-card p {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

.floating-card .arrow-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.ticker-bar {
  position: absolute;
  bottom: 40px;
  width: 90%;
  max-width: 1200px;
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 3;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  margin-top: 1rem;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.link-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-arrow:hover {
  color: var(--text-main);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 60px;
}

.category-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

/* Gradasi gelap tipis di bawah kartu supaya teks putih tetap terbaca */
.category-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(20, 23, 28, 0.85) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.category-card:hover img {
  opacity: 0.9;
  transform: scale(1.05);
}

.category-card-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-card .arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 20px;
  height: 20px;
}

.filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 60px;
}

.product-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card:hover {
  background: var(--surface-hover);
}

.product-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  z-index: 2;
}

.product-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.product-badge.out-of-stock {
  color: #ff5555;
}

.favorite-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--text-muted);
  transition: color 0.3s;
}

.favorite-btn:hover {
  color: var(--text-main);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface-color);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-text);
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-main);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.add-btn:hover {
  transform: scale(1.1);
  background: var(--accent-ink);
  color: var(--accent-text);
}

.notify-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.notify-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 60px;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-color);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.split-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 80%;
}

.steps {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.step {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step span {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: background 0.3s;
}

.btn-outline:hover {
  background: var(--surface-color);
}

.store-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.store-tag {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.store-details {
  display: flex;
  gap: 4rem;
  margin-bottom: 2rem;
}

.store-details h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.store-details p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-main);
}

footer {
  padding: 80px 0 40px;
}

.footer-top {
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.footer-top h2 {
  font-size: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-col ul li a {
  color: var(--text-main);
}

.footer-col ul li a:hover {
  color: var(--accent-text);
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 20px;
}

.legal-links a:hover {
  color: var(--accent-text);
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
  .hero-image-wrapper img {
    width: 500px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-container {
    width: 90%;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .hero-image-wrapper img {
    width: 350px;
  }
  .floating-card {
    display: none;
  }
  .ticker-bar {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 16px;
    align-items: center;
    bottom: 20px;
    width: 90%;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .filter-btn {
    white-space: nowrap;
  }
  .split-content h2 {
    font-size: 2rem;
  }
  .split-content p {
    max-width: 100%;
  }
  .steps {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .newsletter {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .store-details {
    flex-direction: column;
    gap: 1.5rem;
  }
}
.scroll-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.scroll-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* BARU */
.flash-alert {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  color: var(--bad);
  font-size: 0.9rem;
  text-align: center;
}

