:root {
  --bg: #0c1016;
  --surface: #151b24;
  --surface-2: #1a2230;
  --line: rgba(140, 160, 190, 0.16);
  --text: #e8eef8;
  --muted: #8b96a8;
  --accent: #3ba0ff;
  --accent-2: #6ec8ff;
  --ok: #5ecf8e;
  --warn: #d7b05a;
  --danger: #e57373;
  --radius: 12px;
  --space: 1.25rem;
  --font: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-glow-a: #6ec8ff;
  --logo-glow-b: #3ba0ff;
  --logo-glow-c: #1a7a5c;
  --logo-face-a: #1a2433;
  --logo-face-b: #0f151e;
  --logo-arc: #7dffc4;
  --logo-needle: #e8eef8;
  --logo-tip: #3dff9a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  background:
    radial-gradient(720px 380px at 90% 0%, rgba(59, 160, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #101621 0%, var(--bg) 55%);
  color-scheme: dark;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: page-in 0.9s var(--ease) both;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  animation: page-in 0.75s var(--ease) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-mark-tilt {
  transform: rotate(-8deg);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark-tilt {
  transform: rotate(4deg) scale(1.06);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  line-height: 1.1;
}

.brand-name {
  display: flex;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mellto {
  color: #d7deea;
  font-weight: 600;
}

.brand-tune {
  margin-left: 2px;
  background: linear-gradient(120deg, #7ed0ff, #3ba0ff 50%, #3dff9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.brand-sub {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8699;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(8, 16, 30, 0.25);
}

.nav-account {
  color: #9fd0ff !important;
  background: rgba(59, 160, 255, 0.12);
}

.nav-label-user {
  display: none;
}

html.auth-on .nav-label-guest {
  display: none;
}

html.auth-on .nav-label-user {
  display: inline;
}

html.auth-on #account-guest,
html.auth-on #buy-logged-out,
html.auth-on #download-logged-out,
html.auth-on #manage-logged-out {
  display: none !important;
}

html.auth-on #account-signed-in[hidden] {
  display: grid !important;
}

html.auth-on #download-logged-in[hidden] {
  display: grid !important;
}

html.auth-on #manage-logged-in[hidden] {
  display: block !important;
}

.home {
  flex: 1;
  display: grid;
  gap: 2.5rem;
  padding: 0.5rem 0 1.5rem;
}

.page {
  flex: 1;
  display: grid;
  gap: 1.75rem;
  padding: 0.75rem 0 1.5rem;
  width: 100%;
  align-content: start;
}

.page-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.35rem 0 0.25rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.05;
}

.page-hero .lead {
  margin: 0.25rem 0 0;
  max-width: 38rem;
  text-align: center;
}

.page-body {
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: 100%;
}

.page-body > .panel,
.page-body > .form,
.page-body > .flash,
.page-body > .page-stack {
  width: min(34rem, 100%);
}

.page-stack {
  display: grid;
  gap: 0.9rem;
}

.page-stack .panel,
.page-stack .form {
  width: 100%;
  max-width: none;
}

.page-aside {
  width: min(720px, 100%);
}

.page-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(720px, 100%);
}

.admin-page .page-body {
  width: min(860px, 100%);
}

.admin-body {
  gap: 1.1rem !important;
}

.admin-key-panel,
.admin-overview-panel {
  width: 100% !important;
  max-width: none !important;
}

