/* ============================================================
   KapitalChat — Unified Dark Theme Stylesheet
   Modern corporate dark theme with green accents
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS VARIABLES
   ---------------------------------------------------------- */

:root {
  /* Core palette — dark premium */
  --bg: #080b0f;
  --bg-deep: #0d1117;
  --bg-elevated: #151b24;
  --ink: #e4ecf4;
  --ink-soft: rgba(190, 208, 226, 0.68);
  --ink-muted: rgba(150, 170, 190, 0.5);

  /* Green accent — slightly deeper, more refined */
  --green: #27b863;
  --green-bright: #4ddb82;
  --green-glow: rgba(39, 184, 99, 0.3);
  --green-deep: #1a7a4e;

  /* Lines & borders — subtler */
  --line: rgba(80, 110, 140, 0.12);
  --line-strong: rgba(100, 140, 175, 0.22);
  --line-green: rgba(77, 219, 130, 0.1);

  /* Shadows — deeper */
  --shadow-glow: 0 0 40px rgba(39, 184, 99, 0.14);
  --shadow-card: 0 24px 56px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 36px 90px rgba(0, 0, 0, 0.38);
  --shadow-tile: 0 12px 32px rgba(0, 0, 0, 0.24);

  /* Functional */
  --danger: #ff8f8f;
  --warn: #ffd692;

  /* Layout */
  --site-max-width: 1240px;
  --site-side-padding: clamp(16px, 3vw, 40px);
  --radius-pill: 999px;
  --radius-card: 1.8rem;
  --radius-tile: 1.65rem;
  --radius-panel: 2.2rem;

  /* Transitions */
  --ease-out: 180ms ease;
  --ease-smooth: 280ms ease;

  /* Parallax */
  --parallax-x: 0;
  --parallax-y: 0;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 20% 16%, rgba(39, 184, 99, 0.04), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(77, 219, 130, 0.03), transparent 26%),
    linear-gradient(138deg, #080b0f 0%, #0d1117 34%, #151b24 68%, #0a0e14 100%);
  background-size: 140% 140%, 150% 150%, 100% 100%;
  animation: backdropShift 22s ease-in-out infinite;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

/* ----------------------------------------------------------
   3. DECORATIVE ELEMENTS & BACKGROUND
   ---------------------------------------------------------- */

/* Page wrapper */
.page {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

/* Decorative grid overlay */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(100, 130, 160, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 130, 160, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* Ambient glow overlay */
.page::after {
  content: "";
  position: absolute;
  inset: -10rem -12rem auto -12rem;
  height: 38rem;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 48% 26%, rgba(39, 184, 99, 0.1), transparent 28%),
    radial-gradient(circle at 60% 36%, rgba(77, 219, 130, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  filter: blur(42px);
  opacity: 0.8;
  transform-origin: 50% 18%;
  animation: ambientFloat 20s ease-in-out infinite;
}

/* Aurora container */
.aurora {
  position: absolute;
  inset: 5.5rem 0 auto;
  height: min(54rem, 84vh);
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  opacity: 0.98;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.92) 72%, transparent 100%);
  transform: translate3d(
    calc(var(--parallax-x, 0) * 10px),
    calc(var(--parallax-y, 0) * 8px),
    0
  );
  transition: transform 120ms linear;
}

.aurora__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: screen;
  opacity: 0.32;
  animation: glowDrift 22s ease-in-out infinite;
}

.aurora__glow--a {
  top: -5rem;
  left: -6rem;
  width: 34rem;
  height: 18rem;
  background: radial-gradient(ellipse at center, rgba(39, 184, 99, 0.14) 0%, rgba(39, 184, 99, 0) 74%);
}

.aurora__glow--b {
  top: 3rem;
  right: -8rem;
  width: 34rem;
  height: 22rem;
  background: radial-gradient(ellipse at center, rgba(77, 219, 130, 0.1) 0%, rgba(77, 219, 130, 0) 74%);
  animation-duration: 24s;
  animation-delay: -8s;
}

.aurora__glow--c {
  left: 22%;
  bottom: 1rem;
  width: 42rem;
  height: 18rem;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 74%);
  animation-duration: 18s;
  animation-delay: -5s;
}

