:root {
  --ink: #16122f;
  --night: #241c52;
  --violet: #7b62f0;
  --violet-deep: #5b3fd9;
  --lilac: #cdc2ff;
  --gold: #ffd98a;
  --paper: #f4f2ff;
  --muted: #aaa3d6;
  --wa: #dcf8c6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 22px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand span { direction: ltr; }
.switch {
  font-size: 15px; text-decoration: none; color: var(--lilac);
  padding: 8px 16px; border: 1px solid rgba(205, 194, 255, .28); border-radius: 999px;
}
.switch:hover { color: var(--paper); border-color: var(--lilac); }

/* Intro */
.intro { max-width: 1160px; margin: 0 auto; padding: 40px 24px 44px; }
.intro h1 {
  margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(38px, 6.2vw, 76px); max-width: 15ch; text-wrap: balance;
}
.intro p { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); font-weight: 300; }

/* The two doors */
.doors {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 0 24px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.lumi {
  position: absolute; z-index: 2; top: -88px; inset-inline-start: calc(50% - 48px);
  width: 96px; height: auto; pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(10, 6, 30, .55));
}
.door {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border-radius: 34px; overflow: hidden; min-height: 620px;
  transition: transform .25s ease;
}
.door:hover { transform: translateY(-4px); }
.door:focus-visible { outline-offset: 6px; border-radius: 34px; }
.door.bot { background: var(--night); color: var(--paper); }
.door.web { background: var(--paper); color: var(--ink); }

