/**
 * PaletteTap — brand tokens (Deep Darkroom + Cyber Rose / Electric Indigo / Neon Cyan)
 */

:root {
  /* Brand */
  --color-cyber-rose: #ff2a5f;
  --color-indigo: #6938ff;
  --color-neon-cyan: #00ffd1;
  --bg-darkroom: #0a0910;

  /* Surfaces */
  --bg-void: #000000;
  --bg-deep: var(--bg-darkroom);
  --bg-surface: #12101c;
  --bg-elevated: #1a1726;
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.38);
  --text-mono: #e8eefc;

  /* Neon glows */
  --glow-rose: rgba(255, 42, 95, 0.45);
  --glow-indigo: rgba(105, 56, 255, 0.4);
  --glow-cyan: rgba(0, 255, 209, 0.35);

  /* Functional */
  --radius-squircle: 1.25rem;
  --radius-pill: 624.9375rem;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-soft: 0 28px 90px rgba(0, 0, 0, 0.55);
  --max-width: 72rem;
  --header-h: 4rem;
}

@keyframes blob-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(14%, 12%) scale(1.12);
  }
}

@keyframes blob-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05);
  }
  50% {
    transform: translate(-18%, 6%) scale(1);
  }
}

@keyframes blob-c {
  0%,
  100% {
    transform: translate(-6%, 0) scale(1);
  }
  50% {
    transform: translate(8%, -14%) scale(1.1);
  }
}

@keyframes gradient-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    box-shadow:
      0 0 20px var(--glow-rose),
      0 0 40px rgba(105, 56, 255, 0.25);
  }
  50% {
    box-shadow:
      0 0 28px var(--glow-cyan),
      0 0 52px var(--glow-rose);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

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

@keyframes terminal-glow {
  0%,
  100% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 1px rgba(0, 255, 209, 0.12),
      0 0 48px rgba(105, 56, 255, 0.12);
  }
  50% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 1px rgba(255, 42, 95, 0.22),
      0 0 64px rgba(0, 255, 209, 0.1);
  }
}

@keyframes swatch-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes icon-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(0, 255, 209, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 42, 95, 0.45));
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--bg-deep) 0%,
    var(--bg-void) 45%,
    var(--bg-deep) 100%
  );
}

.bg-blob {
  position: absolute;
  width: min(92vw, 560px);
  height: min(92vw, 560px);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.52;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-blob--1 {
  top: -18%;
  left: -12%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(105, 56, 255, 0.95) 0%,
    transparent 68%
  );
  animation: blob-a 18s ease-in-out infinite;
}

.bg-blob--2 {
  top: -8%;
  right: -14%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 42, 95, 0.85) 0%,
    transparent 65%
  );
  animation: blob-b 22s ease-in-out infinite;
}

.bg-blob--3 {
  bottom: -22%;
  left: 20%;
  background: radial-gradient(
    circle at 45% 45%,
    rgba(0, 255, 209, 0.65) 0%,
    transparent 62%
  );
  animation: blob-c 20s ease-in-out infinite;
}

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

a:hover {
  color: var(--color-neon-cyan);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 9, 16, 0.82);
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-cyber-rose),
    var(--color-neon-cyan),
    var(--color-indigo),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0.85;
  animation: header-shimmer 7s linear infinite;
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--bg-darkroom);
  box-shadow:
    0 0 20px var(--glow-rose),
    0 0 40px rgba(105, 56, 255, 0.25);
  animation: logo-pulse 3.8s ease-in-out infinite;
}

.brand-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logo-float 5s ease-in-out infinite;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-toggle {
  display: flex;
  padding: 0.125rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.lang-toggle button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--text-primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px rgba(0, 255, 209, 0.12);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.hero-product {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-neon-cyan);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-eyebrow span.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-cyber-rose);
  box-shadow: 0 0 14px var(--glow-rose);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(
    105deg,
    var(--color-cyber-rose) 0%,
    #ff7aa8 22%,
    var(--color-indigo) 52%,
    var(--color-neon-cyan) 82%,
    var(--color-cyber-rose) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 42, 95, 0.25));
  animation: gradient-flow 9s ease-in-out infinite;
}