.aurora__svg {
  position: absolute;
  inset: 0 -6%;
  width: 112%;
  height: 100%;
}

.aurora__band,
.aurora__line {
  mix-blend-mode: screen;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.aurora__band--a {
  opacity: 0.78;
  animation: ribbonWaveA 18s ease-in-out infinite;
}

.aurora__band--b {
  opacity: 0.66;
  animation: ribbonWaveB 24s ease-in-out infinite;
}

.aurora__band--c {
  opacity: 0.5;
  animation: ribbonWaveC 20s ease-in-out infinite;
}

.aurora__line--a {
  opacity: 0.38;
  animation: ribbonWaveD 16s ease-in-out infinite;
}

.aurora__line--b {
  opacity: 0.22;
  animation: ribbonWaveE 22s ease-in-out infinite;
}

/* ----------------------------------------------------------
   4. KEYFRAMES
   ---------------------------------------------------------- */

@keyframes backdropShift {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }
  50% {
    background-position: 8% 12%, 92% 18%, 0% 0%;
  }
}

@keyframes ambientFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.76;
  }
  50% {
    transform: translate3d(0, 1.2rem, 0) scale(1.03);
    opacity: 1;
  }
}

@keyframes glowDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.8rem, -1rem, 0) scale(1.08);
  }
}

@keyframes ribbonWaveA {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(1.2rem, -0.7rem, 0) scale(1.03);
    opacity: 0.88;
  }
}

@keyframes ribbonWaveB {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.58;
  }
  50% {
    transform: translate3d(-1.8rem, 1rem, 0) scale(1.05);
    opacity: 0.78;
  }
}

@keyframes ribbonWaveC {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(2.4rem, 0.7rem, 0) scale(1.04);
    opacity: 0.66;
  }
}

@keyframes ribbonWaveD {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(-1.4rem, 0.7rem, 0);
    opacity: 0.48;
  }
}

@keyframes ribbonWaveE {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.18;
  }
  50% {
    transform: translate3d(1.2rem, -0.5rem, 0);
    opacity: 0.34;
  }
}

@keyframes cursorBlink {
  0%, 48% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes previewIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(39, 184, 99, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(39, 184, 99, 0.3);
  }
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 22px rgba(34, 197, 94, 0.20))
      drop-shadow(0 18px 42px rgba(0, 0, 0, 0.35));
  }
  50% {
    filter:
      drop-shadow(0 0 38px rgba(34, 197, 94, 0.34))
      drop-shadow(0 22px 54px rgba(0, 0, 0, 0.42));
  }
}

/* ----------------------------------------------------------
   5. LAYOUT
   ---------------------------------------------------------- */

.shell {
  position: relative;
  width: min(100% - calc(var(--site-side-padding) * 2), var(--site-max-width));
  margin: 0 auto;
  padding: 0.7rem 0 4.8rem;
  z-index: 1;
}

.lower {
  position: relative;
  width: min(100% - calc(var(--site-side-padding) * 2), var(--site-max-width));
  margin: 0 auto;
  padding: 0 0 5rem;
  z-index: 1;
}

/* Hero grid (index) — single column, centered */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding-top: clamp(8px, 1.2vw, 18px);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

/* Hero grid (register pages) */
.hero-register {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}

/* Layout grid (success page) */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}

/* ----------------------------------------------------------
   6. BRANDBAR / TOPBAR
   ---------------------------------------------------------- */

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.98rem 1.08rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(21, 27, 36, 0.88), rgba(21, 27, 36, 0.6)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.2);
}

