/* G-SOFT — gsoftit.lk
   One deliberate visual world: a dark "control room" for the shop counter. It is dark in every
   browser theme on purpose, so every colour below is painted explicitly from these tokens.
   All motion stops for visitors who ask for reduced motion. */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #050810;
  --panel: rgb(14 22 38 / 72%);
  --panel-solid: #0d1626;
  --line: rgb(148 180 220 / 14%);
  --line-2: rgb(148 180 220 / 26%);
  --ink: #eaf2ff;
  --ink-2: #a9b8d0;
  --muted: #71829c;
  --mint: #3cf0a8;
  --mint-2: #1fc98a;
  --mint-ink: #032318;
  --mint-soft: rgb(60 240 168 / 12%);
  --cyan: #46c8ff;
  --amber: #ffc86b;
  --amber-soft: rgb(255 200 107 / 12%);
  --focus: #8fd8ff;

  --paper: #f6f7f2;
  --paper-ink: #15191e;
  --paper-muted: #687078;
  --paper-rule: #c6c9c0;

  --font-display: "Unbounded", "IBM Plex Sans", "Noto Sans Sinhala", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-si: "Noto Sans Sinhala", "IBM Plex Sans", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.3rem + 3vw, 3.45rem);

  --radius: 16px;
  --wrap: 1200px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(70 200 255 / 10%), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgb(60 240 168 / 9%), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

/* the faint blueprint grid behind every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(148 180 220 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 180 220 / 5%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

html[lang="si"] body {
  line-height: 1.8;
}

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

a {
  color: var(--mint);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(60 240 168 / 30%);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3 {
  font-family: var(--font-si);
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 28px;
  }
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

html[lang="si"] .eyebrow {
  font-family: var(--font-si);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.grad {
  background: linear-gradient(100deg, var(--mint) 0%, #9dffd6 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--panel-solid);
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus {
  left: 8px;
}

#net {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* ---- header ------------------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(5 8 16 / 62%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand .logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgb(230 30 40 / 30%));
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: rgb(148 180 220 / 9%);
}

.header-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-toggle,
.menu-toggle {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  background: rgb(148 180 220 / 7%);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  min-height: 38px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-toggle:hover,
.menu-toggle:hover {
  border-color: var(--mint);
  box-shadow: 0 0 18px rgb(60 240 168 / 20%);
}

.menu-toggle {
  display: none;
  border-radius: 10px;
  padding: 6px 9px;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgb(8 14 26 / 96%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 8px;
    border-radius: 8px;
  }

  .header-tools {
    margin-left: auto;
  }
}

/* ---- buttons ----------------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 50px;
  transition: transform 0.2s, box-shadow 0.25s, background-color 0.2s, border-color 0.2s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, #5cf7bb, var(--mint-2));
  color: var(--mint-ink);
  box-shadow: 0 6px 24px rgb(60 240 168 / 28%), inset 0 1px 0 rgb(255 255 255 / 40%);
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgb(60 240 168 / 42%), inset 0 1px 0 rgb(255 255 255 / 40%);
}

.btn-ghost {
  background: rgb(148 180 220 / 6%);
  color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--mint);
  box-shadow: 0 0 22px rgb(60 240 168 / 18%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- hero ---------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding: 84px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 40px;
  }
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  margin: 18px 0 22px;
  line-height: 1.04;
}

html[lang="si"] .hero h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
}

.hero h1 .line {
  display: block;
}

.hero .lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 33em;
  margin-bottom: 30px;
}

.trial-note {
  margin-top: 20px;
  font-size: var(--step--1);
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.trial-note .icon {
  color: var(--mint);
}

/* the live counter console */
.console-stage {
  position: relative;
  perspective: 1400px;
  display: flex;
  justify-content: center;
  padding-bottom: 120px;
}

.console-stage::before {
  content: "";
  position: absolute;
  inset: 10% 5% 25%;
  background: radial-gradient(closest-side, rgb(60 240 168 / 28%), rgb(70 200 255 / 10%) 60%, transparent);
  filter: blur(30px);
  z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.6;
    transform: scale(1.06);
  }
}

