/* ============================================
   Kedoma Labs — Studio homepage
   ============================================ */

:root {
  --bg: #0c0a12;
  --bg-2: #120e1c;
  --surface: #18142380;
  --panel: #17131f;
  --panel-2: #1e1829;
  --border: #2e2740;

  --text: #f7f5f2;
  --text-dim: #c7c1d4;
  --text-mute: #9891ac;

  --violet: #8b5cf6;
  --violet-deep: #5b21b6;
  --violet-solid: #6d28d9;
  --pink: #c026d3;
  --orange: #fb923c;
  --sky: #7dd3fc;

  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 6vw, 96px);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body.home {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body.home img, body.home svg { display: block; max-width: 100%; }
body.home a { color: inherit; text-decoration: none; }

body.home :focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.apps-panel:focus {
  outline: none;
}

/* ---------- Nav ---------- */

.home-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.home-brand img { width: 22px; height: 22px; }

.home-nav a.legal-link {
  font-size: 13px;
  color: var(--text-mute);
  transition: color 0.2s ease;
}
.home-nav a.legal-link:hover { color: var(--text-dim); }

/* ---------- Scene ---------- */

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 70px;
}

.bg-glow {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(680px 520px at 22% 18%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(560px 460px at 82% 12%, rgba(192, 38, 211, 0.14), transparent 60%),
    radial-gradient(620px 500px at 70% 85%, rgba(251, 146, 60, 0.10), transparent 60%),
    radial-gradient(500px 420px at 10% 80%, rgba(125, 211, 252, 0.10), transparent 60%);
  filter: blur(20px);
  animation: glowdrift 26s ease-in-out infinite alternate;
}

@keyframes glowdrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0, 24px, 0) scale(1.05); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Floating app tiles ---------- */

.tile-anchor {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transition: transform 0.2s ease-out;
  will-change: transform;
  z-index: 5;
  pointer-events: none;
}

.tile-anchor.front { z-index: 15; }
.tile-anchor.back { z-index: 3; }

.tile-anchor[data-app] {
  pointer-events: auto;
  cursor: pointer;
}

.tile-anchor[data-app] .tile-inner {
  transition: filter 0.2s ease;
}

.tile-anchor[data-app]:hover .tile-inner {
  filter: brightness(1.12);
}

.tile-inner {
  position: relative;
  width: var(--size, 110px);
  height: var(--size, 110px);
  border-radius: 27%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 7px 9px 14px rgba(255, 255, 255, 0.28),
    inset -12px -14px 22px rgba(0, 0, 0, 0.45),
    0 4px 8px -2px rgba(0, 0, 0, 0.45),
    0 34px 54px -18px rgba(0, 0, 0, 0.72);
  animation: bob var(--bob-dur, 7s) ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
  transform: rotate(var(--rot, 0deg));
}

.tile-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.16) 22%, rgba(255,255,255,0) 46%),
    linear-gradient(155deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
  z-index: 2;
}

@keyframes bob {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-18px); }
}

.tile-k11 .tile-inner {
  --size: 212px;
  background: linear-gradient(150deg, var(--sky) 0%, var(--violet) 55%, var(--violet-deep) 100%);
}

.tile-k11 .tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.tile-ph .tile-inner {
  background: linear-gradient(150deg, #322a48, #16121f);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 6px 8px 12px rgba(255, 255, 255, 0.1),
    inset -10px -12px 18px rgba(0, 0, 0, 0.55),
    0 4px 8px -2px rgba(0, 0, 0, 0.5),
    0 26px 44px -16px rgba(0, 0, 0, 0.7);
}

.tile-ph .tile-inner::after {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.08) 24%, rgba(255,255,255,0) 46%),
    linear-gradient(155deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 36%);
}

.tile-ph .tile-label {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-mute);
  font-weight: 500;
}

.tile-ph.small .tile-inner { --size: 74px; }
.tile-ph.small .tile-label { font-size: 19px; }