.brandbar__left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brandbar__logo {
  display: block;
  width: auto;
  height: 1.72rem;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.brandbar__copy {
  min-width: 0;
}

.brandbar__eyebrow {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brandbar__title {
  margin-top: 0.18rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandbar__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.86rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(39, 184, 99, 0.15), rgba(39, 184, 99, 0.06));
  border: 1px solid rgba(77, 219, 130, 0.14);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brandbar__pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0.32rem rgba(39, 184, 99, 0.16);
}

/* Topbar (register pages) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(140deg, rgba(39, 184, 99, 0.3), rgba(13, 17, 23, 0.92));
  border: 1px solid rgba(77, 219, 130, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand__subtitle {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background-color var(--ease-out),
    border-color var(--ease-out),
    color var(--ease-out);
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
  color: var(--ink);
}

/* ----------------------------------------------------------
    7. INTRO / HERO SECTION
    ---------------------------------------------------------- */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  width: 100%;
}

.intro__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 14, 20, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 22px rgba(34, 197, 94, 0.08);
  opacity: 0;
  animation: heroEntrance 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro__kicker-text {
  text-transform: none;
}

.intro__kicker-cursor {
  flex: 0 0 auto;
  width: 0.12rem;
  height: 1.02em;
  border-radius: var(--radius-pill);
  background: currentColor;
  opacity: 1;
}

.intro__kicker.is-blinking .intro__kicker-cursor {
  animation: cursorBlink 1s steps(1, end) infinite;
}

.intro__kicker::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0.36rem rgba(39, 184, 99, 0.12);
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0.36rem rgba(39, 184, 99, 0.12);
  }
  50% {
    box-shadow: 0 0 0 0.56rem rgba(39, 184, 99, 0.22);
  }
}

.intro__stack {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro__small {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  opacity: 0;
  animation: heroEntrance 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

/* Logo in hero section */
.intro__logo {
  display: block;
  margin: 0;
  max-width: clamp(320px, 34vw, 520px);
  filter:
    drop-shadow(0 0 36px rgba(39, 184, 99, 0.25))
    drop-shadow(0 0 72px rgba(39, 184, 99, 0.1))
    drop-shadow(0 14px 32px rgba(0, 0, 0, 0.36));
  opacity: 0;
  animation:
    heroEntrance 700ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both,
    logoGlow 6s ease-in-out 960ms infinite;
}

.intro__logo img {
  display: block;
  width: 100%;
  height: auto;
}


h1 {
  margin: 0.35rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #b8f0d0 44%, var(--green-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

/* Register page h1 override */
.card h1,
.card--intro h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.96;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ink);
  text-shadow: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-height 220ms ease,
    margin 220ms ease;
}

.intro__lead,
.lead {
  max-width: 48rem;
  margin: 1.8rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.45vw, 1.16rem);
  line-height: 1.76;
  letter-spacing: 0.005em;
}

.lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46rem;
}

.intro__lead strong,
.lead strong {
  color: var(--green-bright);
  font-weight: 800;
}

