/* Geo Software Systems — global styles */
:root {
  --accent-primary: #d14836;
  --accent-secondary: #49c5b6;
  --accent-deep: #2779a7;
  --foreground-strong: #142231;
  --foreground-muted: #657282;
  --divider: #dce5ec;
  --background-page: #ffffff;
  --background-subtle: #f4f8fb;
  --shadow-soft: 0 18px 50px rgba(20, 34, 49, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-sans:
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .bg-mesh,
  .nav-drawer,
  .menu-toggle__bar,
  .faq-item__panel {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground-strong);
  background: var(--background-page);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Animated mesh background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% -10%,
      rgba(73, 197, 182, 0.18),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 0%,
      rgba(209, 72, 54, 0.12),
      transparent 50%
    ),
    radial-gradient(
      ellipse 70% 60% at 50% 100%,
      rgba(39, 121, 167, 0.14),
      transparent 55%
    ),
    var(--background-subtle);
  animation: meshShift 22s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    filter: hue-rotate(0deg);
    transform: scale(1) translate(0, 0);
  }
  100% {
    filter: hue-rotate(12deg);
    transform: scale(1.04) translate(-1%, 1%);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.site-header__inner {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--foreground-strong);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--foreground-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--foreground-strong);
}

.nav-desktop a:hover {
  color: var(--accent-deep);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--accent-deep),
    var(--accent-secondary)
  );
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(39, 121, 167, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* Burger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 120;
  border-radius: var(--radius-md);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.menu-toggle__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--foreground-strong);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity 0.25s ease,
    top var(--transition);
}

.menu-toggle__bar:nth-child(1) {
  top: 14px;
}

.menu-toggle__bar:nth-child(2) {
  top: 21px;
}

.menu-toggle__bar:nth-child(3) {
  top: 28px;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: var(--background-page);
  box-shadow: -12px 0 40px rgba(20, 34, 49, 0.12);
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 110;
  border-left: 1px solid var(--divider);
}

.nav-drawer__close {
  position: absolute;
  top: 1.1rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--background-subtle);
  color: var(--foreground-strong);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}

.nav-drawer__close:hover {
  background: var(--divider);
  color: var(--accent-primary);
}

.nav-drawer__close:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer a {
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--foreground-strong);
  border-bottom: 1px solid var(--divider);
}

.nav-drawer .nav-cta {
  text-align: center;
  margin-top: 0.5rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 49, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 105;
}

.drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(20, 34, 49, 0.82) 0%,
      rgba(20, 34, 49, 0.55) 42%,
      rgba(39, 121, 167, 0.35) 100%
    ),
    linear-gradient(to top, rgba(20, 34, 49, 0.5), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  color: #fff;
}

.hero__content h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), #e86b5a);
  color: #fff;
  box-shadow: 0 10px 30px rgba(209, 72, 54, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #ffe4c1;
}

.btn.btn--ghost:hover {
  transform: translateY(-2px);
  color: #ffe4c1;
}

.btn.btn--solid:hover {
  color: white;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--solid {
  background: var(--accent-deep);
  color: #fff;
}

/* Sections */
.wrap {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section--tint {
  background: linear-gradient(
    180deg,
    rgba(244, 248, 251, 0.95),
    var(--background-page)
  );
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--foreground-strong);
}

.section__subtitle {
  color: var(--foreground-muted);
  max-width: 52rem;
  margin: 0 0 2rem;
}

/* Cards grid */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--background-page);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.card p {
  margin: 0;
  color: var(--foreground-muted);
  font-size: 0.95rem;
}

.stat-pill {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(73, 197, 182, 0.15);
  color: var(--foreground-strong);
  font-weight: 600;
  font-size: 0.88rem;
}

/* List blocks */
.prose {
  color: var(--foreground-muted);
  max-width: 52rem;
}

.prose strong {
  color: var(--foreground-strong);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Embed placeholder (replaces iframe) */
.embed-placeholder {
  margin: 2rem 0;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--divider);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(
    145deg,
    var(--background-subtle),
    var(--background-page)
  );
}

.embed-placeholder__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-deep)
  );
  opacity: 0.35;
}

/* Demo game iframe */
.game-iframe-wrap {
  margin-top: 2rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--background-page);
  box-shadow: var(--shadow-soft);
}

.game-iframe-wrap .game-iframe-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--divider);
  background: var(--background-subtle);
}

.game-iframe {
  width: 100%;
  /* min-height: min(70vh, 640px); */
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: var(--foreground-strong);
}

.embed-placeholder h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.embed-placeholder p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--foreground-muted);
  font-size: 0.92rem;
}

/* Self-check */
.check-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  background: var(--background-page);
}

.check-item__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--accent-deep),
    var(--accent-secondary)
  );
}

.check-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--foreground-muted);
}

/* Steps */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  background: var(--background-page);
  font-size: 0.95rem;
  color: var(--foreground-muted);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-notes {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.game-iframe-wrapper {
  aspect-ratio: 1140 / 735;
  width: 100%;
  border: none;
  overflow: hidden;
}

.game-iframe-wrapper {
  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

.step-notes li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent-secondary);
  font-size: 0.9rem;
  color: var(--foreground-muted);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: 1.1rem 0;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--foreground-strong);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.faq-item button span:last-child {
  font-size: 1.25rem;
  color: var(--accent-deep);
  transition: transform 0.25s ease;
}

.faq-item.is-open button span:last-child {
  transform: rotate(45deg);
}

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__panel p {
  margin: 0.75rem 0 0;
  color: var(--foreground-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--foreground-strong);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--accent-secondary);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(39, 121, 167, 0.08),
    rgba(73, 197, 182, 0.1)
  );
  border-bottom: 1px solid var(--divider);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0.5rem 0 0;
  color: var(--foreground-muted);
  max-width: 40rem;
}

/* Legal / long text */
.legal {
  padding: 2.5rem 0 4rem;
}

.legal ol {
  padding-left: 1.2rem;
  color: var(--foreground-muted);
}

.legal li {
  margin-bottom: 1rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

/* Contact form */
.form {
  max-width: 520px;
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  background: var(--background-page);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-msg {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: none;
}

.form-msg.is-visible {
  display: block;
}

.form-msg--ok {
  background: rgba(73, 197, 182, 0.2);
  color: var(--foreground-strong);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--transition),
    transform 0.65s var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(
    145deg,
    var(--accent-deep),
    var(--accent-secondary)
  );
  color: #fff;
  box-shadow: 0 10px 28px rgba(39, 121, 167, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  z-index: 90;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  filter: brightness(1.06);
}

.back-top:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.back-top svg {
  width: 22px;
  height: 22px;
}

/* Utility */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

.mb-section {
  margin-bottom: 2rem;
}

.footer-partners {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
}
.footer-partners-logos {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
