:root {
  --bg: #050810;
  --surface: #0a101c;
  --surface-2: #111a2b;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #8b9cb3;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.glass {
  background: rgba(12, 19, 34, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gradient-text {
  background: linear-gradient(135deg, #5eead4 0%, #38bdf8 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1, h2, h3, .font-display {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  color: #041018;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.06);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.glow-cyan { box-shadow: 0 0 32px rgba(56, 189, 248, 0.12); }
.glow-emerald { box-shadow: 0 0 32px rgba(52, 211, 153, 0.12); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
#mobile-menu.open { max-height: 420px; }

.stat-number { font-variant-numeric: tabular-nums; }
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.chip-active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.flash-scroll { scroll-snap-type: x mandatory; }
.flash-scroll > * { scroll-snap-align: start; }

#site-logo-img {
  object-fit: contain;
  background: #fff;
}

.product-card {
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.95), rgba(12, 19, 34, 0.98));
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pay-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 2px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pay-option:hover:not(.pay-option-disabled) {
  border-color: rgba(52, 211, 153, 0.45);
}
.pay-option-selected {
  border-color: rgba(52, 211, 153, 0.75) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}
.pay-option-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-option-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: transparent;
}
.pay-option-selected .pay-option-check {
  border-color: #34d399;
  background: #34d399;
  color: #041018;
}
.pay-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-modal {
  padding: 0;
}
@media (min-width: 640px) {
  .checkout-modal {
    padding: 1rem;
  }
}
.checkout-panel {
  animation: checkout-slide-up 0.28s ease-out;
}
@media (min-width: 640px) {
  .checkout-panel {
    animation: checkout-fade-in 0.22s ease-out;
  }
}
@keyframes checkout-slide-up {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes checkout-fade-in {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.checkout-body {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.checkout-input {
  min-height: 2.75rem;
}
.checkout-footer {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (max-width: 1023px) { body { padding-bottom: 4.5rem; } }

/* Forms — always readable */
input, textarea, select {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-size: 1rem;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  opacity: 1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #152033 inset !important;
  caret-color: #f8fafc;
}