/* Hero card (index) — centered, wider */
.hero-card {
  width: 100%;
  max-width: var(--site-max-width);
  margin-top: clamp(28px, 4vw, 42px);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(13, 17, 23, 0.5);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Kicker (register/success pages) */
.kicker {
  color: var(--green-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   8. CTA / BUTTONS
   ---------------------------------------------------------- */

/* CTA buttons (index) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero-card .cta-row {
  margin-top: 0;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition:
    transform var(--ease-out),
    box-shadow var(--ease-out),
    border-color var(--ease-out),
    background-color var(--ease-out);
}

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

.cta--solid {
  color: #fff;
  border: 1px solid rgba(77, 219, 130, 0.2);
  background:
    linear-gradient(135deg, rgba(39, 184, 99, 0.88) 0%, rgba(26, 122, 78, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 28px rgba(39, 184, 99, 0.18);
}

.cta--solid:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 36px rgba(39, 184, 99, 0.25);
}

.cta--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(21, 27, 36, 0.6);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cta--ghost:hover::after {
  transform: translateX(120%);
}

.cta--ghost:hover {
  border-color: rgba(77, 219, 130, 0.35);
  background: rgba(21, 27, 36, 0.85);
  color: var(--green-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(34, 197, 94, 0.10);
}

.cta:active {
  transform: translateY(0) !important;
}

.hero-card .cta {
  flex: 1 1 0;
  text-align: center;
}

/* Button base (register pages) */
.btn,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 800;
  transition:
    transform var(--ease-out),
    box-shadow var(--ease-out),
    opacity var(--ease-out),
    background-color var(--ease-out);
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
}

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

.btn--solid,
button.btn--solid {
  background: linear-gradient(135deg, rgba(39, 184, 99, 0.95), rgba(26, 122, 78, 0.98));
  color: #f7fff9;
  box-shadow: 0 18px 32px rgba(39, 184, 99, 0.22);
}

.btn--solid:hover,
button.btn--solid:hover {
  box-shadow: 0 22px 40px rgba(39, 184, 99, 0.32);
}

.btn--ghost,
button.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--ghost:hover,
button.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

/* Actions row */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.next-step {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.next-step a,
.next-step button {
  flex: 0 0 auto;
}

/* ----------------------------------------------------------
   9. APPS SECTION
   ---------------------------------------------------------- */

.apps-section {
  position: relative;
  width: 100%;
  margin-top: 0;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.apps-section .section-inner {
  width: 100%;
}

.section-title {
  margin: 0 0 24px;
  text-align: center;
  color: #f8fafc;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-title span {
  color: #22c55e;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.22);
}

.apps-panel {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(10, 20, 28, 0.36) 0%,
      rgba(7, 14, 20, 0.24) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 18px 50px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.apps-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(34, 197, 94, 0.07),
      transparent 48%
    );
  opacity: 0.7;
}

.apps-panel > * {
  position: relative;
  z-index: 1;
}

/* Card (register pages) */
.card {
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 27, 36, 0.92), rgba(13, 17, 23, 0.97));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

/* ----------------------------------------------------------
   10. APP CARDS / GRID
   ---------------------------------------------------------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  padding: 26px 24px 24px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(17, 31, 39, 0.96) 0%,
      rgba(10, 20, 28, 0.97) 48%,
      rgba(7, 14, 20, 0.98) 100%
    );
  border: 1px solid rgba(34, 197, 94, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 60px rgba(0, 0, 0, 0.24);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.018) 32%,
      rgba(0, 0, 0, 0.08) 100%
    );
  opacity: 1;
}

.app-card > *:not(.app-card__animated-border) {
  position: relative;
  z-index: 1;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 70px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(34, 197, 94, 0.11);
}

/* Spotlight effect on app-card hover */
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(34, 197, 94, 0.10),
      transparent 42%
    );
  transition: opacity 220ms ease;
  z-index: 0;
}

.app-card:hover::after {
  opacity: 1;
}

/* ── Featured app-card (KapitalChat) ── */
.app-card--featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(34, 197, 94, 0.07);
}

.app-card__animated-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.app-card__animated-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(
      120deg,
      rgba(34, 197, 94, 0.10),
      rgba(134, 255, 203, 0.34),
      rgba(34, 197, 94, 0.12),
      rgba(20, 184, 166, 0.24),
      rgba(34, 197, 94, 0.10)
    );
  background-size: 260% 260%;
  animation: featuredBorderFlow 7s ease-in-out infinite;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.app-card__animated-border::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(34, 197, 94, 0.10),
      transparent 44%
    );
  opacity: 0.7;
}

.app-card--featured > *:not(.app-card__animated-border) {
  position: relative;
  z-index: 1;
}

.app-card--featured:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 70px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(34, 197, 94, 0.13);
}

.app-card--featured .app-card__store-link {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.app-card--featured .app-card__store-link:hover {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.14);
  color: #ffffff;
}

@keyframes featuredBorderFlow {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.7;
  }

  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

