:root {
  --bg: #f5f9ff;
  --bg-deep: #ebf3ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #0e1a33;
  --muted: #60708f;
  --primary: #1d63ff;
  --primary-deep: #0d42dc;
  --primary-soft: rgba(29, 99, 255, 0.14);
  --line: rgba(13, 66, 220, 0.12);
  --success: #0ea863;
  --danger: #e14343;
  --shadow: 0 20px 70px rgba(29, 99, 255, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(88,160,255,0.28), transparent 28%), linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { padding-bottom: 80px; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-shell { position: relative; overflow: hidden; }
.ambient { position: fixed; inset: auto; border-radius: 999px; filter: blur(80px); opacity: .45; pointer-events: none; z-index: 0; }
.ambient-one { width: 340px; height: 340px; top: -90px; left: -70px; background: rgba(41, 123, 255, 0.28); }
.ambient-two { width: 420px; height: 420px; right: -120px; top: 18%; background: rgba(112, 215, 255, 0.22); }
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
}
.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin: 16px auto 0;
  width: min(calc(100% - 24px), 1240px);
  border-radius: 999px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand strong { display: block; font-size: 1rem; }
.eyebrow { display: inline-block; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; }
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a { color: var(--muted); font-weight: 700; }
.main-nav a:hover { color: var(--primary); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; }
.hero-section { position: relative; padding: 120px 0 40px; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .97; letter-spacing: -0.04em; margin: 14px 0 18px; }
.hero-copy h1 span { color: var(--primary); text-shadow: 0 0 18px rgba(29, 99, 255, 0.16); }
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px;
  border-radius: 999px; background: rgba(255,255,255,0.82); color: var(--primary-deep);
  font-weight: 800; box-shadow: var(--shadow);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn, .btn-dark, .btn-muted {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 800; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover, .btn-dark:hover, .btn-muted:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #43b4ff); color: #fff; box-shadow: 0 18px 40px rgba(29,99,255,.28); }
.btn-ghost { background: rgba(255,255,255,.84); border: 1px solid rgba(29,99,255,.12); color: var(--text); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat-card { padding: 20px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.stat-card strong { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.stat-card span { color: var(--muted); font-weight: 700; }
.glow { box-shadow: 0 20px 60px rgba(29,99,255,.14), 0 0 0 1px rgba(29,99,255,.08); }
.hero-visual { position: relative; min-height: 470px; }
.hero-card {
  position: absolute; width: 72%; padding: 28px; border-radius: 28px; background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow); backdrop-filter: blur(20px);
}
.hero-card h3 { margin: 10px 0; font-size: 1.5rem; }
.card-one { top: 10%; left: 0; }
.card-two { bottom: 6%; right: 0; }
.mini-tag, .catalog-badge, .step-chip, .footer-badge {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: rgba(29,99,255,.1); color: var(--primary-deep);
}
.hero-orbit {
  position: absolute; inset: 12% 8%; border-radius: 40px; border: 1px dashed rgba(29,99,255,.2);
  animation: spin 18s linear infinite;
}
.section { padding: 44px 0; position: relative; z-index: 1; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -0.03em; }
.section-heading p { color: var(--muted); max-width: 520px; }
.section-heading.narrow { justify-content: flex-start; }
.catalog-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-card, .feature-card, .process-card, .buy-card, .checkout-form-card, .checkout-summary, .payment-panel, .success-card {
  background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; box-shadow: var(--shadow);
}
.catalog-card { padding: 24px; position: relative; overflow: hidden; }
.catalog-card::before {
  content: ''; position: absolute; inset: -30% auto auto -20%; width: 180px; height: 180px; background: color-mix(in oklab, var(--accent), white 78%);
  border-radius: 999px; filter: blur(10px); opacity: .72;
}
.catalog-card > * { position: relative; }
.catalog-top, .catalog-meta, .summary-box, .buy-details { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-card h3 { margin: 18px 0 10px; font-size: 1.45rem; }
.catalog-card p, .feature-card p, .process-card p, .buy-card p, .checkout-summary p, .note, .subtle { color: var(--muted); }
.catalog-stock, .status-badge, .table-status { font-weight: 800; padding: 8px 12px; border-radius: 999px; font-size: .8rem; }
.in-stock, .status-paid { background: rgba(14,168,99,.12); color: var(--success); }
.out-stock, .status-failed, .status-cancelled { background: rgba(225,67,67,.12); color: var(--danger); }
.status-pending, .status-expired { background: rgba(29,99,255,.10); color: var(--primary-deep); }
.catalog-meta div, .summary-box div, .buy-details div { flex: 1 1 140px; padding: 14px 16px; background: rgba(247,250,255,.9); border-radius: 18px; border: 1px solid rgba(29,99,255,.08); }
.catalog-meta span, .summary-box span, .buy-details span { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 6px; }
.catalog-meta strong, .summary-box strong, .buy-details strong { font-size: 1rem; }
.alt-section { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.45)); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-card, .feature-card { padding: 24px; }
.step-chip { margin-bottom: 18px; }
.feature-card.glass, .empty-state.glass { border: 1px solid rgba(255,255,255,.95); }
.buy-grid, .checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.buy-card, .checkout-form-card, .checkout-summary, .payment-panel, .success-card { padding: 28px; }
.stack-form { display: grid; gap: 16px; }
.stack-form label span { display: block; font-weight: 800; margin-bottom: 8px; }
.stack-form input, .stack-form textarea, .stack-form select {
  width: 100%; min-height: 54px; border-radius: 16px; border: 1px solid rgba(29,99,255,.12);
  background: #fff; padding: 14px 16px; font: inherit; color: var(--text); outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.stack-form textarea { min-height: 160px; resize: vertical; }
.top-gap { margin-top: 20px; }
.qr-shell { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; }
#qrcode { min-height: 240px; display: grid; place-items: center; border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: 10px; }
.qr-meta { display: grid; gap: 12px; }
.qr-meta div { padding: 16px; border-radius: 18px; background: #f7fbff; border: 1px solid rgba(29,99,255,.08); }
.qr-meta span { display: block; color: var(--muted); margin-bottom: 8px; }
.success-wrap { display: grid; place-items: center; min-height: 60vh; }
.success-card { max-width: 760px; text-align: center; }
.success-icon {
  display: inline-grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--success), #38d39f); color: #fff; font-size: 2.4rem; font-weight: 900;
  box-shadow: 0 20px 50px rgba(14,168,99,.26);
}
.flash {
  margin-top: 18px; padding: 16px 18px; border-radius: 18px; font-weight: 800;
}
.flash-error { background: rgba(225,67,67,.12); color: var(--danger); }
.flash-success { background: rgba(14,168,99,.12); color: var(--success); }
.empty-state { padding: 26px; border-radius: 24px; text-align: center; grid-column: 1 / -1; }
.empty-state.small { padding: 18px; }
.note, .subtle { font-size: .95rem; }
.site-footer { padding: 10px 0 34px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding: 28px; border-radius: 30px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.footer-grid h3, .footer-grid h4 { margin-top: 0; }
.footer-grid p, .footer-grid a { color: var(--muted); display: block; margin: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); padding: 18px 8px 0; font-weight: 700; }
.reveal-on-scroll { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .7s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0) scale(1); }
.floating-card { animation: float 6s ease-in-out infinite; }
.delay-1 { animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 1024px) {
  .hero-grid, .buy-grid, .checkout-layout, .footer-grid, .section-heading, .qr-shell { grid-template-columns: 1fr; }
  .catalog-grid, .feature-grid, .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-visual { min-height: 380px; }
}
@media (max-width: 780px) {
  .site-header { top: 10px; border-radius: 24px; }
  .header-inner { padding: 14px; }
  .main-nav {
    position: absolute; left: 14px; right: 14px; top: calc(100% + 10px); display: none; flex-direction: column;
    background: rgba(255,255,255,.95); border-radius: 24px; padding: 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero-section { padding-top: 90px; }
  .hero-stats, .catalog-grid, .feature-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-card { position: relative; width: 100%; top: auto; left: auto; right: auto; bottom: auto; margin-bottom: 16px; }
  .hero-orbit { display: none; }
  .catalog-top, .catalog-meta, .summary-box, .buy-details, .footer-bottom, .hero-actions { flex-direction: column; align-items: flex-start; }
}
