/* KOPS Mobile Apps — spacemobileapps.com (domain unchanged) */

:root {
  --ink: #0c1524;
  --ink-soft: #1c2b3d;
  --mist: #d7e2ec;
  --paper: #f3f6f9;
  --paper-deep: #e7eef5;
  --accent: #1a7a6d;
  --accent-deep: #145f55;
  --accent-soft: #8ec9c0;
  --line: rgba(12, 21, 36, 0.12);
  --line-strong: rgba(12, 21, 36, 0.22);
  --hero-fade: rgba(12, 21, 36, 0.42);
  --shadow-soft: 0 18px 40px rgba(12, 21, 36, 0.08);
  --radius: 4px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(142, 201, 192, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(26, 95, 138, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  width: min(100% - 2.5rem, var(--max));
  margin: 0.75rem auto 0;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 8px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(243, 246, 249, 0.88);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(243, 246, 249, 0.45);
}

.btn-secondary:hover {
  background: rgba(243, 246, 249, 0.1);
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: var(--ink-soft);
  color: var(--paper);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 1.5rem);
  min-height: calc(100svh - 1.5rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(165deg, #081018 0%, #12263a 48%, #0c1524 100%);
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  animation: hero-pan 22s var(--ease) infinite alternate;
}

@keyframes hero-pan {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.5%, 1%);
  }
}

.hero__content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: #fff;
  max-width: 12ch;
  animation: rise-in 0.9s var(--ease) both;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 600;
  color: rgba(243, 246, 249, 0.96);
  animation: rise-in 0.9s var(--ease) 0.08s both;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.125rem;
  color: rgba(215, 226, 236, 0.9);
  animation: rise-in 0.9s var(--ease) 0.16s both;
}

.hero .cta-row {
  animation: rise-in 0.9s var(--ease) 0.24s both;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 16, 24, 0.88) 0%, rgba(8, 16, 24, 0.62) 42%, rgba(8, 16, 24, 0.28) 68%, rgba(8, 16, 24, 0.18) 100%),
    linear-gradient(to top, rgba(12, 21, 36, 0.72) 0%, transparent 42%);
  z-index: -1;
  pointer-events: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

main {
  display: block;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--tight {
  padding-top: 2.5rem;
}

.section__label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 16ch;
}

.section__text {
  max-width: 54ch;
  color: var(--ink-soft);
}

.section__text:last-child {
  margin-bottom: 0;
}

.band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.panel + .panel {
  border-top: 1px solid var(--line);
}

.panel__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.panel__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

.visual-anchor {
  min-height: 320px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(145deg, #12263a, #0c1524 70%);
  position: relative;
  overflow: hidden;
}

.visual-anchor img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

/* Page hero (inner pages) */

.page-hero {
  padding: clamp(4rem, 10vw, 6.5rem) 0 2rem;
}

.page-hero__brand {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 14ch;
}

.page-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 600;
  max-width: 22ch;
  color: var(--ink-soft);
}

.page-hero__lead {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

/* Contact */

.contact-block {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}

.contact-line {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-line__label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.contact-line__value {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.contact-line__value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.contact-line__value a:hover {
  color: var(--accent-deep);
}

.mailto-note {
  margin: 1.5rem 0 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Legal */

.legal {
  max-width: 62ch;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  padding: 2.75rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.footer-text,
.footer-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 40ch;
}

.footer-legal {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-legal p {
  margin: 0 0 0.35rem;
  max-width: 70ch;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal a {
  color: var(--ink-soft);
}

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

.contact-line__value--multiline {
  font-size: 1.05rem;
  line-height: 1.5;
  font-family: var(--font-body);
  font-weight: 500;
}

.company-facts {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.company-facts .contact-line {
  padding: 1.1rem 0;
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

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

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

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

  .visual-anchor {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(243, 246, 249, 0.97);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-cta {
    display: block;
    width: 100%;
    padding: 0.85rem 0.75rem;
  }

  .nav-cta {
    margin-top: 0.35rem;
    text-align: center;
  }

  .site-nav {
    position: relative;
  }

  body.nav-open {
    overflow: hidden;
  }

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

  .hero__content {
    padding-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