/* Header: icon + title row */
.app-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-card__icon {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-card__title {
  font-size: 1.15rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card__kicker {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Description */
.app-card__body {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1 1 auto;
}

/* Store links — bottom row */
.app-card__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.app-card__store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(77, 219, 130, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--ease-out),
    border-color var(--ease-out),
    color var(--ease-out),
    transform var(--ease-out),
    box-shadow var(--ease-out);
}

.app-card__store-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(77, 219, 130, 0.28);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.app-card__store-link:active {
  transform: translateY(0);
}

.app-card__store-link svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------
   11. STEPS
   ---------------------------------------------------------- */

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

/* Register pages: 3 columns */
.card .steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

/* Success page: single column */
.stack .steps {
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.step {
  padding: 1.2rem 0.25rem 0 0;
  border-top: 1px solid var(--line);
}

.card .step,
.stack .step {
  padding: 1rem;
  border-top: none;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.stack .step {
  border-radius: 1.1rem;
}

.step__num {
  color: var(--green-bright);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card .step__num,
.stack .step__num {
  font-size: 0.76rem;
}

.step__title {
  margin: 0.45rem 0 0;
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--ink);
}

.card .step__title {
  margin-top: 0.5rem;
  font-size: 0.98rem;
}

.stack .step__title {
  margin-top: 0.4rem;
  font-size: 0.96rem;
}

.step__text {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.62;
}

.card .step__text,
.stack .step__text {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   12. SUPPORT SECTION (index)
   ---------------------------------------------------------- */

.support {
  width: 100%;
  max-width: var(--site-max-width);
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.support div {
  padding: 1.4rem 1.3rem;
  text-align: left;
  border-radius: 1.3rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(21, 27, 36, 0.65), rgba(13, 17, 23, 0.45)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease;
}

.support div > * {
  position: relative;
  z-index: 1;
}

.support div:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 219, 130, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.16),
    0 0 20px rgba(34, 197, 94, 0.06);
}

.support div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 219, 130, 0), rgba(77, 219, 130, 0.45), rgba(77, 219, 130, 0));
  opacity: 0.7;
  transition: opacity 280ms ease;
}

.support div:hover::before {
  opacity: 1;
}

.support div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(77, 219, 130, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 0;
}

.support div:hover::after {
  opacity: 1;
}

.support strong {
  color: var(--green-bright);
}

/* ----------------------------------------------------------
   12c. SUPPORT PANEL (wrapper for support section)
   ---------------------------------------------------------- */

.support-panel {
  position: relative;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.065);
  background:
    linear-gradient(
      180deg,
      rgba(10, 20, 28, 0.28) 0%,
      rgba(7, 14, 20, 0.18) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    0 14px 42px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  margin-top: 0.5rem;
}

.support-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(34, 197, 94, 0.045),
      transparent 52%
    );
  opacity: 0.65;
}

.support-panel > * {
  position: relative;
  z-index: 1;
}

.support {
  width: 100%;
  max-width: var(--site-max-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.support div {
  padding: 1.4rem 1.3rem;
  text-align: left;
  border-radius: 1.3rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(21, 27, 36, 0.65), rgba(13, 17, 23, 0.45)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease;
}

.support div > * {
  position: relative;
  z-index: 1;
}

.support div:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 219, 130, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.16),
    0 0 20px rgba(34, 197, 94, 0.06);
}

.support div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 219, 130, 0), rgba(77, 219, 130, 0.45), rgba(77, 219, 130, 0));
  opacity: 0.7;
  transition: opacity 280ms ease;
}

.support div:hover::before {
  opacity: 1;
}

.support div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(77, 219, 130, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 0;
}

.support div:hover::after {
  opacity: 1;
}

.support strong {
  color: var(--green-bright);
}

/* ----------------------------------------------------------
   12b. FEATURES SECTION
   ---------------------------------------------------------- */

.features-section {
  position: relative;
  width: 100%;
  margin-top: clamp(32px, 4vw, 52px);
  margin-bottom: clamp(30px, 4vw, 46px);
}

.features-section .section-inner {
  width: 100%;
}

.features-panel {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(10, 20, 28, 0.36) 0%,
      rgba(7, 14, 20, 0.24) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 18px 50px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.features-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(34, 197, 94, 0.07),
      transparent 48%
    );
  opacity: 0.7;
}