.console {
  --rx: 8deg;
  --ry: -14deg;
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(24 36 60 / 92%), rgb(10 16 30 / 94%));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%), 0 0 0 1px rgb(60 240 168 / 10%), inset 0 1px 0 rgb(255 255 255 / 6%);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  font-size: 0.85rem;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.console-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3a55;
}

.console-bar i:nth-child(1) {
  background: #ff6b6b;
}

.console-bar i:nth-child(2) {
  background: var(--amber);
}

.console-bar i:nth-child(3) {
  background: var(--mint);
}

.console-bar .title {
  margin-left: 8px;
  color: var(--ink);
}

.console-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
}

.console-bar .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.console-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

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

.kpi {
  background: rgb(148 180 220 / 5%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpi.hot b {
  color: var(--mint);
  text-shadow: 0 0 14px rgb(60 240 168 / 45%);
}

.bars {
  height: 74px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px 10px 0;
  border-radius: 12px;
  background:
    linear-gradient(rgb(148 180 220 / 7%) 1px, transparent 1px) 0 0 / 100% 18.5px,
    rgb(148 180 220 / 3%);
  border: 1px solid var(--line);
}

.bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--mint), rgb(60 240 168 / 25%));
  height: var(--h, 40%);
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bars i:last-child {
  background: linear-gradient(180deg, var(--cyan), rgb(70 200 255 / 25%));
  box-shadow: 0 0 14px rgb(70 200 255 / 45%);
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  height: 152px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  mask-image: linear-gradient(#000 70%, transparent);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
}

.feed li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgb(148 180 220 / 5%);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}

.feed li .tag {
  flex: none;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--mint);
  background: var(--mint-soft);
  letter-spacing: 0.06em;
}

.feed li .tag.c {
  color: var(--cyan);
  background: rgb(70 200 255 / 12%);
}

.feed li .tag.a {
  color: var(--amber);
  background: var(--amber-soft);
}

.feed li .txt {
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed li.new {
  animation: feed-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
    background: rgb(60 240 168 / 20%);
  }
}

