@font-face {
  font-display: swap;
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/SpaceGroteskRegular.otf") format("opentype");
}

@font-face {
  font-display: swap;
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 800;
  src: url("assets/fonts/SpaceGroteskBold.otf") format("opentype");
}

@font-face {
  font-display: swap;
  font-family: "Good Old DOS";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/GoodOldDOSSmooth.ttf") format("truetype");
}

:root {
  --background: #040806;
  --surface: #0a1713;
  --glass: rgba(15, 34, 28, 0.56);
  --glass-strong: rgba(15, 34, 28, 0.76);
  --glass-rim: rgba(118, 255, 178, 0.36);
  --glass-rim-strong: rgba(118, 255, 178, 0.58);
  --rim-soft: rgba(145, 237, 255, 0.24);
  --text: #effff7;
  --text-soft: #a9bcb3;
  --text-muted: #72887e;
  --primary: #76ffb2;
  --accent: #91edff;
  --warning: #f5b940;
  --danger: #ff6674;
  --max: 1240px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-glass: 0 18px 46px rgba(0, 0, 0, 0.46), 0 0 34px rgba(118, 255, 178, 0.12), inset 0 1px 0 rgba(239, 255, 247, 0.16);
  --shadow-cyan: 0 18px 46px rgba(0, 0, 0, 0.46), 0 0 30px rgba(145, 237, 255, 0.12), inset 0 1px 0 rgba(239, 255, 247, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--background);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  color: var(--background);
  background: var(--primary);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 8, 6, 0.72), rgba(4, 8, 6, 0.94)),
    var(--background);
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-shell::before {
  z-index: -2;
  opacity: 0.92;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 6, 0.05), rgba(4, 8, 6, 0.48)),
    url("assets/images/circuit-pattern.svg");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 1500px auto;
}

.site-shell::after {
  z-index: -1;
  opacity: 0.40;
  background:
    linear-gradient(90deg, transparent 0%, rgba(145, 237, 255, 0.00) 22%, rgba(145, 237, 255, 0.42) 48%, rgba(118, 255, 178, 0.20) 62%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(118, 255, 178, 0.00) 26%, rgba(118, 255, 178, 0.34) 52%, transparent 100%);
  background-position: -680px 34%, -820px 74%;
  background-repeat: no-repeat;
  background-size: 680px 2px, 820px 2px;
  animation: circuit-sweep 10s linear infinite;
}

@keyframes circuit-sweep {
  0% {
    background-position: -680px 34%, -820px 74%;
  }

  50% {
    background-position: 100vw 34%, -820px 74%;
  }

  51% {
    background-position: -680px 34%, -820px 74%;
  }

  100% {
    background-position: -680px 34%, 100vw 74%;
  }
}

.container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(118, 255, 178, 0.18);
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 255, 178, 0.42);
  border-radius: 12px;
  color: var(--background);
  background: var(--primary);
  box-shadow: 0 0 22px rgba(118, 255, 178, 0.20);
  font-size: 0;
}

.brand-mark::after {
  content: "K";
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.brand-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 13px;
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(118, 255, 178, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 19, 0.66);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  border-color: var(--glass-rim-strong);
  background: rgba(15, 34, 28, 0.78);
  box-shadow: 0 0 20px rgba(118, 255, 178, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 34px;
  align-items: stretch;
  padding: 22px 0 74px;
}

.glass-panel,
.hero > div:first-child,
.dashboard-card,
.feature-grid,
.legal-card,
.support-card,
.legal-body,
.legal-toc,
details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-rim);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(15, 34, 28, 0.68), rgba(6, 18, 14, 0.64)),
    var(--glass);
  box-shadow: var(--shadow-glass);
}

.glass-panel::before,
.hero > div:first-child::before,
.dashboard-card::before,
.feature-grid::before,
.legal-card::before,
.support-card::before,
.legal-body::before,
.legal-toc::before,
details::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(239, 255, 247, 0.16) 18px calc(100% - 18px), transparent calc(100% - 18px)),
    linear-gradient(180deg, transparent 0 14px, rgba(239, 255, 247, 0.13) 14px 15px, transparent 15px),
    radial-gradient(ellipse at 22% 0%, rgba(118, 255, 178, 0.18), transparent 52%);
  opacity: 0.76;
}

.glass-panel::after,
.hero > div:first-child::after,
.dashboard-card::after,
.feature-grid::after,
.legal-card::after,
.support-card::after,
.legal-body::after,
details::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 42px;
  width: 118px;
  height: 2px;
  border-radius: 999px;
  background: rgba(239, 255, 247, 0.20);
  pointer-events: none;
}

.hero > div:first-child {
  min-height: 326px;
  padding: 30px 32px;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--primary);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(118, 255, 178, 0.70);
}

.hero h1,
.legal-hero h1,
.support-hero h1,
.not-found-title {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.02;
}