.features-panel > * {
  position: relative;
  z-index: 1;
}

.section-badge {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: #22c55e;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.08);
}

.features-title {
  margin: 0 0 28px;
  text-align: center;
  color: #f8fafc;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.features-title span,
.section-title span {
  color: #22c55e;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.22);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 210px;
  padding: 26px 24px 24px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(17, 31, 39, 0.96) 0%,
      rgba(10, 20, 28, 0.97) 48%,
      rgba(7, 14, 20, 0.98) 100%
    );
  border: 1px solid rgba(34, 197, 94, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 60px rgba(0, 0, 0, 0.24);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.015) 34%,
      rgba(0, 0, 0, 0.08) 100%
    );
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(34, 197, 94, 0.10),
      transparent 42%
    );
  transition: opacity 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 70px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(34, 197, 94, 0.11);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  color: #22c55e;
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.22));
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* Feature card stagger delays */
.features-grid .feature-card:nth-child(1) { transition-delay: 0ms; }
.features-grid .feature-card:nth-child(2) { transition-delay: 80ms; }
.features-grid .feature-card:nth-child(3) { transition-delay: 160ms; }
.features-grid .feature-card:nth-child(4) { transition-delay: 240ms; }
.features-grid .feature-card:nth-child(5) { transition-delay: 320ms; }
.features-grid .feature-card:nth-child(6) { transition-delay: 400ms; }


/* ----------------------------------------------------------
   13. FORM ELEMENTS (register pages)
   ---------------------------------------------------------- */

form {
  display: grid;
  gap: 1rem;
}

.form-head {
  margin-bottom: 0.25rem;
}

.form-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.form-head p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(232, 240, 248, 0.92);
}

.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    border-color var(--ease-out),
    box-shadow var(--ease-out);
}

.field input[readonly] {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  cursor: default;
}

.field input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}

.field input:focus {
  border-color: rgba(77, 219, 130, 0.4);
  box-shadow: 0 0 0 3px rgba(39, 184, 99, 0.12);
}

