:root {
  --bg-deep: #03050a;
  --bg-primary: #050810;
  --bg-secondary: #0b1020;
  --text-primary: #e8f6ff;
  --text-secondary: #9db3c9;
  --accent: #00f5d4;
  --accent-2: #7b5cff;
  --accent-hot: #ff3d8a;
  --accent-glow: rgba(0, 245, 212, 0.45);
  --card-bg: rgba(12, 18, 36, 0.55);
  --glass-border: rgba(120, 200, 255, 0.12);
  --nav-bg: rgba(5, 8, 16, 0.82);
  --grid-line: rgba(0, 245, 212, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --display: "Orbitron", system-ui, sans-serif;
  --sans: "Exo 2", "Inter", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg-deep: #f3f6fb;
  --bg-primary: #eef2f8;
  --bg-secondary: #ffffff;
  --text-primary: #0c1222;
  --text-secondary: #3d4a5f;
  --accent: #0066ff;
  --accent-2: #7b5cff;
  --accent-hot: #d4006e;
  --accent-glow: rgba(0, 102, 255, 0.35);
  --card-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 40, 120, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --grid-line: rgba(0, 60, 180, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.45s ease, color 0.45s ease;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 245, 212, 0.12);
}

button,
a.ai-tool-link,
.wa-btn,
.swiper-button-next,
.swiper-button-prev {
  touch-action: manipulation;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: 0.04em;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(0, 245, 212, 0.08);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.neon-text {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow), 0 0 28px rgba(123, 92, 255, 0.35);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% -10%, #000 45%, transparent 75%);
  opacity: 0.85;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  padding: 0 clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 1200;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-qr-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 900;
}

.nav-qr {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid var(--glass-border);
}

.nav-qr:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 20px var(--accent-glow);
}

.crypto-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-left: auto;
}

.cw-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.cw-item i {
  opacity: 0.9;
}

.cw-price {
  color: var(--accent);
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

#theme-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.news-ticker {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 38px;
  z-index: 1100;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  animation: tickerBg 12s linear infinite;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

@keyframes tickerBg {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

[data-theme="light"] .news-ticker {
  color: #fff;
}

.news-ticker,
.ticker-item {
  color: #050810;
  font-weight: 700;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: scrollTicker 42s linear infinite;
  padding-left: 100%;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 64px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.ticker-item i {
  margin-right: 10px;
  color: inherit;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 10;
}

.hero {
  margin-top: 110px;
  position: relative;
  z-index: 10;
  padding-bottom: 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
  min-height: min(78vh, 760px);
}

.hero-swiper {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 245, 212, 0.12);
}

.hero-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.25rem, 4vw, 3rem);
  position: relative;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(3, 6, 14, 0.92) 0%,
    rgba(3, 6, 14, 0.55) 42%,
    rgba(20, 0, 40, 0.35) 100%
  );
  z-index: 0;
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.9s ease-out both;
}

.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.slide-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.slide-content h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
  line-height: 1.15;
}

.slide-content p {
  font-size: 1.02rem;
  color: #d5e6f5;
  max-width: 46ch;
}

.tilt-glow {
  position: relative;
  overflow: hidden;
}

.tilt-glow::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(0, 245, 212, 0.12), transparent 55%);
  animation: spinGlow 14s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 14px var(--accent-glow);
}

.hero-next,
.hero-prev {
  color: var(--accent);
}

.floating-panel {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 12px rgba(255, 61, 138, 0.8);
  animation: pulseDot 2s ease-in-out infinite;
}

.panel-title {
  color: var(--text-primary);
  font-weight: 700;
}

.panel-date {
  margin-left: auto;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.tiktok-shell {
  flex: 1;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: auto;
}

.ai-tools-strip {
  max-width: 1240px;
  margin: 0 auto 2.5rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  position: relative;
  z-index: 10;
}

.ai-tools-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ai-tools-label i {
  color: var(--accent);
}

.ai-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

.ai-tool-link {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

[data-theme="light"] .ai-tool-link {
  background: rgba(255, 255, 255, 0.5);
}

.ai-tool-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.ai-tool-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section-block {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-glow {
  position: relative;
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: 10% -5% auto -5%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(123, 92, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title.small {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
}

.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.chroma-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease, box-shadow 0.45s ease;
  box-shadow:
    0 0 0 1px rgba(0, 245, 212, 0.35),
    0 0 32px rgba(123, 92, 255, 0.22);
}

.card:hover.chroma-ring::after,
.card:focus-within.chroma-ring::after {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.card.interactive:hover img,
.card.premium:hover img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.short-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.price-tag {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 1.1rem !important;
  font-family: var(--display);
  margin-bottom: 0.65rem;
}

.premium-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(120deg, #ffd54a, #ff8a00);
  color: #1a0a00;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.value-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 245, 212, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.badge {
  display: inline-block;
}

.expanded-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, margin-top 0.35s ease;
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.expanded-details hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0.5rem 0 0.85rem;
}

.spec-list {
  padding-left: 1.1rem;
  margin: 0.25rem 0 0.5rem;
}

.card:hover .expanded-details,
.card:focus-within .expanded-details,
.card:active .expanded-details {
  max-height: 1200px;
  opacity: 1;
  margin-top: 14px;
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.radar-item {
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  transition: transform 0.3s ease;
}

.radar-item:hover {
  transform: translateY(-4px);
}

.radar-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.radar-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.radar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.radar-list li::before {
  content: "› ";
  color: var(--accent-hot);
}

.protip-section {
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.protip-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.protip-title {
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.3;
  margin: 0 0 0.65rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0.02em;
}

.protip-body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.wa-btn {
  position: fixed;
  bottom: max(28px, calc(12px + env(safe-area-inset-bottom, 0px)));
  right: max(28px, calc(12px + env(safe-area-inset-right, 0px)));
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  text-decoration: none;
  z-index: 1300;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease;
}

.wa-btn.glow {
  animation: pulse-wa 2.2s infinite;
}

.wa-btn:hover {
  transform: scale(1.08);
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--text-primary);
}

.wa-btn:hover .wa-tooltip,
.wa-btn:focus .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--nav-bg);
  border-top: 1px solid var(--glass-border);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 10;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

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

  .floating-panel {
    min-height: 380px;
  }

  .tiktok-shell {
    min-height: 360px;
  }
}

@media (max-width: 900px) {
  .crypto-widget {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .navbar-actions {
    margin-left: auto;
  }

  .navbar {
    row-gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-content,
  .news-ticker,
  .tilt-glow::before,
  .scanlines,
  .wa-btn.glow {
    animation: none !important;
  }

  .hero-slide::after {
    background: rgba(3, 6, 14, 0.75);
  }

  html {
    scroll-behavior: auto;
  }
}