.tile-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.orb-deco {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 90px);
  height: var(--size, 90px);
  z-index: 4;
  transition: transform 0.2s ease-out;
  will-change: transform;
  pointer-events: none;
}

.orb-deco .tile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation-name: bobsoft;
  box-shadow:
    inset 8px 10px 16px rgba(255, 255, 255, 0.4),
    inset -12px -16px 24px rgba(0, 0, 0, 0.35),
    0 4px 8px -2px rgba(0, 0, 0, 0.3),
    0 28px 54px -20px rgba(139, 92, 246, 0.55);
}

.orb-deco .tile-inner::after { border-radius: 50%; }

@keyframes bobsoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.orb-deco.o1 .tile-inner { background: radial-gradient(circle at 35% 30%, #fdba74, #c084fc 45%, #5b21b6 100%); }
.orb-deco.o2 .tile-inner { background: radial-gradient(circle at 35% 30%, #7dd3fc, #8b5cf6 45%, #c026d3 80%, #fb923c 100%); }
.orb-deco.o3 .tile-inner { background: radial-gradient(circle at 35% 30%, #c4b5fd, #8b5cf6 50%, #4c1d95 100%); }

/* ---------- Big sculptural blob (top-left, "ribbon" equivalent) ---------- */

.blob-deco {
  position: absolute;
  left: var(--x, -6%);
  top: var(--y, -8%);
  width: var(--size, 260px);
  height: var(--size, 260px);
  z-index: 3;
  transition: transform 0.2s ease-out;
  will-change: transform;
  pointer-events: none;
}

.blob-mark {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 40px 70px rgba(91, 33, 182, 0.5)) drop-shadow(0 10px 18px rgba(0,0,0,0.35));
  animation: blobfloat 12s ease-in-out infinite;
}

@keyframes blobfloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* ---------- Keychain (ring + chain + charms hanging off the phone) ---------- */

.keychain {
  position: absolute;
  left: var(--x, 6%);
  top: var(--y, 2%);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease-out;
  will-change: transform;
  pointer-events: none;
}

.keychain-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 5px solid #d8d3e6;
  box-shadow:
    inset 2px 2px 4px rgba(255,255,255,0.6),
    inset -2px -3px 5px rgba(0,0,0,0.25),
    0 6px 14px -4px rgba(0,0,0,0.5);
}

.keychain-chain {
  width: 3px;
  height: 46px;
  margin-top: -2px;
  background: repeating-linear-gradient(
    to bottom,
    #cfc9dd 0px, #cfc9dd 5px,
    #8f88a3 5px, #8f88a3 6px,
    transparent 6px, transparent 11px
  );
  opacity: 0.85;
}

.charm {
  position: relative;
  width: var(--size, 56px);
  height: var(--size, 56px);
  border-radius: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  animation: charmsway 5s ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
  transform-origin: top center;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 4px 5px 8px rgba(255, 255, 255, 0.3),
    inset -7px -9px 15px rgba(0, 0, 0, 0.45),
    0 16px 28px -12px rgba(0, 0, 0, 0.6);
}

.charm::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
}

.charm.charm-1 { background: linear-gradient(150deg, #1f1a2b, #100c18); }
.charm.charm-2 {
  background: linear-gradient(150deg, var(--pink), #7c1a8a);
  margin-top: 10px;
  border-radius: 50%;
}

.charm-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

@keyframes charmsway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

/* ---------- Phone ---------- */

.phone-anchor {
  position: relative;
  z-index: 10;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.phone {
  width: min(352px, 82vw);
  aspect-ratio: 320 / 585;
  border-radius: 44px;
  background: linear-gradient(160deg, #26202f, #100c18);
  padding: 12px;
  box-shadow:
    0 60px 100px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: phonefloat 8s ease-in-out infinite;
}

@keyframes phonefloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: #f7f5f2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #100c18;
  border-radius: 14px;
}

.phone-logo {
  width: 94%;
  max-width: 300px;
  margin-bottom: 18px;
}

.phone-tagline {
  font-size: 13.5px;
  color: #6b6478;
  max-width: 30ch;
  margin: 0 0 24px;
  line-height: 1.5;
}

.get-started-btn {
  position: relative;
  appearance: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, var(--violet-solid), var(--pink));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 6px 5px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 16px rgba(0, 0, 0, 0.12),
    0 4px 10px -4px rgba(0, 0, 0, 0.3),
    0 18px 32px -14px rgba(109, 40, 217, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.get-started-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 24% 20%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}

.get-started-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 16px rgba(0, 0, 0, 0.12),
    0 6px 14px -4px rgba(0, 0, 0, 0.32),
    0 22px 36px -14px rgba(109, 40, 217, 0.75);
}

.get-started-btn .btn-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(0, 0, 0, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.get-started-btn:hover .btn-icon {
  transform: translateX(3px);
}

.get-started-btn svg {
  width: 13px;
  height: 13px;
  color: var(--violet-solid);
}

.phone-home-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: #d8d3e0;
}

/* ---------- Scroll hint ---------- */

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 6;
}

/* ---------- Apps overlay ---------- */

.apps-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.apps-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.apps-panel {
  position: relative;
  width: min(940px, 94vw);
  max-height: min(900px, 88vh);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.93) translateY(14px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.apps-overlay.open .apps-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.apps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 6px;
}

.apps-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover { background: var(--border); color: var(--text); }

.apps-view {
  padding: 10px 18px 22px;
  overflow-y: auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.app-card {
  position: relative;
  appearance: none;
  border: none;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #17131f;
  border: 1px dashed rgba(199, 193, 212, 0.3);
}

.app-card:hover {
  transform: translateY(-4px);
}

.app-card.live-card {
  border: none;
  box-shadow: 0 20px 40px -18px rgba(139, 92, 246, 0.45);
}

.app-card.live-card:hover {
  box-shadow: 0 26px 48px -16px rgba(139, 92, 246, 0.6);
}

.card-cover {
  position: absolute;
  inset: 0;
}

.card-cover.cover-k11 {
  background: radial-gradient(120% 120% at 22% 18%, var(--sky), var(--violet) 48%, var(--violet-deep) 100%);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 55%);
}

.card-eyebrow {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.soon-card .card-eyebrow {
  color: var(--text-mute);
}

.card-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
}

.card-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.6);
}

.card-icon-ph {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px dashed rgba(199, 193, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-mute);
  font-size: 15px;
}

.card-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  color: #fff;
}

.soon-card .card-name {
  color: var(--text-dim);
}

.card-sub {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 5px;
}

.soon-card .card-sub {
  color: var(--text-mute);
}

/* Detail view */

.apps-view.detail {
  display: flex;
  flex-direction: column;
}

.app-detail-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
  gap: 14px;
}

.app-detail-body:has(.theme-k11) {
  align-items: stretch;
  padding: 6px 4px 10px;
}

.rich-detail { width: 100%; }

.app-detail-body .app-icon {
  width: 76px;
  height: 76px;
  font-size: 22px;
}

.app-detail-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}

