@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

:root {
  --surface: #0d1515;
  --surface-lowest: #080f10;
  --surface-low: #151d1e;
  --surface-container: #192122;
  --surface-high: #232b2c;
  --surface-highest: #2e3637;
  --on-surface: #dce4e5;
  --on-surface-variant: #b9cacb;
  --outline: #849495;
  --outline-variant: #3b494b;
  --primary: #dbfcff;
  --primary-fixed: #7df4ff;
  --primary-container: #00f0ff;
  --on-primary-container: #006970;
  --emerald-action: #10b981;
  --tertiary-fixed: #ffe179;
  --section-padding: 80px;
  --gutter: 24px;
  --container-max: 1280px;
}

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

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

body.home {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.home h1,
body.home h2,
body.home h3,
body.home h4,
body.home h5,
body.home p,
body.home ul {
  margin-top: 0;
}

body.home p,
body.home li {
  color: var(--on-surface-variant);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.home a {
  color: var(--primary-fixed);
  text-decoration: none;
}

body.home img {
  max-width: 100%;
}

body.home ul {
  padding-left: 0;
  list-style: none;
}

body.home .container {
  width: 100%;
  max-width: var(--container-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

body.home .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--gutter) / -2);
  margin-left: calc(var(--gutter) / -2);
}

body.home [class*="col-"] {
  width: 100%;
  padding-right: calc(var(--gutter) / 2);
  padding-left: calc(var(--gutter) / 2);
}

.d-flex {
  display: flex !important;
}

.align-self-center {
  align-self: center !important;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.header,
.header.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(13, 21, 21, 0.96);
  border-bottom: 1px solid var(--outline-variant);
  backdrop-filter: blur(14px);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand-title {
  color: var(--primary-fixed);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a,
.mobile-nav a {
  color: var(--on-surface-variant);
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary-fixed);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 32px;
  padding: 9px 22px;
  background: var(--primary-container);
  color: var(--on-primary-container) !important;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--outline-variant);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-fixed);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 24px;
  left: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
}

.mobile-nav.is-open {
  display: flex;
}

.hero-area {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 819px;
  margin-top: 64px;
  padding: var(--section-padding) 0;
  overflow: hidden;
  background-color: var(--surface);
  background-image: radial-gradient(circle, var(--outline-variant) 1px, transparent 1px);
  background-size: 40px 40px;
  border-bottom: 1px solid rgba(59, 73, 75, 0.45);
}

.hero-area .row {
  align-items: center;
}

.hero-area .left-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-area .left-content .content .subtitle {
  display: block;
  margin-bottom: 16px;
  color: var(--primary-fixed);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  -webkit-text-fill-color: currentColor;
  background: none;
}

.hero-area .left-content .content .title {
  max-width: 520px;
  margin-bottom: 16px;
  color: var(--primary);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-area .left-content .content .text {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--on-surface-variant);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 40px;
  padding: 13px 30px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.hero-button-primary {
  background: var(--primary-fixed);
  color: #002022 !important;
}

.hero-button-secondary {
  border: 1px solid var(--outline);
  color: var(--on-surface) !important;
}

.hero-button-secondary:hover {
  background: var(--surface-highest);
}

.motion-card {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-left: auto;
  padding: 24px;
  background: linear-gradient(135deg, var(--surface-high), var(--surface-container));
  border: 1px solid var(--outline-variant);
  overflow: visible;
}

.motion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(132, 148, 149, 0.25) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.22;
  pointer-events: none;
}

.motion-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(125, 244, 255, 0.2);
  animation: breathing-float 4s ease-in-out infinite;
}

.motion-core .material-symbols-outlined {
  color: var(--primary-fixed);
  font-size: 72px;
  opacity: 0.5;
  animation: icon-active 4s ease-in-out infinite;
}

.systems-badge {
  position: absolute;
  bottom: -18px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.systems-badge span {
  width: 8px;
  height: 8px;
  background: var(--emerald-action);
  border-radius: 999px;
  animation: pulse 1.7s ease-in-out infinite;
}

@keyframes breathing-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(125, 244, 255, 0.1);
  }

  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(125, 244, 255, 0.3);
  }
}