/* the receipt comes out of the console's printer slot */
.receipt {
  position: absolute;
  left: 50%;
  bottom: -128px;
  width: 232px;
  translate: -12% 0;
  transform: translateZ(40px) rotate(-3deg);
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  padding: 14px 16px 22px;
  box-shadow: 0 20px 40px rgb(0 0 0 / 50%);
  --tooth: 8px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  animation: print-out 2.2s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes print-out {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.receipt .r-head {
  text-align: center;
  border-bottom: 1px dashed var(--paper-rule);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.receipt .r-head strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.receipt ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.receipt li {
  display: flex;
  gap: 5px;
  align-items: baseline;
}

.receipt li .dots {
  flex: 1;
  border-bottom: 1px dotted var(--paper-rule);
  transform: translateY(-3px);
  min-width: 8px;
}

.receipt .r-total {
  border-top: 1px dashed var(--paper-rule);
  margin-top: 6px;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.78rem;
}

.receipt .r-foot {
  margin-top: 8px;
  text-align: center;
  font-size: 0.58rem;
  color: var(--paper-muted);
}

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

  .kpi:nth-child(3) {
    display: none;
  }

  .console {
    --rx: 0deg;
    --ry: 0deg;
  }

  .receipt {
    translate: -50% 0;
  }
}

/* ---- stats strip --------------------------------------------------------------------------------- */

.stats {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgb(60 240 168 / 5%), transparent);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  padding: 26px 8px;
  display: grid;
  gap: 4px;
  text-align: center;
}

.stat b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ---- sections ------------------------------------------------------------------------------------ */

.section {
  position: relative;
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 46em;
}

.section-head h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

.section-head p {
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* the small mint label above a heading keeps its own look (it is a <p> too) */
.section-head .eyebrow {
  color: var(--mint);
  font-size: 0.78rem;
}

html[lang="si"] .section-head .eyebrow {
  font-size: 0.95rem;
}

/* glass panels with a light that follows the pointer */
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  isolation: isolate;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgb(60 240 168 / 10%), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.glass:hover {
  border-color: rgb(60 240 168 / 35%);
}

.glass:hover::before {
  opacity: 1;
}

/* on-sale programs */
.featured {
  display: grid;
  gap: 22px;
}

@media (min-width: 880px) {
  .featured {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 40%), 0 0 40px rgb(60 240 168 / 8%);
}

.feature-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: linear-gradient(160deg, rgb(60 240 168 / 18%), rgb(70 200 255 / 6%));
  border: 1px solid rgb(60 240 168 / 30%);
  box-shadow: 0 0 24px rgb(60 240 168 / 15%), inset 0 1px 0 rgb(255 255 255 / 8%);
}

.app-icon .icon {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.feature-card > p {
  color: var(--ink-2);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--ink-2);
}

.ticks .icon {
  color: var(--mint);
  margin-top: 3px;
  width: 1.05em;
  height: 1.05em;
  filter: drop-shadow(0 0 6px rgb(60 240 168 / 50%));
}

.feature-card .btn-row {
  margin-top: auto;
  padding-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.chip-now {
  background: var(--mint-soft);
  color: var(--mint);
  border-color: rgb(60 240 168 / 30%);
}

.chip-now::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}

.chip-soon {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgb(255 200 107 / 25%);
}

/* all programs */
.programs {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.program {
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  align-content: start;
}

.program .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  grid-row: span 3;
  color: var(--ink-2);
  background: rgb(148 180 220 / 6%);
  border-color: var(--line-2);
  box-shadow: none;
}

.program.now .app-icon {
  color: var(--mint);
  background: linear-gradient(160deg, rgb(60 240 168 / 18%), rgb(70 200 255 / 6%));
  border-color: rgb(60 240 168 / 30%);
}

.program .app-icon .icon {
  width: 22px;
  height: 22px;
}

.program h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.program p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.program .chip {
  justify-self: start;
  margin-top: 8px;
}

.program a.more {
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
}

/* the whole card opens the program's page */
.program a.more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.program:has(a.more):hover {
  transform: translateY(-3px);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* why G-SOFT: a bento grid */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.bento > div {
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.bento .icon {
  width: 30px;
  height: 30px;
  color: var(--mint);
  filter: drop-shadow(0 0 10px rgb(60 240 168 / 45%));
}

.bento h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.bento p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* how to start: a real sequence, joined by a glowing line */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  position: relative;
}

@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mint), var(--cyan), transparent);
    opacity: 0.5;
    box-shadow: 0 0 14px rgb(60 240 168 / 50%);
  }
}

.steps li {
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.steps .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--mint-ink);
  background: radial-gradient(circle at 30% 30%, #9dffd6, var(--mint) 60%, var(--mint-2));
  box-shadow: 0 0 0 6px rgb(60 240 168 / 12%), 0 0 28px rgb(60 240 168 / 45%);
}

.steps h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.steps p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.callout {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--ink);
  background: linear-gradient(90deg, rgb(60 240 168 / 14%), rgb(70 200 255 / 6%));
  border: 1px solid rgb(60 240 168 / 28%);
}

.callout .icon {
  color: var(--mint);
  margin-top: 3px;
}

/* contact: the big panel with a turning glow border */
.cta-panel {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: conic-gradient(from var(--angle), rgb(148 180 220 / 14%) 0deg, var(--mint) 60deg, var(--cyan) 120deg, rgb(148 180 220 / 14%) 180deg, rgb(148 180 220 / 14%) 360deg);
  animation: spin 7s linear infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}

