/* ===== Variables & Reset ===== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --accent: #00bcd4;
  --accent-glow: rgba(0, 188, 212, 0.25);
  --accent-secondary: #26c6da;
  --border: #2a2a2a;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 480px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Background Glow ===== */
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.container--wide {
  max-width: 1100px;
}

/* ===== Landing Page ===== */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 0 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ===== Hero Overlay ===== */
.hero-overlay {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-overlay__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center 60%, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.35) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.4) 40%, rgba(5, 5, 5, 0.95) 100%);
}

.hero-overlay__content {
  position: relative;
  z-index: 2;
  padding: 32px 24px 28px;
  max-width: 500px;
}

.logo-wrapper {
  margin-bottom: 10px;
  animation: fadeInDown 0.8s ease-out both;
}

.logo-wrapper img {
  width: 520px;
  margin: 0 auto;
  filter: invert(1) hue-rotate(180deg)
    drop-shadow(0 0 8px rgba(0, 188, 212, 0.7))
    drop-shadow(0 0 25px rgba(0, 188, 212, 0.5))
    drop-shadow(0 0 60px rgba(0, 188, 212, 0.3))
    drop-shadow(0 0 100px rgba(0, 188, 212, 0.15));
  transition: var(--transition);
}

.hero-overlay__partner {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-overlay__desc {
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.7;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* (expo-badge removed) */

/* ===== Link Buttons ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: var(--transition);
}

.link-btn:hover,
.link-btn:active {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.link-btn:hover::before,
.link-btn:active::before {
  opacity: 1;
}

.link-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.link-btn span {
  position: relative;
  z-index: 1;
}

.link-btn .arrow {
  margin-left: auto;
  color: var(--text-muted);
  transition: var(--transition);
}

.link-btn:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.link-btn--accent {
  background: linear-gradient(135deg, var(--accent), #0097a7);
  border-color: transparent;
  color: var(--bg-primary);
}

.link-btn--accent::before {
  display: none;
}

.link-btn--accent:hover {
  box-shadow: 0 8px 30px var(--accent-glow);
  border-color: transparent;
}

.link-btn--accent .arrow {
  color: rgba(0, 0, 0, 0.4);
}

.link-btn--accent:hover .arrow {
  color: rgba(0, 0, 0, 0.7);
}

/* ===== Social Icons ===== */
.socials {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.social-icon:hover svg {
  fill: var(--bg-primary);
}

/* ===== Footer ===== */
.footer {
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* ===== Search Bar ===== */
.search-bar {
  position: relative;
  max-width: 520px;
  margin: 0 auto 12px;
}

.search-bar input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(0, 188, 212, 0.03);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  display: none;
  line-height: 1;
  transition: var(--transition);
}

.search-clear:hover {
  color: var(--text-primary);
}

.search-clear.visible {
  display: block;
}

.search-results-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  min-height: 1.2em;
}

.product-card.search-hidden {
  display: none !important;
}

.category-section.search-hidden {
  display: none !important;
}

/* ===== Catalog Page ===== */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin: 0 -20px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.catalog-header img {
  height: 38px;
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
  transition: var(--transition);
}

.catalog-header img:hover {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 18px rgba(0, 188, 212, 0.6));
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--accent);
  background: rgba(0, 188, 212, 0.1);
  border-color: var(--accent);
  transform: translateX(-2px);
}

.back-btn svg {
  width: 14px;
  height: 14px;
  transition: var(--transition);
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

.catalog-hero {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 8px;
}

.catalog-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.catalog-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Category Tabs ===== */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  margin-bottom: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.cat-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* ===== Category Sections ===== */
.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text-primary);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  cursor: default;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.product-card .product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: #151515;
  padding: 10px;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.product-card .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-left: 8px;
  vertical-align: middle;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.spec-value--highlight {
  color: var(--accent);
}

/* ===== Catalog Footer ===== */
.catalog-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.catalog-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.catalog-footer .social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero h1 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .landing {
    padding: 0 0 60px;
  }

  .logo-wrapper img {
    width: 380px;
  }

  .hero-overlay {
    min-height: 340px;
  }
}
