/* Salama Labs landing: dark only. Aurora-green rain, violet-white lightning, macOS glass controls, a Linux shell. */
:root {
  --bg: #040607;
  --ink: #e2ebe6;
  --muted: #93a39b;
  --faint: #76857e;
  --green: #46f2a0;
  --volt: #b3a3ff;
  --amber: #ffc24b;
  --err: #ff7b72;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
::selection { background: rgba(70, 242, 160, .3); color: #fff; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── background: rain, a shade over it, lightning, the flash ── */
#rain, #bolt { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; pointer-events: none; }
#rain { z-index: 0; opacity: .5; transition: opacity .6s var(--ease); }
#rain.off { opacity: .12; }
.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(75% 60% at 50% 35%, rgba(4, 6, 7, .84) 0%, rgba(4, 6, 7, .55) 55%, rgba(4, 6, 7, .28) 100%);
}
#bolt { z-index: 2; }
#flash {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at var(--fx, 50%) 0%, rgba(214, 206, 255, .9), rgba(140, 120, 255, .25) 45%, transparent 75%);
}
main, .foot { position: relative; z-index: 5; }

/* ── glass (macOS 26 style) ── */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 12px 32px rgba(0, 0, 0, .45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(16, 22, 20, .94); }
}

/* ── top bar ── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 12px 16px; pointer-events: none; }
.bar {
  pointer-events: auto; max-width: 980px; margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 8px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 2px; border-radius: 999px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.brand-mark.sm { width: 22px; height: 22px; }
.wordmark { font: 700 16px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.wordmark span { margin-left: .5em; color: var(--muted); font-weight: 500; }
.bar-links { display: flex; gap: 2px; margin-left: auto; }
.bar-links a {
  color: var(--muted); text-decoration: none; font: 500 14px/1 var(--sans);
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.bar-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.bar-end { display: flex; align-items: center; gap: 12px; margin-left: 6px; padding-right: 6px; flex: none; }
.beta {
  font: 700 11px/1 var(--mono); letter-spacing: .12em; color: #1b1300; padding: 6px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd56e, #ffb428);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 18px rgba(255, 194, 75, .25);
}
@media (max-width: 720px) {
  .bar-links { display: none; }
  .bar-end { margin-left: auto; }
}
/* ── buttons (macOS 26 glass) ── */
.btn {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -.01em; color: var(--ink); text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 1px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform .45s var(--spring), box-shadow .25s, background .25s, color .25s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .25s;
  background: radial-gradient(130px 90px at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 70%);
}
.btn::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 52%);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(1.045); }
.btn .i { width: 17px; height: 17px; }
.btn-tint {
  color: #03140b; border-color: rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #7dffc2 0%, #46f2a0 55%, #2fd087 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -1px 1px rgba(0, 0, 0, .18), 0 8px 26px rgba(70, 242, 160, .28), 0 2px 6px rgba(0, 0, 0, .4);
}
.btn-tint:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -1px 1px rgba(0, 0, 0, .18), 0 10px 34px rgba(70, 242, 160, .42), 0 2px 6px rgba(0, 0, 0, .4); }
.btn[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ── hero ── */
.hero {
  min-height: 100vh; min-height: 100svh; max-width: 880px; margin: 0 auto; padding: 112px 16px 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative;
}
.app-icon {
  width: 112px; height: 112px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 28px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(139, 119, 255, .22));
  transition: transform .5s var(--spring);
}
.app-icon svg { display: block; width: 100%; height: 100%; }
.app-icon:hover { transform: translateY(-3px) rotate(-3deg) scale(1.03); }
.app-icon:active { transform: scale(.95); }
.app-icon:focus-visible { outline-offset: 6px; border-radius: 28px; }
.app-icon.zap { animation: zap .6s var(--ease); }
@keyframes zap {
  0% { transform: scale(1); filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(139, 119, 255, .22)) brightness(1); }
  25% { transform: scale(1.08); filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px rgba(190, 175, 255, .8)) brightness(1.5); }
  100% { transform: scale(1); filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(139, 119, 255, .22)) brightness(1); }
}
.icon-cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip {
  display: inline-flex; align-items: center; gap: 9px; margin: 30px 0 0; padding: 7px 14px 7px 12px; border-radius: 999px;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
  background: rgba(255, 194, 75, .08); border: 1px solid rgba(255, 194, 75, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 75, .55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 194, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 75, 0); }
}
.dict { margin: 18px 0 0; font: 14px/1.4 var(--mono); color: var(--muted); }
.dict b { color: var(--ink); font-weight: 600; }
.dict span { color: var(--faint); }
.dict i { color: var(--green); font-style: normal; }

