/* ============================================================
   KRMN landing page
   ============================================================ */

/* ---------------------------------------------------------- Ambient field */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora .a1 {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle, rgba(212, 255, 61, 0.42), transparent 66%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 40vw; height: 40vw; min-width: 300px; min-height: 300px;
  top: 6vw; right: -12vw;
  background: radial-gradient(circle, rgba(34, 231, 255, 0.3), transparent 66%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 52vw; height: 52vw; min-width: 320px; min-height: 320px;
  bottom: -24vw; left: 22vw;
  background: radial-gradient(circle, rgba(139, 107, 255, 0.26), transparent 66%);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 7vw, 0) scale(1.16); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8vw, 11vw, 0) scale(0.92); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to   { transform: translate3d(-11vw, -8vw, 0) scale(1.2); }
}

/* Fine grid, fading out downward */
.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 22%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 22%, #000 15%, transparent 78%);
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------------------------------------------------------- Hero */

.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(4rem, 10vw, 7rem);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.46rem 1rem 0.46rem 0.78rem;
  border: 1px solid rgba(212, 255, 61, 0.28);
  border-radius: 999px;
  background: rgba(212, 255, 61, 0.07);
  color: var(--volt);
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.pill .dot {
  position: relative;
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--volt);
}
.pill .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--volt);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.sanskrit {
  margin: 2.1rem 0 0;
  font-family: var(--font-deva);
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.sanskrit small {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-4);
  letter-spacing: 0;
}

.hero h1 {
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11.5vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(96deg, var(--volt) 0%, #F2FFC4 46%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.hero .lede {
  margin: 1.9rem 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 2.3vw, 1.22rem);
  line-height: 1.6;
}

.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Store "coming soon" badges */
.stores {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.66rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--ink-3);
}
.store svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.store b {
  display: block;
  color: var(--ink);
  font-size: 0.885rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.store span {
  display: block;
  font-size: 0.665rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ---------------------------------------------------------- Hero visual */

.device {
  position: relative;
  justify-self: center;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.09));
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 90px -30px rgba(212, 255, 61, 0.28);
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-0.5deg); }
}

.device__screen {
  height: 100%;
  border-radius: 34px;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(212, 255, 61, 0.14), transparent 62%),
    linear-gradient(180deg, #0D1014, #08090C);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
}

.device__notch {
  position: absolute;
  top: 20px; left: 50%;
  translate: -50% 0;
  width: 92px; height: 22px;
  border-radius: 999px;
  background: #06070A;
  z-index: 3;
}

.scr__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.scr__head strong {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.scr__head em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Activity rings */
.rings { display: grid; place-items: center; padding: 0.4rem 0 1rem; }
.rings svg { width: 100%; max-width: 190px; }
.rings circle { fill: none; stroke-linecap: round; transform-origin: 50% 50%; }
.rings .track { stroke: rgba(255, 255, 255, 0.07); }
.rings .prog {
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--c);
  transform: rotate(-90deg);
  animation: fill-ring 2.4s var(--ease) forwards;
  animation-delay: var(--d, 0.5s);
}
@keyframes fill-ring { to { stroke-dashoffset: var(--o); } }

.rings__label {
  text-anchor: middle;
  font-family: var(--font);
  fill: var(--ink);
}
.rings__label .big { font-size: 34px; font-weight: 800; letter-spacing: -1.6px; }
.rings__label .sub {
  font-size: 7.6px; font-weight: 700; letter-spacing: 1.3px;
  fill: var(--ink-4); text-transform: uppercase;
}

/* Stat rows inside the device */
.scr__stats { display: grid; gap: 0.55rem; margin-top: auto; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.032);
}
.stat-row .ico {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(212, 255, 61, 0.11);
  color: var(--volt);
}
.stat-row .ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.stat-row .txt { min-width: 0; flex: 1; }
.stat-row .txt b {
  display: block;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.stat-row .txt span {
  display: block;
  font-size: 0.695rem;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-row .val {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-row .val.muted { color: var(--ink-3); font-weight: 650; }

/* Personal-best row gets a subtle gold lift */
.stat-row.is-pb {
  border-color: rgba(212, 255, 61, 0.28);
  background: linear-gradient(110deg, rgba(212, 255, 61, 0.11), rgba(255, 255, 255, 0.03));
}
.stat-row.is-pb .ico { background: rgba(212, 255, 61, 0.2); }

/* ---------------------------------------------------------- Sports strip */

.strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  padding-block: 1.15rem;
}
.strip__label {
  margin-right: 0.35rem;
  font-size: 0.715rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.chip {
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.855rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink-2);
}
.chip--soft {
  border-style: dashed;
  border-color: var(--line);
  color: var(--ink-4);
  font-weight: 500;
}

/* ---------------------------------------------------------- Sections */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head h2 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.section__head p {
  margin: 1.05rem 0 0;
  color: var(--ink-3);
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  line-height: 1.65;
}

/* Pillar cards */
.pillars {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.pillar {
  position: relative;
  padding: 1.85rem 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow, var(--volt)), transparent);
  opacity: 0.5;
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.pillar__ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--glow, var(--volt)) 13%, transparent);
  color: var(--glow, var(--volt));
  margin-bottom: 1.35rem;
}
.pillar__ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.pillar__n {
  position: absolute;
  top: 1.5rem; right: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.pillar h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pillar p { margin: 0; color: var(--ink-3); font-size: 0.965rem; line-height: 1.62; }

.pillar ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.885rem;
}
.pillar li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--ink-3);
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.62em;
  width: 6px; height: 3px;
  border-left: 1.8px solid var(--glow, var(--volt));
  border-bottom: 1.8px solid var(--glow, var(--volt));
  rotate: -45deg;
}

/* ---------------------------------------------------------- Privacy band */

.band {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 130% at 12% 50%, rgba(212, 255, 61, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.017);
  overflow: hidden;
}

.band__grid {
  display: grid;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.2rem, 8vw, 5.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
}

.band h2 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.band p {
  margin: 1.1rem 0 0;
  max-width: 48ch;
  color: var(--ink-2);
  line-height: 1.68;
}

.promises { display: grid; gap: 0.7rem; }
.promises--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.promise {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 10, 13, 0.55);
}
.promise .tick {
  width: 21px; height: 21px;
  flex: none;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 255, 61, 0.13);
  color: var(--volt);
}
.promise .tick svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.6; }

/* Readiness traffic light */
.promise .tick--green { background: rgba(74, 222, 128, 0.15); color: #4ADE80; }
.promise .tick--amber { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.promise .tick--red   { background: rgba(248, 113, 113, 0.15); color: #F87171; }
.promise .tick--amber svg,
.promise .tick--red svg { width: 13px; height: 13px; stroke-width: 2.1; }
.promise b { display: block; font-size: 0.925rem; font-weight: 650; letter-spacing: -0.012em; }
.promise span { display: block; margin-top: 0.15rem; font-size: 0.845rem; color: var(--ink-4); line-height: 1.5; }

/* ---------------------------------------------------------- Closing CTA */

.closing {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.closing h2 {
  margin: 1.1rem auto 0;
  max-width: 17ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 7.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.closing p {
  margin: 1.3rem auto 0;
  max-width: 46ch;
  color: var(--ink-3);
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  line-height: 1.65;
}
.closing .stores { justify-content: center; margin-top: 2.3rem; }

/* ---------------------------------------------------------- Reveal */

/* Only hide content when JS is running to reveal it again. A failed or
   blocked script must never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .device { animation: none; }
  .rings .prog { animation: none; stroke-dashoffset: var(--o); }
}