.scene { position: relative; flex: 1; display: grid; place-items: center; padding: 48px 32px 24px; min-height: 330px; }
.words { padding: 8px 40px 40px; }
.words h2 { margin: 0 0 10px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.words > p { margin: 0 0 18px; font-size: 17px; max-width: 42ch; }
.bot .words > p { color: #d6d0f5; }
.web .words > p { color: #3d3666; }
.words ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.words li { display: flex; gap: 10px; align-items: baseline; }
.words li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-2px); }
.bot li::before { background: var(--gold); }
.web li::before { background: var(--violet); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 17px;
}
.bot .cta { background: var(--gold); color: var(--ink); }
.web .cta { background: var(--violet-deep); color: #fff; }
.door:hover .cta { filter: brightness(1.06); }

/* WhatsApp scene */
.phone {
  width: min(320px, 100%); background: #efe9dd; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); color: #1d1a2e;
  transform: rotate(-2deg);
}
[dir="rtl"] .phone { transform: rotate(2deg); }
.phone .bar { display: flex; align-items: center; gap: 10px; background: #1f5c4e; color: #fff; padding: 12px 16px; font-size: 14px; }
.phone .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #f0a960); }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 20px; min-height: 236px; }
.msg {
  margin: 0; max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45;
  background: #fff; align-self: flex-start;
  animation: bubble .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.5s + var(--i) * .9s);
}
.msg.out { background: var(--wa); align-self: flex-end; }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Website & app scene */
.browser {
  width: min(330px, 88%); background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(36, 28, 82, .45); transform: rotate(2deg);
}
[dir="rtl"] .browser { transform: rotate(-2deg); }
.chrome { display: flex; gap: 6px; padding: 11px 14px; background: #ebe7fb; }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c9c0f1; }
.page { display: grid; gap: 10px; padding: 20px 20px 24px; }
.page b { font-size: 17px; color: var(--ink); }
.line { display: block; height: 9px; border-radius: 9px; background: #e6e1fa; }
.w70 { width: 70%; } .w45 { width: 45%; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.tiles i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, var(--lilac), #e9e4ff); }
.page .btn { justify-self: start; background: var(--violet-deep); color: #fff; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; }
.handset {
  position: absolute; bottom: 18px; inset-inline-end: 12%; width: 104px; padding: 16px 10px 14px;
  display: grid; gap: 7px; background: var(--ink); border-radius: 20px;
  box-shadow: 0 22px 40px -16px rgba(22, 18, 47, .6); transform: rotate(-5deg);
}
.handset .line { background: #3b3170; height: 7px; }
.handset .tile { height: 46px; border-radius: 10px; background: linear-gradient(160deg, var(--violet), var(--violet-deep)); }
.handset .btn { height: 16px; width: 60%; border-radius: 999px; background: var(--gold); }

/* The sample apps on lumkaro.app */
.samples {
  max-width: 1112px; margin: -22px auto 52px; padding: 22px 28px; text-decoration: none;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  border-radius: 28px; color: var(--paper);
  background: linear-gradient(120deg, #0d0b1c 0%, #15112c 55%, #1d1630 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .16), 0 30px 60px -40px rgba(0, 0, 0, .8);
  position: relative; overflow: hidden;
  transition: box-shadow .25s ease;
}
@media (min-width: 1160px) { .samples { margin-left: auto; margin-right: auto; } }
.samples::before {
  content: ""; position: absolute; inset: auto -10% -120% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 217, 138, .14), transparent); pointer-events: none;
}
[dir="rtl"] .samples::before { inset: auto auto -120% -10%; }
.samples:hover { box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .38), 0 30px 60px -40px rgba(0, 0, 0, .8); }
.samples:hover .pill { background: #ffe4ad; }
.fan { position: relative; width: 232px; height: 92px; flex: none; }
.tile {
  position: absolute; top: 6px; width: 66px; height: 80px; border-radius: 18px;
  background: var(--bg); color: var(--fg);
  display: grid; place-items: center; align-content: center; gap: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 24px -12px rgba(0, 0, 0, .7);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tile small { font-size: 11px; font-weight: 500; opacity: .9; }
.tile.t0 { inset-inline-start: 0; transform: rotate(-7deg); }
.tile.t1 { inset-inline-start: 54px; transform: rotate(-2deg) translateY(-4px); }
.tile.t2 { inset-inline-start: 108px; transform: rotate(3deg); }
.tile.t3 { inset-inline-start: 162px; transform: rotate(8deg) translateY(4px); }
[dir="rtl"] .tile.t0 { transform: rotate(7deg); }
[dir="rtl"] .tile.t1 { transform: rotate(2deg) translateY(-4px); }
[dir="rtl"] .tile.t2 { transform: rotate(-3deg); }
[dir="rtl"] .tile.t3 { transform: rotate(-8deg) translateY(4px); }
.samples:hover .tile.t0 { transform: rotate(-10deg) translateY(-3px); }
.samples:hover .tile.t3 { transform: rotate(11deg) translateY(1px); }
[dir="rtl"] .samples:hover .tile.t0 { transform: rotate(10deg) translateY(-3px); }
[dir="rtl"] .samples:hover .tile.t3 { transform: rotate(-11deg) translateY(1px); }
.say { display: grid; gap: 6px; min-width: 0; }
.say strong { font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.say span { color: var(--muted); font-size: 15px; max-width: 52ch; }
.go { display: grid; justify-items: center; gap: 8px; }
.domain { font-size: 13px; color: var(--gold); letter-spacing: .02em; opacity: .85; }
.pill {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap;
}
@media (max-width: 860px) {
  .samples { grid-template-columns: 1fr; gap: 18px; margin: -18px 24px 40px; padding: 24px; text-align: start; }
  .fan { width: 232px; height: 92px; }
  .go { justify-items: start; }
}
@media (max-width: 400px) {
  .samples { margin-left: 16px; margin-right: 16px; padding: 20px; }
  .fan { transform: scale(.88); transform-origin: top left; margin-bottom: -10px; }
  [dir="rtl"] .fan { transform-origin: top right; }
}
@media (prefers-reduced-motion: reduce) { .tile, .samples { transition: none; } }

/* Footer */
.foot { max-width: 1160px; margin: 0 auto; padding: 8px 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; }
.foot p { margin: 0; }

/* Policies */
.legal main { max-width: 760px; margin: 0 auto; padding: 16px 24px 72px; }
.legal article { display: none; }
.legal article.shown { display: block; }
.no-js .legal article[data-lang="en"], .legal:not(.ready) article[data-lang="en"] { display: block; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 24px 0 6px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 34px 0 8px; }
.legal p { color: #d6d0f5; font-size: 16.5px; line-height: 1.75; margin: 0 0 12px; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal .intro-text { font-size: 18px; color: var(--paper); }
.crumbs { display: flex; gap: 18px; font-size: 15px; color: var(--lilac); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
  .lumi { top: -64px; width: 72px; inset-inline-start: auto; inset-inline-end: 28px; }
  .door { min-height: 0; border-radius: 28px; }
  .scene { min-height: 290px; padding: 40px 20px 16px; }
  .words { padding: 4px 24px 28px; }
  .intro { padding: 24px 24px 72px; }
  .handset { inset-inline-end: 6%; }
}
@media (max-width: 400px) {
  .top { padding: 18px 16px; }
  .intro, .doors, .foot { padding-left: 16px; padding-right: 16px; }
  .handset { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; }
  .door, .door:hover { transition: none; transform: none; }
}