.admin-status-grid,
.admin-panels,
.admin-overview-grid {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.admin-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.admin-toggle-card {
  text-align: left;
}

.admin-toggle-card.is-blocked {
  border-color: rgba(229, 115, 115, 0.45);
  background: linear-gradient(160deg, rgba(229, 115, 115, 0.12), var(--surface) 55%);
}

.admin-switch {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #2a3342;
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s;
}

.admin-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d7deea;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.admin-switch input:checked + .admin-switch-ui {
  background: rgba(229, 115, 115, 0.35);
  border-color: rgba(229, 115, 115, 0.55);
}

.admin-switch input:checked + .admin-switch-ui::after {
  transform: translateX(20px);
  background: #ff9b9b;
}

.admin-switch-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.admin-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.admin-stat h3 {
  font-size: 1.35rem;
}

.admin-chip-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.admin-chip {
  border: 1px solid var(--line);
  background: #121821;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.admin-chip:hover {
  color: var(--text);
  border-color: rgba(59, 160, 255, 0.4);
  transform: translateY(-1px);
}

.admin-chip.is-danger {
  border-color: rgba(229, 115, 115, 0.4);
  color: #ff9b9b;
}

.admin-json {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e131a;
  color: var(--muted);
  white-space: pre-wrap;
  max-height: 22rem;
  overflow: auto;
  font-size: 0.78rem;
  text-align: left;
}

@media (max-width: 860px) {
  .admin-status-grid,
  .admin-panels,
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

.admin-remember {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-remember input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.nav a[aria-current="page"] {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 0.25rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 160, 255, 0.28);
  background: linear-gradient(90deg, rgba(59, 160, 255, 0.12), rgba(61, 255, 154, 0.08));
  color: #9bb8d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-brand .brand-mellto {
  color: var(--text);
}

.hero p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-visual {
  position: relative;
  width: min(100%, 420px);
  justify-self: end;
  display: grid;
  place-items: center;
}

.app-window {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(140, 160, 190, 0.22);
  background: linear-gradient(180deg, #151b24 0%, #0e131a 100%);
  box-shadow:
    0 24px 48px rgba(4, 10, 20, 0.55),
    0 0 0 1px rgba(59, 160, 255, 0.08);
  overflow: hidden;
  transform: rotate(-2deg);
  animation: app-float 5s var(--ease) infinite alternate;
}

.app-window-hero {
  max-width: 420px;
}

.app-window-wide {
  max-width: 720px;
  margin: 0 auto;
  transform: rotate(0deg);
  animation: none;
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #121821;
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4556;
}

.app-dot:nth-child(1) { background: #e57373; }
.app-dot:nth-child(2) { background: #d7b05a; }
.app-dot:nth-child(3) { background: #5ecf8e; }

.app-chrome-title {
  margin-left: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.app-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 220px;
}

.app-rail {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 0.7rem 0.45rem;
  border-right: 1px solid var(--line);
  background: #10161f;
}

.app-rail-item {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.app-rail-item.is-active {
  color: #9fd0ff;
  background: rgba(59, 160, 255, 0.14);
}

.app-pane {
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.app-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #161c26;
}

.app-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #3ba0ff 0 72%, #3dff9a 72% 86%, rgba(255,255,255,0.08) 86% 100%);
  mask: radial-gradient(circle 18px, transparent 98%, #000 100%);
  -webkit-mask: radial-gradient(circle 18px, transparent 98%, #000 100%);
  flex: 0 0 auto;
  animation: ring-spin 8s linear infinite;
}

.app-index-copy {
  display: grid;
  gap: 0.1rem;
}

.app-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.app-index-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.app-index-copy span {
  color: var(--muted);
  font-size: 0.75rem;
}

.app-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.app-strip span {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 160, 255, 0.25);
  background: rgba(59, 160, 255, 0.08);
  color: #9fd0ff;
  font-size: 0.68rem;
  font-weight: 650;
}

.app-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.app-quick div {
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #161c26;
  display: grid;
  gap: 0.15rem;
}

.app-quick b {
  font-size: 0.74rem;
}

.app-quick small {
  color: var(--muted);
  font-size: 0.64rem;
}

.app-pane-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.app-module-grid article {
  padding: 0.7rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #161c26;
  display: grid;
  gap: 0.2rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.app-module-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 160, 255, 0.4);
  box-shadow: 0 10px 20px rgba(8, 16, 30, 0.35);
}

.app-module-grid article.is-accent {
  border-color: rgba(61, 255, 154, 0.35);
  background: linear-gradient(160deg, rgba(61, 255, 154, 0.1), #161c26 60%);
}

.app-module-grid b {
  font-size: 0.78rem;
}

.app-module-grid span {
  color: var(--muted);
  font-size: 0.68rem;
}

.product {
  display: grid;
  gap: 1.1rem;
}

.product-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.product-copy .lead {
  margin: 0;
}

.features {
  display: grid;
  gap: 1rem;
}

.features-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.features-head .lead {
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature {
  padding: 1.1rem 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 160, 255, 0.4);
  box-shadow: 0 14px 28px rgba(8, 16, 30, 0.35);
}

.feature-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  text-decoration: none;
}

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

.btn-primary {
  background: var(--accent);
  color: #041018;
  box-shadow: 0 8px 20px rgba(30, 90, 160, 0.25);
}

.btn-primary:hover {
  background: #54abff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(59, 160, 255, 0.4);
  background: rgba(59, 160, 255, 0.08);
}

.btn-inline {
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  margin-left: 0.45rem;
  font-size: 0.78rem;
  vertical-align: baseline;
}

.steps {
  display: grid;
  gap: 1rem;
}

.steps-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.steps-head .lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1.15rem;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
  transform: rotate(var(--tilt, 0deg));
}

.step:nth-child(1) { --tilt: -0.6deg; }
.step:nth-child(2) { --tilt: 0.5deg; }
.step:nth-child(3) { --tilt: -0.4deg; }
.step:nth-child(4) { --tilt: 0.7deg; }

.step:hover {
  border-color: rgba(59, 160, 255, 0.4);
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 18px 34px rgba(8, 16, 30, 0.4);
}

.step-num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.faq {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.faq-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item:hover {
  transform: translateY(-4px);
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(59, 160, 255, 0.45);
}

.faq-item[open] {
  box-shadow: 0 14px 28px rgba(8, 16, 30, 0.32);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.35;
  user-select: none;
  transition: background 0.2s var(--ease);
}

.faq-item summary:hover {
  background: rgba(59, 160, 255, 0.06);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.25rem;
  text-align: center;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 42rem;
  animation: answer-in 0.55s var(--ease) both;
}

.section {
  padding: 2.5rem 0 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.section .lead,
.section .flash,
.section .panel,
.section .form,
.section .note {
  margin-left: auto;
  margin-right: auto;
}

.section .cta-row,
.section .tabs {
  justify-content: center;
}

.section .panel,
.section .form,
.section .legal {
  text-align: left;
  width: 100%;
}

.page-body .panel,
.page-body .form,
.page-body .legal {
  text-align: left;
}

.page-body .price {
  text-align: center;
}

.section .price {
  text-align: center;
}

.lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  max-width: 34rem;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.panel:hover {
  border-color: rgba(59, 160, 255, 0.42);
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(8, 16, 30, 0.38);
}

.price {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.checklist {
  list-style: none;
  margin: 0.9rem 0 1.2rem;
  padding: 0;
  color: var(--muted);
}

.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.form {
  display: grid;
  gap: 0.85rem;
  max-width: 24rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e131a;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font: inherit;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(59, 160, 255, 0.35);
  border-color: rgba(59, 160, 255, 0.5);
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.flash {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 160, 255, 0.28);
  background: rgba(59, 160, 255, 0.08);
  max-width: 34rem;
  animation: answer-in 0.55s var(--ease) both;
}

.flash.warn {
  border-color: rgba(215, 176, 90, 0.4);
  background: rgba(215, 176, 90, 0.1);
  color: var(--warn);
}

.flash.err {
  border-color: rgba(229, 115, 115, 0.4);
  background: rgba(229, 115, 115, 0.1);
  color: #ff9b9b;
}

.account-card {
  max-width: 32rem;
}

#account-signed-in {
  width: 100%;
  display: grid;
  gap: 0.9rem;
}

.account-email {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.account-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0;
}

.account-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.account-facts > div:last-child {
  border-bottom: none;
}

.account-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.account-facts dd {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
}

#account-hwid {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  word-break: break-all;
}

.account-meta {
  margin: 0 0 1rem;
}

.account-session-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.account-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.account-secondary .note {
  margin: 0 0 0.9rem;
}

.account-secondary .form {
  margin-inline: 0;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.tab.active,
.tab:hover {
  color: #9fd0ff;
  border-color: rgba(59, 160, 255, 0.4);
  background: rgba(59, 160, 255, 0.1);
}

.tab:hover {
  transform: translateY(-1px);
}

.legal {
  max-width: 42rem;
  color: var(--muted);
}

.legal h2 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 1.4rem 0 0.4rem;
}

.footer {
  margin-top: auto;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Footer must stay visible — never leave it stuck in .reveal opacity:0 */
.footer.reveal,
footer.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 0.9s var(--ease) var(--d, 0ms),
    filter 0.9s var(--ease) var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes app-float {
  from { transform: rotate(-2.5deg) translateY(0); }
  to { transform: rotate(-0.5deg) translateY(10px); }
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  from { transform: rotate(-10deg) translateY(0); }
  to { transform: rotate(2deg) translateY(18px); }
}

@keyframes needle {
  from { transform: rotate(-38deg); }
  to { transform: rotate(42deg); }
}

@keyframes gauge-tilt {
  from { transform: rotate(-16deg) scale(1); }
  to { transform: rotate(10deg) scale(1.07); }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .app-window {
    transform: none;
    animation: none;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-points {
    grid-template-columns: 1fr 1fr;
  }

  .app-module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 1.25rem);
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid,
  .step-grid,
  .app-module-grid,
  .app-quick,
  .page-points {
    grid-template-columns: 1fr;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-rail {
    grid-auto-flow: column;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .app-rail-item {
    text-align: center;
    padding: 0.35rem 0.2rem;
    font-size: 0.62rem;
  }
}