.cta-panel > .inner {
  border-radius: 22px;
  background: linear-gradient(160deg, #0d1729, #070c17);
  padding: clamp(22px, 4vw, 48px);
  display: grid;
  gap: 28px;
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.contact-card {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
}

a.contact-card:hover {
  transform: translateY(-3px);
}

.contact-card .icon {
  width: 24px;
  height: 24px;
  color: var(--mint);
  margin-top: 2px;
}

.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---- scroll reveal (only when the script runs; without it everything simply shows) ----------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s, 0s;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal.in.feature-card:hover {
  transform: translateY(-4px);
}

.js .reveal.in.contact-card:hover {
  transform: translateY(-3px);
}

/* ---- product page ------------------------------------------------------------------------------ */

.page-hero {
  position: relative;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -200px;
  top: -320px;
  background: radial-gradient(closest-side, rgb(60 240 168 / 22%), rgb(70 200 255 / 8%) 55%, transparent);
  filter: blur(20px);
  z-index: -1;
}

.page-hero .wrap {
  display: grid;
  gap: 18px;
}

.crumbs {
  font-size: var(--step--1);
  color: var(--muted);
  font-family: var(--font-mono);
}

.crumbs a {
  color: var(--muted);
}

.page-hero h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  font-weight: 700;
}

.page-hero .lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 40em;
}

.page-hero .title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.group {
  padding: 26px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.group header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.group header .icon {
  width: 26px;
  height: 26px;
  color: var(--mint);
  filter: drop-shadow(0 0 10px rgb(60 240 168 / 45%));
}

.group h3 {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.group .ticks {
  font-size: 0.95rem;
}

.facts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
}

.facts div {
  padding: 20px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mint);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.cta-band {
  display: grid;
  gap: 20px;
}

@media (min-width: 880px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cta-band h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

.cta-band p {
  color: var(--ink-2);
  margin-top: 8px;
}

/* ---- legal pages ------------------------------------------------------------------------------- */

.prose {
  max-width: 46em;
  padding: 56px 0 80px;
}

.prose h1 {
  font-size: var(--step-3);
  font-weight: 700;
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-size: 1rem;
  margin: 22px 0 8px;
  font-family: var(--font-body);
  letter-spacing: 0;
  color: var(--mint);
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose b {
  color: var(--ink);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
}

.prose li::marker {
  color: var(--mint);
}

.prose .updated {
  color: var(--muted);
  font-size: var(--step--1);
  font-family: var(--font-mono);
}

.lang-only-en {
  display: none;
  font-size: var(--step--1);
  color: var(--muted);
}

html[lang="si"] .lang-only-en {
  display: block;
}

/* ---- footer ------------------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: var(--step--1);
  background: rgb(5 8 16 / 70%);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint);
}

.site-footer .credit {
  font-family: var(--font-mono);
  color: var(--mint);
  opacity: 0.8;
}

/* ---- no motion when asked ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .console {
    --rx: 0deg;
    --ry: 0deg;
  }

  #net {
    display: none;
  }
}

/* ---- user manual (help/…) --------------------------------------------------------------------- */

/* English / Sinhala blocks that carry markup: the one for the page's language shows */
.t-si {
  display: none;
}

html[lang="si"] .t-si {
  display: revert;
}

html[lang="si"] .t-en {
  display: none;
}

.guide-home {
  display: grid;
  gap: 44px;
}

.guide-group h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.guide-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.guide-card:hover {
  transform: translateY(-3px);
}

.guide-card b {
  font-size: 1.05rem;
}

.guide-card span {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.guide-card em {
  font-style: normal;
  color: var(--mint);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}

.guide {
  display: grid;
  gap: 48px;
  max-width: 1080px;
}

.guide-step {
  display: grid;
  gap: 16px;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

html[lang="si"] .step-no {
  font-family: var(--font-si);
  letter-spacing: 0;
  text-transform: none;
}

.guide-step figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgb(0 0 0 / 45%);
  background: #fff;
}

.guide-step figure img {
  width: 100%;
  height: auto;
}

.howto {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 70ch;
}

.howto b {
  color: var(--ink);
}

.howto li::marker {
  color: var(--mint);
}

/* the (1) (2) numbers in the text, matching the green badges in the pictures */
.howto .n {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: #10c27c;
  color: #05261a;
  font-weight: 700;
  font-size: 0.82em;
  vertical-align: 0.08em;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
