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

:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --panel: rgba(15, 23, 42, 0.97);
  --border-subtle: rgba(148, 163, 184, 0.4);
  --border-strong: rgba(51, 65, 85, 0.9);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --success: #22c55e;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(34, 197, 94, 0.12), transparent 55%),
    var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9) 60%, transparent 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #38bdf8, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

.nav-cta {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-main);
  text-decoration: none;
  background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.2), transparent 55%);
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.nav-cta:hover {
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }
}

main#main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

/* Hero */

.hero {
  margin-top: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2rem, 3.1vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.8rem;
}

.hero-stats dt {
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

.hero-stats dd {
  font-weight: 500;
}

@media (max-width: 700px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Buttons & badges */

.btn {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn.full-width {
  width: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.4);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(34, 197, 94, 0.15), rgba(56, 189, 248, 0.12));
  color: var(--text-main);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.badge.image-badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  margin-bottom: 0;
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.8);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

/* Store section */

.store-section {
  margin-bottom: 2.2rem;
}

.store-section-header {
  max-width: 640px;
  margin-bottom: 0.9rem;
}

.store-section-header h2 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.store-section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Info sections */

.info-section {
  margin-top: 2.2rem;
}

.info-section.alt {
  margin-top: 1.5rem;
}

.info-inner {
  border-radius: 1rem;
  padding: 1.25rem 1.3rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.05), transparent 55%),
              rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
}

.info-section.alt .info-inner {
  background:
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.07), transparent 60%),
    rgba(15, 23, 42, 0.96);
}

.info-inner h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.info-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.info-inner ul {
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-inner li {
  margin-bottom: 0.2rem;
}

.info-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Contact */

.contact-section {
  margin-top: 2.4rem;
}

.contact-inner {
  border-radius: 1.2rem;
  padding: 1.6rem 1.4rem 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 60%),
    rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.95);
}

.contact-inner h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.contact-inner > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: flex-start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.9rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.contact-card ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card li {
  margin-bottom: 0.2rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.9rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(37, 99, 235, 0.65);
  display: grid;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  border-radius: 0.55rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.45rem 0.6rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* Store (React demo) */

.store {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .store {
    grid-template-columns: 1fr;
  }
}

.store-main {
  background: var(--panel);
  border-radius: 1rem;
  padding: 0.9rem 0.9rem 0.85rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.store-header h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.store-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.chip.active {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 1);
  color: var(--text-main);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  border-radius: 0.85rem;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.98);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  max-height: 150px;
}

.product-image-wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  filter: saturate(1.1);
  transition: transform 0.18s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.03);
}

.product-body {
  padding: 0.55rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-name {
  font-size: 0.87rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.product-footer {
  margin-top: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
}

/* Cart */

.store-cart {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.98);
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.6);
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.store-cart-header h2 {
  font-size: 0.95rem;
}

.cart-count {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.cart-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.cart-item {
  border-radius: 0.7rem;
  border: 1px solid var(--border-strong);
  padding: 0.45rem 0.5rem;
  background: rgba(15, 23, 42, 0.98);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-item-thumb {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-size: 0.8rem;
}

.cart-item-line {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.qty-controls button {
  border: none;
  background: transparent;
  color: var(--text-main);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.qty-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.qty-controls span {
  font-size: 0.8rem;
  min-width: 1rem;
  text-align: center;
}

.cart-footer {
  border-top: 1px dashed rgba(55, 65, 81, 0.9);
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-note {
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  padding: 0.9rem 1.2rem 1.4rem;
  font-size: 0.76rem;
  color: var(--text-soft);
  text-align: center;
}