.hero h1 .highlight {
  color: var(--primary);
  text-shadow: 0 0 24px rgba(118, 255, 178, 0.20);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.52;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(118, 255, 178, 0.28);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(10, 23, 19, 0.70);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.button.primary {
  color: var(--background);
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 18px 34px rgba(118, 255, 178, 0.20), 0 0 26px rgba(118, 255, 178, 0.18);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(118, 255, 178, 0.34);
}

.dashboard-card {
  min-height: 326px;
  padding: 28px 30px;
  border-color: rgba(245, 185, 64, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46), 0 0 34px rgba(245, 185, 64, 0.10), inset 0 1px 0 rgba(239, 255, 247, 0.16);
}

.dashboard-card::before {
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(239, 255, 247, 0.15) 18px calc(100% - 18px), transparent calc(100% - 18px)),
    linear-gradient(180deg, transparent 0 14px, rgba(239, 255, 247, 0.12) 14px 15px, transparent 15px),
    radial-gradient(ellipse at 16% 12%, rgba(245, 185, 64, 0.22), transparent 44%);
}

.dashboard-top,
.dashboard-row,
.badge,
.profit-label,
.profit-number,
.profit-change,
.sparkline {
  position: relative;
  z-index: 1;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--warning);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(118, 255, 178, 0.25);
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: rgba(10, 23, 19, 0.70);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 12px;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(145, 237, 255, 0.72);
}

.profit-label {
  margin: 18px 0 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.profit-number {
  color: var(--warning);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 62px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(245, 185, 64, 0.22);
}

.profit-change {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.sparkline {
  width: 100%;
  height: 88px;
  margin-top: 16px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-stat {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(118, 255, 178, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 19, 0.64);
}

.dashboard-stat strong {
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.dashboard-stat span {
  color: var(--primary);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.section {
  padding: 68px 0;
}

.section + .section {
  border-top: 1px solid rgba(118, 255, 178, 0.14);
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

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

.feature-card,
.legal-card,
.support-card {
  position: relative;
  min-height: 164px;
  padding: 22px 18px;
  border: 1px solid rgba(118, 255, 178, 0.24);
  border-radius: var(--radius-md);
  background: rgba(10, 23, 19, 0.66);
  box-shadow: var(--shadow-cyan);
}

.legal-card,
.support-card {
  min-height: 230px;
}

.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 255, 178, 0.40);
  border-radius: var(--radius-sm);
  color: var(--background);
  background: var(--primary);
  box-shadow: 0 0 18px rgba(118, 255, 178, 0.14);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 16px;
}

.feature-card h3,
.support-card h3,
.legal-card h3 {
  margin: 18px 0 10px;
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.feature-card p,
.support-card p,
.legal-card p,
.legal-body p,
.legal-body li {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.64;
}

.legal-card .button {
  margin-top: 14px;
}

.legal-hero {
  padding: 44px 0 36px;
}

.legal-hero h1,
.support-hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: 50px;
  line-height: 1.04;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 13px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 42px;
  padding: 36px 0 78px;
}

.legal-body {
  min-width: 0;
  padding: 38px;
}

.legal-body h2 {
  position: relative;
  z-index: 1;
  margin: 42px 0 12px;
  color: var(--primary);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body ul,
.legal-body .notice,
.legal-toc > *,
details > * {
  position: relative;
  z-index: 1;
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body a,
.support-card a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-toc {
  position: sticky;
  top: 22px;
  padding: 22px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 14px;
}

.legal-toc a:hover {
  color: var(--primary);
}

.support-hero {
  padding: 44px 0 30px;
}

.support-card a {
  display: inline-flex;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 800;
}

.faq {
  margin: 42px 0 78px;
}

.faq h2 {
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
}

details {
  margin-top: 12px;
  padding: 22px;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-family: "Good Old DOS", "Space Grotesk", sans-serif;
  font-size: 17px;
  letter-spacing: 0;
}

details p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(118, 255, 178, 0.28);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: rgba(118, 255, 178, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

.not-found {
  padding: 88px 0 160px;
}

.not-found-title {
  max-width: 760px;
  margin: 16px 0;
  font-size: 58px;
  line-height: 1.04;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 42px;
  border-top: 1px solid rgba(118, 255, 178, 0.14);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 36px), var(--max));
  }

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

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

  .hero h1,
  .legal-hero h1,
  .support-hero h1,
  .not-found-title {
    font-size: 42px;
  }

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

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

  .legal-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-shell::before {
    background-size: 920px auto;
  }

  .nav {
    gap: 16px;
    padding: 24px 0 18px;
  }

  .brand {
    gap: 10px;
    font-size: 27px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-mark::after {
    font-size: 21px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
  }

  .nav-links a {
    min-height: 40px;
    padding: 0 10px;
  }

  .hero {
    gap: 20px;
    padding: 18px 0 52px;
  }

  .hero > div:first-child,
  .dashboard-card,
  .feature-grid,
  .legal-body,
  .legal-card,
  .support-card,
  details {
    border-radius: 20px;
  }

  .hero > div:first-child,
  .dashboard-card {
    min-height: 0;
    padding: 24px;
  }

  .hero h1,
  .legal-hero h1,
  .support-hero h1,
  .not-found-title {
    font-size: 33px;
    line-height: 1.06;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .profit-number {
    font-size: 50px;
  }

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

  .section {
    padding: 54px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .legal-body {
    padding: 30px 22px;
  }

  .footer {
    flex-direction: column;
  }
}