.app-detail-body p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 40ch;
  margin: 0;
}

.app-detail-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--violet-solid), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}

.app-icon-img {
  width: 76px;
  height: 76px;
  border-radius: 27%;
  object-fit: cover;
}

.app-store-note {
  margin-top: 10px !important;
  font-size: 12.5px !important;
  color: var(--text-mute) !important;
}

.app-store-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.app-store-btn:hover {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--text);
  background: #241d33;
}

.app-store-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- Rich app detail (Kurve11) ---------- */

.theme-k11 {
  --k-blue: #6e8fb0;
  --k-blue-deep: #435f79;
  --k-blue-mid: #567898;
  --k-blue-light: #86a8c4;
  --k-blue-pale: #a9c0d6;
  --k-green: #5fa37a;
  --k-red: #c46f6f;
  text-align: left;
}

.rich-detail {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 8px 6px 18px;
}

.rich-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rich-hero img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
}

.rich-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.rich-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.rich-badge.live { background: rgba(95, 163, 122, 0.16); color: var(--k-green); }
.rich-badge.free { background: var(--panel-2); color: var(--text-mute); }

.rich-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1;
  color: var(--text);
  margin-top: 14px;
}

.rich-lede {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.rich-lede-text { flex: 1.3; min-width: 240px; }

.rich-dropcap {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--k-blue);
  float: left;
  line-height: 0.8;
  margin: 3px 8px 0 0;
}