@keyframes icon-active {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: rotate(1deg) scale(1.05);
    opacity: 0.8;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.featured-game {
  background: var(--surface-lowest);
  border-top: 1px solid rgba(59, 73, 75, 0.35);
  border-bottom: 1px solid rgba(59, 73, 75, 0.35);
}

.features {
  margin-top: 0;
  padding: var(--section-padding) 0;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.services-header h2 {
  margin-bottom: 8px;
  color: var(--primary);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.services-header p {
  margin-bottom: 0;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.features .feature-box,
.features .feature-box-inner {
  position: static;
  width: 100%;
}

.features .row {
  row-gap: 24px;
}

.features .single-feature {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px;
  text-align: left;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.features .single-feature:hover {
  border-color: var(--primary-fixed);
  box-shadow: 0 0 15px rgba(125, 244, 255, 0.15);
  transform: translateY(-2px);
}

.features .single-feature .content,
.features .single-feature .single-link {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.features .single-feature .icon,
.features .single-feature .icon.one,
.features .single-feature .icon.two,
.features .single-feature .icon.three {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  line-height: 1;
}

.features .single-feature .icon::before,
.features .single-feature .icon::after {
  display: none;
}

.features .single-feature .icon.two {
  background: rgba(125, 244, 255, 0.1);
  color: var(--primary-fixed);
}

.features .single-feature .icon.one {
  background: rgba(255, 225, 121, 0.1);
  color: var(--tertiary-fixed);
}

.features .single-feature .icon.three {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-action);
}

.features .single-feature .icon .material-symbols-outlined {
  font-size: 32px;
}

.features .single-feature .content .title {
  margin-bottom: 16px;
  color: var(--on-surface);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}

.features .single-feature p {
  min-height: 60px;
  margin-bottom: 32px;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.5;
}

.features .single-feature .content .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--primary-fixed);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transition: gap 0.2s ease, color 0.2s ease;
}

.features .service-analytics .content .link {
  color: var(--tertiary-fixed);
}

.features .service-support .content .link {
  color: var(--emerald-action);
}

.features .single-feature .content .link:hover {
  gap: 14px;
}

.features .single-feature .content .link .material-symbols-outlined {
  font-size: 16px;
}

.ref-commission {
  padding: var(--section-padding) 0;
  background: var(--surface);
  border-bottom: 1px solid rgba(59, 73, 75, 0.35);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
}

.about-copy {
  position: sticky;
  top: 96px;
  align-self: start;
}

.section-heading .title,
.ref-commission .section-heading .title,
.app-legal .section-heading .title {
  margin-bottom: 32px;
  color: var(--on-surface);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading .text,
.ref-commission .section-heading .text,
.app-legal .section-heading .text,
.methodology-stack .text {
  color: var(--on-surface-variant);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.ref-commission .section-heading .text {
  margin-bottom: 24px;
}

.methodology-stack {
  display: grid;
  gap: 24px;
}

.phase-card {
  margin: 0;
  padding: 32px;
  background: var(--surface-high);
  border-left: 4px solid var(--primary-fixed);
  border-radius: 0 4px 4px 0;
}

.phase-card:nth-child(2) {
  border-left-color: var(--tertiary-fixed);
}

.phase-card:nth-child(3) {
  border-left-color: var(--emerald-action);
}

.ref-commission b {
  display: block;
  margin-bottom: 12px;
  color: var(--on-surface);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.trust-note {
  margin: 8px 0 0;
  padding: 32px;
  background: linear-gradient(90deg, #0f172a, var(--surface-container));
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  color: var(--primary) !important;
  font-family: "Hanken Grotesk", Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.app-legal {
  padding: var(--section-padding) 0;
  background: var(--surface-low);
  border-bottom: 1px solid rgba(59, 73, 75, 0.35);
  scroll-margin-top: 96px;
}

.app-legal .section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 16px;
  margin-bottom: 40px;
  text-align: left;
}

.app-legal-mark {
  color: var(--primary-fixed);
  font-size: 30px;
}

.app-legal .section-heading .title {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 32px;
  font-weight: 600;
}

.app-legal .section-heading .text {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 14px;
}

.app-legal .app-legal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.app-legal .app-legal-link {
  display: block;
  min-height: 164px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-legal .app-legal-link:hover {
  border-color: var(--primary-fixed);
  transform: translateY(-2px);
}

.app-legal .app-legal-name {
  display: block;
  margin-bottom: 12px;
  color: var(--on-surface);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.app-legal .app-legal-meta {
  display: block;
  margin-bottom: 28px;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.5;
}

.app-legal .app-legal-action {
  display: block;
  color: var(--primary-fixed);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.footer {
  padding-top: 0;
  background: var(--surface-lowest);
}

.footer .copy-bg {
  margin-top: 0;
  padding: 32px 0;
  background: var(--surface-lowest);
  border-top: 1px solid var(--outline-variant);
}

.footer .copy-bg .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer .copy-bg .left-area {
  text-align: left;
}

.footer .copy-bg .left-area p {
  margin-bottom: 0;
  color: var(--on-surface-variant);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-company {
  display: block;
  color: var(--on-surface-variant);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

@media (min-width: 768px) {
  body.home .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  body.home .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  body.home .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  body.home .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 18px;
  }

  .brand-title {
    font-size: 26px;
  }

  .header-cta {
    min-width: 128px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 64px;
  }

  body.home .container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-area {
    min-height: 0;
  }

  .hero-area .left-content .content .title {
    font-size: 44px;
  }

  .hero-area .left-content .content .text {
    max-width: 680px;
    font-size: 27px;
  }

  .motion-card {
    width: min(100%, 360px);
    margin: 48px auto 0;
  }

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

  .about-copy {
    position: static;
  }

  .app-legal .app-legal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
  }
}

@media (max-width: 767px) {
  .brand-title {
    font-size: 23px;
  }

  .hero-area .left-content .content .subtitle {
    font-size: 11px;
  }

  .hero-area .left-content .content .title {
    font-size: 36px;
  }

  .hero-area .left-content .content .text {
    font-size: 22px;
  }

  .hero-button {
    width: 100%;
  }

  .app-legal .app-legal-list {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

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

  .section-heading .title,
  .ref-commission .section-heading .title {
    font-size: 36px;
  }

  .ref-commission b,
  .features .single-feature .content .title,
  .app-legal .app-legal-name {
    font-size: 26px;
  }

  .phase-card,
  .trust-note,
  .features .single-feature {
    padding: 24px;
  }

  .footer .copy-bg .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 52px;
  }

  body.home .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-area .left-content .content .title {
    font-size: 32px;
  }

  .hero-area .left-content .content .text {
    font-size: 20px;
  }

  .motion-card {
    width: min(100%, 300px);
  }
}

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