/*
Theme Name: SXKR
Theme URI: https://sxkr.app
Author: SXKR
Description: Landing/coming-soon theme for SXKR — the connections and community app. Ported from the Claude Design handoff.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sxkr
*/

@font-face {
  font-family: 'Butler Stencil';
  src: url('assets/fonts/Butler_Black_Stencil.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Butler Stencil';
  src: url('assets/fonts/Butler_Bold_Stencil.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #ECEBE9;
  --bg2: #e2e1de;
  --fg: #0C1618;
  --fg-muted: rgba(12,22,24,0.45);
  --amber: #CB904D;
  --amber-dim: #a97238;
  --amber-glow: rgba(203,144,77,0.18);
  --teal: #51A3A3;
  --teal-glow: rgba(81,163,163,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── CANVAS BACKGROUND ─── */
#hero-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.wl {
  display: inline-block;
  animation: letterColors 3.6s cubic-bezier(0.4,0,0.2,1) infinite;
  animation-delay: var(--d);
  color: var(--fg);
}

@keyframes letterColors {
  0%   { color: #0C1618; }
  20%  { color: #0C1618; }
  33%  { color: #51A3A3; }
  53%  { color: #51A3A3; }
  66%  { color: #CB904D; }
  86%  { color: #CB904D; }
  100% { color: #0C1618; }
}

/* ─── CUSTOM CURSOR ─── */
* { cursor: none !important; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #CB904D;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(203,144,77,0.5);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1),
              height 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s,
              opacity 0.3s;
}

body:has(a:hover) #cursor-dot,
body:has(button:hover) #cursor-dot,
body:has(.play-icon:hover) #cursor-dot {
  width: 10px; height: 10px;
  background: #51A3A3;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring,
body:has(.play-icon:hover) #cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(81,163,163,0.5);
}

.wordmark {
  font-family: 'Butler Stencil', serif;
  font-weight: 900;
  font-size: clamp(72px, 16vw, 200px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
  text-wrap: nowrap;
}

.pronunciation {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  margin-top: 12px;
  margin-bottom: -8px;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.tagline-wrapper {
  margin-top: 28px;
  height: 2.2em;
  overflow: hidden;
  position: relative;
}

.tagline-word {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  width: 100%;
  left: 0;
}
.tagline-word.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  margin-top: 48px;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  max-width: 400px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}
.scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── SECTIONS ─── */
section {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 40px;
}

/* ─── COUNTDOWN ─── */
#countdown {
  background: var(--bg2);
  border-top: 1px solid rgba(12,22,24,0.08);
  border-bottom: 1px solid rgba(12,22,24,0.08);
}

.countdown-heading {
  font-family: 'Butler Stencil', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 64px;
  line-height: 1.2;
  color: var(--fg);
}

.coming-soon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.coming-soon-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.coming-soon-text {
  font-family: 'Butler Stencil', serif;
  font-weight: 900;
  font-size: clamp(52px, 10vw, 130px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  position: relative;
}

.coming-soon-text .tba-amber {
  color: var(--amber);
  font-style: italic;
}

.coming-soon-sub {
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  max-width: 320px;
  line-height: 1.7;
}

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

/* ─── SIGNUP ─── */
#signup {
  gap: 0;
}

.signup-heading {
  font-family: 'Butler Stencil', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 540px;
}

.signup-sub {
  color: var(--fg-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.signup-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(12,22,24,0.15);
  border-radius: 100px;
  overflow: hidden;
  background: rgba(12,22,24,0.04);
  transition: border-color 0.3s;
}
.signup-form:focus-within {
  border-color: var(--amber);
}

.signup-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--fg);
  font-weight: 300;
}
.signup-form input::placeholder {
  color: var(--fg-muted);
}

.signup-btn {
  background: var(--amber);
  border: none;
  color: #ECEBE9;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  margin: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.signup-btn:hover { opacity: 0.85; }

.signup-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.signup-success {
  display: none;
  color: var(--amber);
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

/* ─── VIDEO ─── */
#video-section {
  background: var(--bg2);
  border-top: 1px solid rgba(12,22,24,0.08);
}

.video-heading {
  font-family: 'Butler Stencil', serif;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 44px);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.2;
}

.video-container {
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12,22,24,0.1);
  position: relative;
  background: #d8d7d4;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--fg-muted);
}

.video-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber-glow);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.play-icon:hover {
  background: var(--amber);
  transform: scale(1.08);
}
.play-icon:hover svg path { fill: #ECEBE9; }
.play-icon svg { margin-left: 4px; }
.play-icon svg path { fill: var(--amber); transition: fill 0.2s; }

.video-placeholder p {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(12,22,24,0.08);
}

.footer-wordmark {
  font-family: 'Butler Stencil', serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--fg);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 12px;
}

footer p {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── MAILERLITE OVERRIDES ─── */
.ml-embed-wrap {
  width: 100%;
  max-width: 560px;
}
.sxkr-ml-embed.ml-form-embedContainer {
  display: block !important;
  width: 100% !important;
}
.sxkr-ml-embed .ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}
.sxkr-ml-embed .ml-form-embedBody {
  padding: 0 !important;
}
.sxkr-ml-embed .ml-form-embedContent { display: none !important; }
.sxkr-ml-embed .ml-form-formContent.horozintalForm {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.sxkr-ml-embed .ml-form-horizontalRow {
  display: flex !important;
  gap: 0 !important;
  align-items: stretch !important;
  border: 1px solid rgba(12,22,24,0.15) !important;
  border-radius: 100px !important;
  overflow: hidden !important;
  background: rgba(12,22,24,0.04) !important;
  transition: border-color 0.3s !important;
  width: 100% !important;
  height: auto !important;
  float: none !important;
}
.sxkr-ml-embed .ml-form-horizontalRow:focus-within {
  border-color: #CB904D !important;
}
.sxkr-ml-embed .ml-input-horizontal {
  flex: 1 !important;
  width: auto !important;
  float: none !important;
}
.sxkr-ml-embed .horizontal-fields {
  width: 100% !important;
  padding: 0 !important;
}
.sxkr-ml-embed .ml-field-group input[type="email"] {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 24px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  color: var(--fg) !important;
  outline: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  height: 100% !important;
  line-height: normal !important;
}
.sxkr-ml-embed .ml-field-group input[type="email"]::placeholder {
  color: rgba(12,22,24,0.4) !important;
}
.sxkr-ml-embed .ml-button-horizontal {
  flex-shrink: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 4px !important;
}
.sxkr-ml-embed .ml-button-horizontal button.primary,
.sxkr-ml-embed .ml-mobileButton-horizontal button.primary {
  background: #CB904D !important;
  border: none !important;
  border-radius: 100px !important;
  color: #ECEBE9 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
}
.sxkr-ml-embed .ml-button-horizontal button.primary:hover {
  opacity: 0.85 !important;
  background: #CB904D !important;
}
.sxkr-ml-embed .ml-mobileButton-horizontal {
  display: none !important;
  margin: 12px 0 0 0 !important;
  width: 100% !important;
}
.sxkr-ml-embed .ml-form-successBody {
  padding: 0 !important;
}
.sxkr-ml-embed .ml-form-successContent {
  margin: 0 !important;
  text-align: center !important;
}
.sxkr-ml-embed .ml-success-msg {
  color: #CB904D !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  margin: 0 !important;
}
.sxkr-ml-embed .ml-form-embedSubmitLoad {
  display: inline-block;
  width: 18px;
  height: 18px;
}
.sxkr-ml-embed .ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid rgba(236,235,233,0.5);
  border-top-color: #ECEBE9;
  animation: ml-spin 0.8s linear infinite;
}
@keyframes ml-spin { to { transform: rotate(360deg); } }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
@media (max-width: 600px) {
  .sxkr-ml-embed .ml-form-horizontalRow {
    flex-direction: column !important;
    border-radius: 16px !important;
    gap: 0 !important;
  }
  .sxkr-ml-embed .ml-button-horizontal { display: none !important; }
  .sxkr-ml-embed .ml-mobileButton-horizontal { display: block !important; }
  .sxkr-ml-embed .ml-mobileButton-horizontal button.primary {
    border-radius: 12px !important;
    width: 100% !important;
    padding: 16px !important;
  }
}

/* ─── BETA COUNTER ─── */
.beta-counter {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.counter-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
}

.counter-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
}

.counter-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.counter-num {
  font-family: 'Butler Stencil', serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--fg);
}

.counter-stat.is-goal .counter-num { color: var(--fg-muted); }

.counter-stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.counter-divider {
  font-family: 'Butler Stencil', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--fg-muted);
  opacity: 0.4;
  align-self: center;
  padding-bottom: 22px;
}

.counter-bar-track {
  width: 100%;
  max-width: 320px;
  height: 4px;
  border-radius: 100px;
  background: rgba(12,22,24,0.1);
  overflow: hidden;
}

.counter-days {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  section { padding: 80px 20px; }
  .countdown-divider { display: none; }
  .signup-form { flex-direction: column; border-radius: 16px; }
  .signup-btn { border-radius: 12px; margin: 0; padding: 16px; }
  .signup-form input { padding: 16px 20px; }
}