.headline {
  margin: 14px 0 0; font: 700 clamp(40px, 10vw, 104px)/1.02 var(--mono); letter-spacing: -.05em;
  color: #f3f8f5; text-shadow: 0 0 32px rgba(70, 242, 160, .18);
}
.caret {
  display: inline-block; width: .5em; height: .8em; margin-left: .1em; vertical-align: -.04em;
  background: var(--green); box-shadow: 0 0 18px rgba(70, 242, 160, .5); animation: blink 1.1s steps(1) infinite;
}
.lede { margin: 24px auto 0; max-width: 610px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.note { margin: 14px 0 0; font: 13px/1.5 var(--mono); color: var(--faint); }
.cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font: 12px/1 var(--mono); letter-spacing: .1em; color: var(--faint); text-decoration: none;
}
.cue span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (max-height: 700px) { .cue { display: none; } }

/* ── the shell window (macOS window, Linux inside) ── */
.shell-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; }
.window {
  border-radius: 22px; overflow: hidden; background: rgba(7, 11, 10, .8);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 .5px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.window.shake { animation: shake .42s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.titlebar {
  position: relative; height: 44px; display: flex; align-items: center; padding: 0 16px; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lights { position: relative; z-index: 1; display: flex; gap: 8px; }
.lights button {
  position: relative; width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3);
}
.lights button::after {
  content: ""; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 10px/13px var(--sans); color: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .15s;
}
.l-close { background: #ff5f57; }
.l-min { background: #febc2e; }
.l-zoom { background: #28c840; }
.l-close::after { content: "×"; }
.l-min::after { content: "−"; }
.l-zoom::after { content: "+"; }
.lights:hover button::after, .lights button:focus-visible::after { opacity: 1; }
.lights button:focus-visible { outline-offset: 2px; }
.win-title { position: absolute; left: 0; right: 0; text-align: center; font: 600 13px/44px var(--sans); color: var(--muted); pointer-events: none; }
.screen {
  height: 360px; overflow: auto; padding: 16px 18px 20px; cursor: text;
  font: 14px/1.6 var(--mono); color: #cfe6da;
  transition: height .45s var(--ease), padding .45s var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.window.max .screen { height: min(70vh, 640px); }
.window.min .screen { height: 0; padding-top: 0; padding-bottom: 0; }
.ln { min-height: 1.6em; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln.pre { white-space: pre; overflow-wrap: normal; }
.prompt { display: flex; align-items: baseline; gap: .6em; }
.ps1 { flex: none; white-space: nowrap; color: var(--ink); }
.ps1 .u { color: var(--green); }
.ps1 .p { color: var(--volt); }
#cmd {
  flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit; caret-color: var(--green);
}
@media (pointer: coarse) { #cmd { font-size: 16px; } }
@media (max-width: 600px) { .screen { font-size: 13px; height: 340px; padding: 14px 14px 18px; } }
.c-g { color: var(--green); }
.c-v { color: var(--volt); }
.c-a { color: var(--amber); }
.c-e { color: var(--err); }
.c-m { color: var(--muted); }
.c-f { color: var(--faint); }
.c-w { color: #fff; font-weight: 600; }
.swatch { display: inline-block; width: 1.6em; height: 1em; margin-right: 3px; vertical-align: -.15em; border-radius: 3px; }
.hint { margin: 14px 0 0; text-align: center; font: 13px/1.5 var(--mono); color: var(--faint); }
kbd {
  font: 600 12px var(--mono); color: var(--ink); padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-bottom-width: 2px;
}

/* ── sections ── */
.section { max-width: 1060px; margin: 0 auto; padding: 72px 16px; }
.head { max-width: 660px; margin: 0 auto 36px; text-align: center; }
.kicker { margin: 0; font: 600 13px/1 var(--mono); letter-spacing: .04em; color: var(--green); }
.section h2, .access h2 { margin: 12px 0 0; font: 700 clamp(28px, 5vw, 44px)/1.1 var(--mono); letter-spacing: -.04em; color: #f1f7f3; }
.sub { margin: 14px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: 22px 22px 24px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .45s var(--spring), border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px 160px at var(--mx) var(--my), rgba(70, 242, 160, .11), transparent 70%);
}
.card:hover { transform: translateY(-3px); border-color: rgba(70, 242, 160, .28); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; font: 600 12px/1 var(--mono); color: var(--faint); }
.card .i { width: 26px; height: 26px; color: var(--green); }
.card h3 { margin: 18px 0 0; font: 600 18px/1.3 var(--sans); letter-spacing: -.01em; color: #eef5f1; }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

.panel {
  max-width: 640px; margin: 0 auto; padding: 20px 26px; border-radius: 20px;
  background: rgba(7, 11, 10, .74); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.road { list-style: none; margin: 0; padding: 0; font: 15px/1.5 var(--mono); }
.road li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 11px 0; color: var(--muted); border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.road li:last-child { border-bottom: 0; }
.road .box { flex: none; color: var(--faint); }
.road .done { color: var(--ink); }
.road .done .box { color: var(--green); }
.road .now { color: #fff; }
.road .now .box { color: var(--amber); }
.road em { margin-left: auto; font-size: 13px; font-style: normal; color: var(--amber); animation: here 1.6s ease-in-out infinite; }
@keyframes here { 50% { opacity: .45; } }

.access {
  max-width: 720px; margin: 0 auto; padding: 44px 28px; border-radius: 28px; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(70, 242, 160, .08), rgba(7, 11, 10, .8) 55%);
  border: 1px solid rgba(255, 255, 255, .11);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.access .big { width: 40px; height: 40px; color: var(--amber); }
.access p { max-width: 520px; margin: 14px auto 0; color: var(--muted); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.mail {
  max-width: 100%; overflow-wrap: anywhere; padding: 10px 16px; border-radius: 999px; user-select: all;
  font: 600 15px/1.2 var(--mono); color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1);
}

/* ── footer ── */
.foot { padding: 32px 16px 40px; border-top: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(180deg, transparent, rgba(4, 6, 7, .92)); }
.foot-in {
  max-width: 1060px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; font: 13px/1.5 var(--mono); color: var(--faint);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); }
.foot i { font-style: normal; color: var(--green); }

/* ── notifications (macOS) ── */
.toasts {
  position: fixed; z-index: 40; top: 76px; right: 16px; width: min(360px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast { pointer-events: auto; display: flex; gap: 12px; padding: 12px 14px; border-radius: 22px; cursor: default; animation: toast-in .55s var(--spring) both; }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
.toast svg { width: 38px; height: 38px; flex: none; }
.toast-body { flex: 1; min-width: 0; }
.toast-head { display: flex; justify-content: space-between; gap: 8px; font: 600 13px/1.3 var(--sans); color: var(--ink); }
.toast-head span { font-weight: 400; color: var(--muted); }
.toast-text { margin-top: 2px; font: 13.5px/1.4 var(--sans); color: #c9d6cf; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.96); } }

/* ── reveal on scroll ── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity .8s var(--ease), transform .45s var(--spring), border-color .3s; }
.js .card.reveal.in:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