.rich-lede-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

.rich-quote {
  border-left: 3px solid var(--k-blue);
  padding-left: 14px;
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--k-blue-light);
  line-height: 1.5;
}

.rich-side {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rich-stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.rich-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text);
}

.rich-stat span {
  font-size: 11.5px;
  color: var(--text-mute);
}

.rich-cta-blue {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(120deg, var(--k-blue-deep), var(--k-blue));
  padding: 14px;
  border-radius: 12px;
  margin-top: 2px;
}

.rich-section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rich-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rich-feature {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.rich-feature .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rich-feature h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--text);
  margin: 8px 0 0;
}

.rich-feature p {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 6px 0 0;
}

.rich-bots {
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(155deg, rgba(110, 143, 176, 0.14), rgba(67, 95, 121, 0.05));
  border: 1px solid #2b3a48;
}

.rich-bots .rich-section-label { color: var(--k-blue-light); }

.rich-bots h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  margin: 6px 0 10px;
}

.rich-bots p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 14px;
}

.rich-bot-traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rich-bot-traits div {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid #29343d;
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

.rich-bot-traits b {
  display: block;
  color: var(--k-blue-light);
  font-size: 11px;
  margin-bottom: 4px;
}

.rich-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rich-step {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.rich-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--k-blue);
}

.rich-step h4 {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text);
  margin: 8px 0 0;
}

.rich-step p {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 5px 0 0;
}

.rich-screens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rich-screen {
  aspect-ratio: 9 / 16;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: 9.5px;
  color: var(--text-mute);
}

.rich-faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.rich-faq-item {
  background: var(--panel-2);
  padding: 14px 16px;
}

.rich-faq-item h4 {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

.rich-faq-item p {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .rich-features,
  .rich-bot-traits,
  .rich-steps { grid-template-columns: 1fr 1fr; }
  .rich-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* View switching */

.apps-view[hidden] { display: none; }

/* ---------- Footer ---------- */

.home-footer {
  position: relative;
  z-index: 6;
  padding: 26px var(--gutter) 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-mute);
}

.home-footer .footer-links {
  display: flex;
  gap: 22px;
}

.home-footer a:hover { color: var(--text-dim); }

/* ---------- Legal pages ---------- */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px var(--gutter) 100px;
  min-height: 60vh;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 32px;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 34px 0 10px;
}

.legal-wrap p, .legal-wrap li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.legal-wrap .placeholder {
  color: var(--text-mute);
  font-style: italic;
}

.legal-wrap a { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .scene { padding: 56px 16px 60px; }

  .phone { width: min(238px, 62vw); }
  .phone-screen { padding: 20px 13px; }
  .phone-tagline { font-size: 12px; margin-bottom: 18px; }
  .get-started-btn { padding: 11px 22px; font-size: 13px; }

  .tile-k11 .tile-inner { --size: 96px; }
  .tile-k11 .tile-label { font-size: 21px; }
  .tile-anchor.tile-k11 { transform: translate(14vw, 10vh) !important; }
  .blob-deco { transform: scale(0.62) !important; transform-origin: top left; }
  .tile-ph.small .tile-inner { --size: 40px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}
