/* KysKam Landing — section layout */

/* ════════════════ NAV ════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: backdrop-filter 0.3s, background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--fg);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, 0.25));
}
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-scrolled .logo-img { width: 34px; height: 34px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.logo-word em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 6px;
}
.logo-tag {
  color: var(--fg-dim);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav-link {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta { justify-self: end; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
}

/* ════════════════ HERO ════════════════ */

.hero {
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 80% 30%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 65%),
    radial-gradient(ellipse 700px 500px at 12% 85%, color-mix(in oklab, var(--accent-2) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-aura {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,180,60,0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 35%, rgba(239,43,61,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 75%, rgba(255,180,60,0.04) 0 1px, transparent 2px);
  background-size: 180px 180px, 240px 240px, 200px 200px;
  pointer-events: none;
  z-index: 0;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-title { font-size: clamp(56px, 9vw, 144px); }
.hero-lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.35vw, 19px);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}
.hero-meta-n {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  font-weight: 400;
}

.hero-actions-note {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  text-transform: uppercase;
  align-self: center;
}

/* Photo block */
.hero-photo-col { perspective: 1200px; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 50px 100px -30px rgba(20, 12, 4, 0.35),
    0 0 0 1px var(--line),
    0 0 80px -20px color-mix(in oklab, var(--accent) 28%, transparent);
  transform: rotate(0.6deg);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.08);
}
.hero-photo-grain {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-photo-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%),
    radial-gradient(ellipse at 50% 100%, transparent 55%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* Floating chrome on the photo */
.hero-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(20, 14, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  z-index: 2;
  color: #f8efde;
}
.hero-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-badge-label {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.hero-badge-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
  color: #f8efde;
  margin-top: 2px;
}
.hero-badge-foot {
  display: flex;
  gap: 6px;
  color: rgba(248, 239, 222, 0.7);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.hero-stat {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: var(--grad);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px -14px rgba(239, 43, 61, 0.55);
  z-index: 2;
  transform: rotate(-1.5deg);
}
.hero-stat-n {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-stat-l {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0.92;
}

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 600px) {
  .hero-badge { min-width: 0; padding: 10px; }
  .hero-badge-title { font-size: 16px; }
  .hero-stat { padding: 10px 12px; gap: 10px; bottom: 14px; right: 14px; }
  .hero-stat-n { font-size: 28px; }
}

.hero-ticker {
  margin-top: clamp(40px, 6vw, 80px);
  text-align: center;
}

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

/* Hero demo: coaster + phone */
.hero-demo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  min-height: 480px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-demo-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  opacity: 0.5;
}

.coaster {
  position: absolute;
  left: 8%;
  top: 12%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #2a1f3d, #110a1f);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent),
    0 0 80px -10px color-mix(in oklab, var(--accent) 30%, transparent),
    inset 0 -2px 0 rgba(0,0,0,0.4),
    inset 0 2px 0 rgba(255,255,255,0.06);
  padding: 8%;
  transform: rotate(-8deg);
}
.coaster-inner {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}

.phone {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: 52%;
  aspect-ratio: 9 / 18;
  background: #050505;
  border: 2px solid #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transform: rotate(4deg);
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 24%;
  height: 14px;
  background: #050505;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-status {
  display: flex; justify-content: space-between;
  padding: 16px 22px 6px;
  font-size: 9px;
  color: var(--fg-muted);
}
.phone-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 14px;
  gap: 10px;
}
.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 9.5px;
}
.phone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.phone-photo { aspect-ratio: 1; }
.phone-cta {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
}
.phone-loader {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px;
}
.phone-loader-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.phone-loader-bar::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%;
  background: var(--accent);
}
.phone-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: center;
  padding-top: 4px;
}
.phone-share {
  gap: 10px;
}
.phone-share-actions { display: flex; flex-direction: column; gap: 5px; }
.share-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  font-size: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}
.phone-prize {
  margin-top: auto;
  padding: 10px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.prize-amount { font-size: 30px !important; line-height: 1; }

/* Portrait component */
.portrait {
  width: 100%; aspect-ratio: 1;
  background: #1a120c;
  border-radius: 8px;
  overflow: hidden;
}
.portrait-sm { width: 40px; height: 40px; }

/* Step indicator */
.step-indicator {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  z-index: 3;
}
.step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  color: var(--fg-dim);
  transition: all 0.3s;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  justify-content: center;
}
.step-pill.active,
.step-pill.done {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.step-pill.active .step-num,
.step-pill.done .step-num { color: var(--accent-ink); opacity: 0.6; }
.step-num { color: var(--fg-dim); }

@media (max-width: 600px) {
  .step-pill { font-size: 8.5px; padding: 5px 6px; }
}

/* ════════════════ Section head shared ════════════════ */
.section-head {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.bg-shift { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-flat { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ════════════════ HOW IT WORKS ════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.step-head { display: flex; justify-content: space-between; align-items: center; }
.step-n { font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.step-sub { color: var(--fg-dim); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.step-title { font-size: clamp(30px, 3vw, 44px); }
.step-body { color: var(--fg-muted); font-size: 15.5px; line-height: 1.55; }
.step-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.step-visual {
  margin-top: auto;
  aspect-ratio: 16 / 11;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* StepVisual variants */
.sv-coaster {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.sv-coaster-disc {
  width: 70%;
  aspect-ratio: 1;
  background: #1a1208;
  border-radius: 50%;
  padding: 12%;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  position: relative;
}
.sv-hand {
  position: absolute;
  bottom: 12px; right: 12px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.sv-share {
  position: absolute; inset: 0;
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
}
.sv-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
  max-width: 90%;
  animation: slidein 0.6s ease-out backwards;
}
.sv-bubble .mono { font-size: 9.5px; letter-spacing: 0.14em; color: var(--accent); }
.sv-bubble-1 { align-self: flex-start; animation-delay: 0s; }
.sv-bubble-2 { align-self: flex-end;   animation-delay: 0.2s; }
.sv-bubble-3 { align-self: flex-start; animation-delay: 0.4s; }
@keyframes slidein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sv-prize {
  position: absolute; inset: 0;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.sv-ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  overflow: hidden;
  min-height: 100px;
}
.sv-ticket-l { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sv-ticket-l .display-md { font-size: 26px; }
.sv-ticket-l .text-dim,
.sv-ticket-l .text-muted { color: rgba(0,0,0,0.5) !important; }
.sv-ticket-r {
  padding: 12px;
  border-left: 2px dashed color-mix(in oklab, var(--accent-ink) 30%, transparent);
}
.sv-ticket-qr { width: 60px; height: 60px; }
.sv-email { font-size: 10.5px; padding: 0 4px; }

/* ════════════════ AI SELFIE DEMO ════════════════ */
.demo-stage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .demo-stage { grid-template-columns: 1fr; } }

.demo-portrait {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-portrait-frame {
  position: relative;
  background: #0a0604;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.demo-portrait-frame .portrait {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
  aspect-ratio: 200 / 240;
}
.demo-portrait-meta {
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: end;
  font-size: 10px;
  gap: 12px;
}
.demo-portrait-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.demo-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 6px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.demo-portrait-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.demo-picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-picker-head { display: flex; justify-content: space-between; align-items: center; }
.demo-auto-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.demo-auto-btn:hover { color: var(--accent); border-color: var(--accent); }
.demo-picker-list { display: flex; flex-direction: column; gap: 8px; }
.demo-picker-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.18s;
}
.demo-picker-item:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.02); }
.demo-picker-item.active {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent);
}
.demo-picker-thumb {
  width: 44px; height: 44px;
  border-radius: 6px;
  overflow: hidden;
}
.demo-picker-thumb .portrait { width: 100%; height: 100%; }
.demo-picker-title { font-size: 15px; }
.demo-picker-arrow { color: var(--accent); font-size: 12px; }
.demo-picker-foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.demo-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat-cell { display: flex; flex-direction: column; gap: 4px; }
.stat-n { font-size: clamp(36px, 4vw, 56px); }