.hero-subs {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-subs p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero-subs .hero-subs-em {
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-lead {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.375rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-squircle);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):active {
  transform: scale(0.98);
}

.btn-primary {
  color: #07050a;
  background: linear-gradient(
    135deg,
    var(--color-cyber-rose) 0%,
    var(--color-indigo) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 42px var(--glow-rose),
    0 8px 28px var(--glow-indigo);
}

.btn-primary:not(:disabled):hover {
  box-shadow:
    0 0 0 1px rgba(0, 255, 209, 0.25),
    0 18px 52px var(--glow-rose),
    0 10px 36px var(--glow-cyan);
}

.btn-ghost {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: rgba(0, 255, 209, 0.28);
  box-shadow: 0 0 24px rgba(0, 255, 209, 0.08);
  background: var(--bg-elevated);
}

/* Terminal / code snippet */
.terminal-block {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  text-align: left;
  border-radius: calc(var(--radius-squircle) + 0.15rem);
  background: rgba(8, 6, 14, 0.92);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  animation: terminal-glow 5s ease-in-out infinite;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}
.terminal-bar span:nth-child(2) {
  background: #febc2e;
}
.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-body {
  margin: 0;
  padding: 1rem 1.125rem 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-mono);
  overflow-x: auto;
}

.terminal-body .kw {
  color: var(--color-indigo);
}
.terminal-body .prop {
  color: var(--color-neon-cyan);
}
.terminal-body .val {
  color: var(--color-cyber-rose);
}

/* Demo swatch strip — brand triad + neutrals */
.demo-strip-wrap {
  margin: 3.25rem 0 3.5rem;
}

.demo-strip-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  text-align: center;
}

.demo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: 54rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .demo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.swatch-card {
  border-radius: var(--radius-squircle);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.swatch-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 255, 209, 0.2);
  box-shadow:
    var(--shadow-soft),
    0 0 36px rgba(255, 42, 95, 0.12),
    0 0 52px rgba(105, 56, 255, 0.1);
}

.swatch-pop {
  opacity: 0;
}

.demo-strip-wrap.is-visible .swatch-pop {
  animation: swatch-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.swatch-card--glow .swatch-color {
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.35);
}

.swatch-color {
  aspect-ratio: 1.12;
}

.swatch-meta {
  padding: 0.75rem 0.875rem;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-mono);
  letter-spacing: 0.02em;
}

.swatch-name {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

/* Sections */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 1.5rem;
  text-align: center;
}

.store-block {
  max-width: 44rem;
  margin: 0 auto 3rem;
  padding: 2rem 1.75rem;
  border-radius: calc(var(--radius-squircle) + 0.35rem);
  background: linear-gradient(
    165deg,
    rgba(105, 56, 255, 0.07),
    rgba(255, 42, 95, 0.05)
  );
  border: 1px solid var(--border-subtle);
}

.store-block h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.store-block .lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.store-block p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.store-block p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.feature-card {
  padding: 1.35rem 1.4rem;
  border-radius: calc(var(--radius-squircle) + 0.25rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition:
    border-color 0.25s ease,
    box-shadow 0.4s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card:hover {
  border-color: rgba(0, 255, 209, 0.22);
  box-shadow:
    0 0 48px rgba(105, 56, 255, 0.12),
    0 0 72px rgba(255, 42, 95, 0.06);
  transform: translateY(-4px);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-squircle);
  background: linear-gradient(
    145deg,
    rgba(255, 42, 95, 0.1),
    rgba(105, 56, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: icon-pulse 4.5s ease-in-out infinite;
}

.feature-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card:hover .feature-icon svg {
  transform: rotate(-8deg) scale(1.06);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.audience-list {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.audience-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-neon-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
}

.audience-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid .feature-card.reveal {
  transition-delay: calc(var(--i, 0) * 0.09s);
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.03s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.14s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.2s;
}
.hero .reveal:nth-child(5) {
  transition-delay: 0.26s;
}
.hero .reveal:nth-child(6) {
  transition-delay: 0.32s;
}
.hero .reveal:nth-child(7) {
  transition-delay: 0.38s;
}

.btn-primary:not(:disabled) {
  position: relative;
  overflow: hidden;
}

.btn-ghost {
  transition:
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    transform 0.15s ease;
}

/* Legal documents */
.legal-back {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.legal-back:hover {
  color: var(--color-neon-cyan);
}

.legal-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-doc-title {
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-doc h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.legal-doc p {
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.68;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-neon-cyan);
  margin: 0 0 1rem !important;
}

.legal-ref {
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: var(--text-tertiary) !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc a {
  color: var(--color-neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-block a {
  color: var(--color-neon-cyan);
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-blob {
    animation: none;
    opacity: 0.35;
  }

  .hero h1 {
    animation: none;
    background-size: 100% auto;
  }

  .reveal,
  .swatch-pop {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .brand-mark,
  .brand-mark-wrap {
    animation: none;
  }

  .feature-icon {
    animation: none;
  }

  .terminal-block {
    animation: none;
  }

  .site-header {
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(10, 9, 16, 0.88);
  }

  .site-header::after {
    animation: none;
    opacity: 0.45;
  }
}
