/*
 * Carson Tweaks – Shop-Theme
 * Gleiche Sprache wie die App: tiefes Schwarz, Haarlinien, weisse
 * Primaerbuttons, Mint nur als "Live"-Akzent (Hervorhebungen, Icons, Punkte).
 * Alle Farben kommen aus den Theme-Einstellungen, Mint steht hier.
 */

:root,
[data-scheme="dark"] {
  --ct-live: 63, 214, 198;          /* #3FD6C6 wie in der App */
  --ct-hair: rgba(255, 255, 255, 0.07);
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-scheme="light"] {
  --ct-live: 13, 148, 136;          /* dunkleres Mint, lesbar auf Hell */
  --ct-hair: rgba(10, 10, 10, 0.08);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(var(--cl-t-primary));
  color: rgb(var(--cl-background));
}

/* ------------------------------------------------------------ Akzent */
/* Weiss bleibt fuer Buttons, Mint fuer alles, was "lebt". */

.text-accent-500 { color: rgb(var(--ct-live)); }
.bg-accent-500\/10 { background-color: rgba(var(--ct-live), 0.1); }
.sa-section-eyebrow .bg-accent-500 { background-color: rgb(var(--ct-live)); }
.sa-section-eyebrow.text-accent-500 { color: rgb(var(--ct-live)); }

.hl-accent .mk { color: rgb(var(--ct-live)); }
.hl-underline .mk { text-decoration-color: rgb(var(--ct-live)); }
.hl-thick .mk { text-decoration-color: rgba(var(--ct-live), 0.6); }
.hl-side { border-left-color: rgb(var(--ct-live)); }

/* Glows in Mint statt Weiss, ruhiger */
.hero-bg-glow {
  background: radial-gradient(circle, rgba(var(--ct-live), 0.16), transparent 65%);
}
.pfx-glows::before,
.pfx-glows::after {
  background: radial-gradient(circle, rgba(var(--ct-live), 0.09), transparent 65%) !important;
}

/* Eyebrow-Pille: Badge in Mint */
.sa-hero-eyebrow .bg-accent-500 {
  background-color: rgb(var(--ct-live));
  color: #04201d;
}
.sa-section-eyebrow {
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ Hero */

.sa-hero--centered .sa-hero-title {
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.sa-hero-subtitle {
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.65;
}
.sa-hero--centered .sa-hero-title,
.sa-hero--centered .sa-hero-subtitle {
  position: relative;
}

/* Grosses CT-Zeichen hinter dem Hero, sehr leise */
.sa-hero--centered::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(980px, 120vw);
  aspect-ratio: 1266 / 589;
  transform: translate(-50%, -50%);
  background: url("ct-mark.png") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}
.sa-hero > .wrap { z-index: 1; }

.sa-hero .hero-bg-grid {
  background-size: 64px 64px;
  opacity: 0.7;
}

/* ------------------------------------------------------------ Buttons */

.sa-btn {
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    color var(--dur) ease,
    transform 160ms var(--ct-ease);
}
.sa-btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------ Karten */

.sa-features-item,
.sa-stats-item,
.sa-product-card,
.sa-feedback-card {
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.sa-features--icon-grid .sa-features-item:hover {
  border-color: rgba(var(--cl-t-primary), 0.18);
  background-color: rgb(var(--cl-surface-raised));
}
.sa-features-item h3 {
  letter-spacing: -0.01em;
}

/* Stats als ruhige Zahlenleiste */
.sa-stats--inline .sa-stats-item .text-h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Steps: Nummern in Mint, Linie als Haarlinie */
.sa-steps--grid .sa-steps-item .h-px {
  background: var(--ct-hair);
}

/* ------------------------------------------------------------ App-Vorschau */

/* direkt unter dem Hero: kein doppelter Abstand */
.sa-hero + .sa-app-showcase { padding-top: 0; }
.sa-stats--inline { padding-block: min(48px, 10vw); }

.ct-show-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ct-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 22px;
  border: var(--border-w) solid var(--cl-border);
  border-radius: 9999px;
  background: rgb(var(--cl-surface));
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.ct-tabs::-webkit-scrollbar { display: none; }

.ct-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--cl-t-muted));
  white-space: nowrap;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}
.ct-tab i { font-size: 0.8rem; opacity: 0.8; }
.ct-tab:hover { color: rgb(var(--cl-t-primary)); }
.ct-tab.is-on {
  color: rgb(var(--cl-t-primary));
  background: rgba(var(--cl-t-primary), 0.08);
}
.ct-tab.is-on i { color: rgb(var(--ct-live)); opacity: 1; }
.ct-tab:focus-visible {
  outline: 2px solid rgb(var(--cl-t-primary));
  outline-offset: 2px;
}

.ct-frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
}
.ct-frame-glow {
  position: absolute;
  left: 8%;
  right: 8%;
  top: -40px;
  height: 160px;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(var(--ct-live), 0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.ct-frame-inner {
  position: relative;
  display: grid;
  border: var(--border-w) solid rgba(var(--cl-t-primary), 0.12);
  border-radius: calc(var(--radius-card) + 4px);
  background: #050505;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(var(--cl-t-primary), 0.025),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
/* alle Bilder liegen uebereinander, nur das aktive ist sichtbar */
.ct-shot {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 360ms ease, transform 520ms var(--ct-ease);
}
/* vor dem Start von Alpine zeigt das erste Bild, danach steuert der Reiter */
.ct-shot[data-first],
.ct-shot.is-on {
  opacity: 1;
  transform: none;
}
.ct-show-body.is-live .ct-shot:not(.is-on) {
  opacity: 0;
  transform: scale(1.01);
}

.ct-caption {
  margin-top: 18px;
  font-size: 0.875rem;
  color: rgb(var(--cl-t-muted));
  text-align: center;
}

/* ------------------------------------------------------------ Spiele */

.ct-game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 28vw, 170px);
  gap: var(--grid-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .ct-game-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 15vw, 210px);
  }
}
/* erste Kachel doppelt breit: 7 Spiele fuellen genau 2 Reihen a 4 */
.ct-game:first-child { grid-column: span 2; }

.ct-game {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: var(--border-w) solid var(--cl-border);
  background: rgb(var(--cl-surface));
  isolation: isolate;
}

.ct-game-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.9);
  transition: transform 700ms var(--ct-ease), filter 400ms ease;
}
.ct-game:hover .ct-game-img {
  transform: scale(1.07);
  filter: saturate(1.05);
}
.ct-game-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 35%, rgba(5, 5, 5, 0.88) 100%);
  z-index: 1;
}
.ct-game-text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.ct-game-name {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.ct-game:first-child .ct-game-name { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.ct-game-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(63, 214, 198);
}

.ct-games-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.875rem;
  color: rgb(var(--cl-t-muted));
  text-align: center;
}
.ct-games-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: rgb(var(--ct-live));
}

/* ------------------------------------------------------------ Navbar */

.sa-navbar {
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.sa-navbar-logo img {
  max-height: 26px;
  width: auto;
}

/* ------------------------------------------------------------ Bewegung */

@media (prefers-reduced-motion: reduce) {
  .ct-shot,
  .ct-game-img,
  .sa-btn { transition: none !important; }
}

/* breite VALORANT-Kachel: Motiv etwas hoeher ansetzen */
.ct-game:first-child .ct-game-img { object-position: center 35%; }
