/* Nokka Landing Page Styles */

:root {
  --navy: #264653;
  --navy-light: #355968;
  --yellow: #F4D35E;
  --yellow-sand: #FBEBB0;
  --yellow-faded: rgba(244, 211, 94, 0.25);
  --coral: #FF8A65;
  --background: #faf8f3;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-tertiary: #888;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #A6C8D5;
    --navy-light: #B8D3DE;
    --background: #1a1a1a;
    --card: #2a2a2a;
    --text: #f5f5f5;
    --text-secondary: #bbb;
    --text-tertiary: #888;
    --yellow-faded: rgba(244, 211, 94, 0.15);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover { opacity: 0.75; }

img, svg { display: block; max-width: 100%; }

/* Container */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 20px 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(26,26,26,0.7);
    border-color: rgba(255,255,255,0.06);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.brand svg { width: 28px; height: 28px; }

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .nav { display: none; }
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 30%, var(--yellow-faded), transparent 70%);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--navy); }

.hero .tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 8px 24px rgba(38, 70, 83, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid currentColor;
}

.hero-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
  border-radius: 25%;
  display: block;
  box-shadow: 0 20px 50px rgba(38, 70, 83, 0.2);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--yellow-faded);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section .lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature {
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.feature:hover {
  transform: translateY(-2px);
}

.feature .emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Trust strip */
.trust {
  background: var(--yellow-faded);
  padding: 60px 0;
  text-align: center;
}

.trust h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
  color: var(--text);
}

.trust p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 36px auto 0;
}

.trust-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-point .icon {
  font-size: 28px;
}

.trust-point strong {
  color: var(--text);
  font-size: 15px;
}

/* WM Highlight Banner */
.wm-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.wm-banner h2 {
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.wm-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 18px;
}

.wm-banner .trophy {
  font-size: 60px;
  margin-bottom: 20px;
}

/* Screenshots placeholder */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.screen-mock {
  aspect-ratio: 9 / 19.5;
  background: var(--card);
  border-radius: 30px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.screen-mock .placeholder-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}

.screen-mock .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 0 8px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 60px 0 30px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 640px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.site-footer a {
  color: rgba(255,255,255,0.85);
}

.site-footer a:hover { color: white; }

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-footer .footer-brand svg { width: 36px; height: 36px; }
.site-footer .footer-brand strong { font-size: 22px; color: white; }

.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* Article (Privacy / Imprint) */
.article {
  padding: 60px 0;
}

.article .wrap { max-width: 720px; }

.article h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.article h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.article p, .article ul, .article ol {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 12px;
}

.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 6px; }

.article hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 32px 0;
}

.article em { font-style: italic; color: var(--text-tertiary); }

.article .meta {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ----- Video / Mockup-Section ----- */

.video-section {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, transparent 0%, var(--yellow-faded) 50%, transparent 100%);
}

.video-section .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-video {
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Phone mockup with rotating screens */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.25),
    0 0 0 2px rgba(0,0,0,0.15),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  margin-bottom: 24px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FBEBB0, #F4D35E);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 18px;
  z-index: 10;
}

.screen-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 60px 20px 30px;
}

.stage-1 { animation: stage-fade 12s 0s infinite; }
.stage-2 { animation: stage-fade 12s 4s infinite; }
.stage-3 { animation: stage-fade 12s 8s infinite; }

@keyframes stage-fade {
  0%, 5%   { opacity: 0; transform: translateY(15px); }
  10%, 30% { opacity: 1; transform: translateY(0); }
  35%, 100% { opacity: 0; transform: translateY(-15px); }
}

/* Counter Tile */
.counter-tile {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 32px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(38,70,83,0.15);
}

.counter-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  animation: pop 12s 0s infinite;
}

@keyframes pop {
  0%, 10% { transform: scale(1); }
  12%, 14% { transform: scale(1.4); }
  16%, 100% { transform: scale(1); }
}

.counter-value {
  font-size: 64px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: tick 12s 0s infinite;
}

@keyframes tick {
  0%, 12% {}
  14%, 100% {}
}

.counter-value::after {
  content: "23";
  animation: count 12s 0s infinite;
}

.counter-value { content: ""; }
.counter-value > * { display: none; }

/* Use CSS counter approach: hide HTML "23" and show animated label */
#cv {
  position: relative;
}
#cv::after {
  content: "23";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  animation: countNum 12s 0s infinite;
}

@keyframes countNum {
  0%, 12% { content: "23"; }
  14%, 100% { content: "24"; }
}

@property --num {
  syntax: "<integer>";
  initial-value: 23;
  inherits: false;
}

.counter-label {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Confetti burst */
.confetti-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 10px;
  background: var(--c);
  border-radius: 1px;
  opacity: 0;
  animation: confetti-fly 12s var(--d) infinite;
}

@keyframes confetti-fly {
  0%, 11% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  12%     { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  18%     { opacity: 1; transform: translate(var(--x), -100px) rotate(360deg); }
  22%     { opacity: 0; transform: translate(calc(var(--x) * 1.2), -50px) rotate(540deg); }
  100%    { opacity: 0; }
}

/* Match card */
.match-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 28px 26px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 10px 30px rgba(38,70,83,0.15);
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.match-row + .match-row { border-top: 1px solid #f0e8c8; }

.match-score {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.match-label {
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Leaderboard */
.leaderboard {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 22px 24px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 10px 30px rgba(38,70,83,0.15);
}

.lb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.lb-row + .lb-row { border-top: 1px solid #f0e8c8; }

.video-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 480px;
}

.video-badge {
  display: inline-block;
  font-family: -apple-system-monospaced, "SF Mono", monospace;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--yellow-faded);
  color: var(--navy);
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Override broken counter animation with two-span approach */
.counter-value {
  position: relative;
  font-size: 64px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  height: 64px;
  min-width: 80px;
  display: inline-block;
}

.counter-value > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.value-from { animation: hideAt 12s 0s infinite; }
.value-to   { animation: showAt 12s 0s infinite; }

@keyframes hideAt {
  0%, 11%   { opacity: 1; transform: scale(1); }
  12%       { opacity: 1; transform: scale(0.7); }
  14%, 100% { opacity: 0; }
}

@keyframes showAt {
  0%, 11%   { opacity: 0; transform: scale(1.4); }
  14%       { opacity: 1; transform: scale(1); }
  100%      { opacity: 1; transform: scale(1); }
}

/* Remove old broken animation */
#cv { display: none; }