.field__hint {
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.inline-note {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: -0.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.checkline input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--green);
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.email-domain {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Status messages */
.status {
  min-height: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.status--error {
  color: var(--danger);
}

.status--warn {
  color: var(--warn);
}

.status--ok {
  color: var(--green-bright);
}

/* ----------------------------------------------------------
   14. RESULT / KV / GRANTS (register pages)
   ---------------------------------------------------------- */

.result {
  display: grid;
  gap: 0.9rem;
}

.result[hidden] {
  display: none;
}

.result-card {
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(21, 27, 36, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.result-card h2,
.result-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.kv {
  display: grid;
  gap: 0.4rem;
}

.result-card .kv {
  gap: 0.75rem;
}

.kv__row {
  display: grid;
  gap: 0.2rem;
}

.result-card .kv__row {
  gap: 0.24rem;
}

.kv__label {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kv__value {
  font-size: 0.94rem;
  line-height: 1.55;
  word-break: break-word;
}

.result-card .kv__value {
  font-size: 0.95rem;
}

.grant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.grant {
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
}

.grant__kind {
  color: var(--green-bright);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grant__name {
  margin-top: 0.28rem;
}

/* Stack (success page) */
.stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.notice {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   15. INTRO PANEL (register page)
   ---------------------------------------------------------- */

.intro-panel {
  margin-top: 1.2rem;
  display: grid;
}

.intro-view {
  display: grid;
  align-content: start;
  gap: 1rem;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
}

.intro-view[hidden] {
  display: none;
}

.intro-preview {
  animation: previewIn 260ms ease both;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.preview-head__kicker {
  color: var(--green-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-head__title {
  margin-top: 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.preview-reset {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color var(--ease-out),
    border-color var(--ease-out);
}

.preview-reset:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

/* Preview-active state: hide kicker + h1 */
.card--intro.preview-active .intro__kicker,
.card--intro.preview-active h1 {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Register page intro__kicker override */
.card .intro__kicker {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--green-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-height 220ms ease,
    margin 220ms ease;
}

.card .intro__kicker::before {
  display: none;
}

/* ----------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------- */

.footer-note {
  margin-top: 0;
  padding: 0.8rem 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ----------------------------------------------------------
   17. UTILITIES & EFFECTS
   ---------------------------------------------------------- */

/* Glassmorphism utility */
.glass {
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for reveal children */
.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }
.reveal--d4 { transition-delay: 320ms; }

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

  .intro__logo,
  .intro__small,
  .intro__kicker {
    animation: none;
    opacity: 1;
  }

  .cta--ghost::after {
    display: none;
  }

  .app-card__animated-border::before {
    animation: none !important;
  }
}

/* Focus visible: accessibility outline */
:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.75);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgba(39, 184, 99, 0.3);
  color: #fff;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
select,
textarea {
  transition:
    background-color var(--ease-out),
    border-color var(--ease-out),
    color var(--ease-out),
    box-shadow var(--ease-out);
}

/* ----------------------------------------------------------
   18. MEDIA QUERIES
   ---------------------------------------------------------- */

/* Tablet: ≤1024px */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 230px;
  }
}

/* Tablet: ≤1080px */
@media (max-width: 1080px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet: ≤980px */
@media (max-width: 980px) {
  .hero-register {
    grid-template-columns: 1fr;
  }

  .card .steps {
    grid-template-columns: 1fr;
  }

  .grant-list {
    grid-template-columns: 1fr;
  }

  .email-row {
    grid-template-columns: 1fr;
  }
}

/* Tablet: ≤920px */
@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile: ≤760px */
@media (max-width: 760px) {
  :root {
    --site-side-padding: 16px;
  }

  .shell {
    padding-top: 0.7rem;
  }

  .brandbar {
    flex-direction: column;
    align-items: start;
    border-radius: 1.4rem;
  }

  .hero {
    gap: 1.4rem;
    padding-top: 10px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .support-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .support div {
    padding: 1.2rem 1rem;
  }

  .app-card__stores {
    justify-content: start;
  }

  .apps-panel,
  .features-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .section-title {
    margin-bottom: 20px;
  }

  .app-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .cta-row {
    flex-direction: column;
  }

  .intro__logo {
    max-width: min(320px, 82vw);
  }

  .intro__kicker {
    margin-top: 12px;
    margin-bottom: 20px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .intro__small {
    letter-spacing: 0.28em;
  }

  .hero-card {
    margin-top: 24px;
  }

  .intro__lead {
    font-size: 0.95rem;
  }

  .apps-panel {
    border-radius: 1.4rem;
    padding: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn--solid,
  .actions .btn--ghost,
  .actions button {
    width: 100%;
    justify-content: center;
  }

  .next-step {
    flex-direction: column;
  }

  .next-step a,
  .next-step button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .features-section {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .features-title {
    margin-bottom: 22px;
    font-size: 30px;
  }

  .feature-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .feature-card__icon {
    margin-bottom: 22px;
  }
}

/* Small mobile: ≤480px */
@media (max-width: 480px) {
  .brandbar {
    padding: 0.8rem;
    gap: 0.7rem;
  }

  .brandbar__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .brandbar__logo {
    height: 1.4rem;
  }

  .brandbar__title {
    font-size: 0.85rem;
    white-space: normal;
  }

  .brandbar__pill {
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .back-link {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 1rem;
    border-radius: 1.2rem;
  }

  .apps-panel,
  .features-panel,
  .support-panel {
    border-radius: 1.2rem;
    padding: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 0.9rem;
    border-radius: 1.2rem;
  }

  .app-card {
    padding: 0.9rem;
    border-radius: 1.2rem;
  }

  .footer-note {
    font-size: 0.8rem;
  }

  .intro__kicker {
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 0.10em;
  }

  .intro__logo {
    max-width: min(280px, 88vw);
  }

  .hero-card {
    margin-top: 18px;
  }
}
