:root {
  --dark-blue: #1A2A6C;
  --brand-blue: #2B579A;
  --light-blue: #3A7BD5;
  --orange: #F58B1E;
  --green: #27AE60;
  --purple: #8E44AD;
  --red: #E74C3C;
  --bg-light: #F5F7FA;
  --text: #1A1A1A;
  --text-secondary: #666;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
}

.nav-brand img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--brand-blue); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--brand-blue) 50%, var(--light-blue) 100%);
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(5%, 3%); }
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 24px;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: #fff;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--dark-blue);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
}

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

.feature-card {
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SHOWCASE ===== */
.showcase {
  padding: 100px 0;
  background: var(--bg-light);
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.showcase-row:last-child { margin-bottom: 0; }

.showcase-reverse { flex-direction: row-reverse; }

.showcase-text { flex: 1; }

.showcase-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark-blue);
}

.showcase-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.showcase-visual { flex: 0 0 auto; }

.phone-mockup {
  width: 240px;
  height: 480px;
  border-radius: 32px;
  background: #1a1a1a;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.placeholder-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  color: #aaa;
  font-size: 13px;
}

/* ===== MOCK APP INTERFACES ===== */
.mock-nav {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e85d2c, #f07a3a);
  position: relative;
}

.mock-nav::before {
  content: '‹';
  position: absolute;
  left: 10px;
  font-size: 18px;
  opacity: 0.8;
}

/* -- Product List -- */
.mock-product-list {
  display: flex;
  flex-direction: column;
}

.mock-categories {
  display: flex;
  gap: 0;
  padding: 8px 8px 6px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: hidden;
}

.mock-cat {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  color: #666;
  white-space: nowrap;
  cursor: default;
}

.mock-cat.active {
  background: #e85d2c;
  color: #fff;
}

.mock-products {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-product {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mock-product-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fde8d8, #fcebd4);
  flex-shrink: 0;
}

.mock-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mock-product-name {
  font-size: 10px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-product-price {
  font-size: 11px;
  font-weight: 700;
  color: #e85d2c;
  margin-top: 4px;
}

/* -- Cart -- */
.mock-cart {
  display: flex;
  flex-direction: column;
}

.mock-cart-items {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-cart-item {
  display: flex;
  gap: 8px;
  padding: 10px 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mock-cart-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fde8d8, #fcebd4);
  flex-shrink: 0;
}

.mock-cart-info {
  flex: 1;
  min-width: 0;
}

.mock-cart-name {
  font-size: 10px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-cart-qty {
  font-size: 9px;
  color: #999;
  margin-top: 2px;
}

.mock-cart-price {
  font-size: 11px;
  font-weight: 700;
  color: #e85d2c;
  margin-top: 4px;
}

.mock-cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.mock-cart-total {
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

.mock-cart-btn {
  font-size: 10px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #e85d2c, #f07a3a);
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
}

/* -- Orders -- */
.mock-orders {
  display: flex;
  flex-direction: column;
}

.mock-order-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.mock-tab {
  flex: 1;
  text-align: center;
  font-size: 10px;
  padding: 8px 0;
  color: #666;
  position: relative;
  cursor: default;
}

.mock-tab.active {
  color: #e85d2c;
  font-weight: 600;
}

.mock-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #e85d2c;
  border-radius: 1px;
}

.mock-order-list {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-order {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mock-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mock-order-no {
  font-size: 9px;
  color: #999;
}

.mock-order-status {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 500;
}

.status-pending {
  background: #fff3e0;
  color: #e65100;
}

.status-done {
  background: #e8f5e9;
  color: #2e7d32;
}

.mock-order-items {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.mock-order-items .mock-product-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.mock-order-footer {
  display: flex;
  justify-content: flex-end;
}

.mock-order-amount {
  font-size: 10px;
  font-weight: 600;
  color: #333;
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.footer-logo img {
  border-radius: 5px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom p { margin-bottom: 6px; }

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { gap: 40px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    border-bottom: 1px solid transparent;
  }

  .nav-links.open {
    max-height: 300px;
    padding: 16px 0;
    border-bottom-color: rgba(0,0,0,0.06);
  }

  .nav-links a {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .nav-links a::after { display: none; }

  .hero { min-height: 70vh; padding: 100px 24px 60px; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 18px; }
  .hero-desc { font-size: 14px; }

  .features, .showcase { padding: 60px 0; }
  .section-title { font-size: 24px; }
  .section-desc { margin-bottom: 40px; }

  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card { padding: 24px 20px; }

  .showcase-row,
  .showcase-row.showcase-reverse {
    flex-direction: column;
    gap: 32px;
  }

  .showcase-text { text-align: center; }
  .showcase-text h3 { font-size: 20px; }

  .phone-mockup { width: 200px; height: 400px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
}
