:root {
  --bg: #05251d;
  --bg-2: #073226;
  --panel: #0b3328;
  --panel-2: #0f4335;
  --panel-soft: #123f34;
  --text: #f6fff9;
  --muted: #b4d0c4;
  --mint: #45ffbd;
  --mint-2: #9affdc;
  --teal: #18c99a;
  --green: #0f6b4e;
  --line: rgba(255, 255, 255, 0.12);
  --line-mint: rgba(69, 255, 189, 0.3);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(140deg, rgba(69, 255, 189, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(24, 201, 154, 0.16), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 70%);
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  padding: 14px 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px -14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 37, 29, 0.78);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(154, 255, 220, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  color: #022015;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(69, 255, 189, 0.22);
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-cta {
  color: #022015;
  background: var(--mint);
  box-shadow: 0 16px 34px rgba(69, 255, 189, 0.22);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #022015;
  background: var(--mint-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 84svh;
  margin-top: -74px;
  padding: 150px 16px 66px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 37, 29, 0.99) 0%, rgba(5, 37, 29, 0.9) 38%, rgba(5, 37, 29, 0.24) 69%, rgba(5, 37, 29, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 37, 29, 0) 0%, rgba(5, 37, 29, 0.98) 100%),
    url("assets/kinezio-motion-tech-mobile-products.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--teal), transparent);
  background-size: 180% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  color: var(--text);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.35rem);
}

h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.3vw, 4.25rem);
}

h3 {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-button {
  color: #022015;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  box-shadow: 0 20px 42px rgba(69, 255, 189, 0.24);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line-mint);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 52px rgba(69, 255, 189, 0.3);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.11);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 790px;
}

.hero-metrics div {
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 51, 40, 0.78);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 14px;
  color: var(--mint-2);
  font-size: 0.88rem;
}

.hero-metrics span {
  display: block;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding-top: 74px;
}

.intro-copy {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1.12rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.proof-card,
.systems-panel,
.systems-list div,
.timeline-item,
.legal-content article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 270px;
  padding: 26px;
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  border: 1px solid var(--line-mint);
  border-radius: 8px;
  color: var(--mint-2);
  background: rgba(69, 255, 189, 0.08);
  font-size: 0.84rem;
  font-weight: 900;
}

.service-card p,
.proof-card p,
.systems-list span,
.timeline-item p,
.legal-content p {
  color: var(--muted);
}

.systems-section {
  position: relative;
}

.systems-section::before {
  content: "";
  position: absolute;
  inset: 40px -4vw;
  border-top: 1px solid rgba(69, 255, 189, 0.18);
  border-bottom: 1px solid rgba(24, 201, 154, 0.22);
  background:
    linear-gradient(120deg, rgba(69, 255, 189, 0.08), rgba(255, 255, 255, 0.02), rgba(24, 201, 154, 0.13));
  z-index: -1;
}

.systems-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(130deg, rgba(69, 255, 189, 0.11), transparent 38%),
    linear-gradient(315deg, rgba(24, 201, 154, 0.16), transparent 40%),
    var(--panel-2);
}

.systems-list {
  display: grid;
  gap: 14px;
}

.systems-list div {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.systems-list strong {
  color: var(--text);
  font-size: 1.04rem;
}

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

.proof-card {
  min-height: 236px;
  padding: 30px;
  background: var(--panel-soft);
}

.proof-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--mint-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process {
  padding-top: 46px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  min-height: 250px;
  padding: 28px;
  background: var(--panel-2);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--mint-2);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-item strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.12rem;
}

.contact-section {
  width: min(calc(100% - 32px), var(--max));
  margin: 40px auto 96px;
}

.contact-inner {
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(69, 255, 189, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(69, 255, 189, 0.14), rgba(255, 255, 255, 0.03) 52%, rgba(24, 201, 154, 0.15)),
    var(--panel-2);
  box-shadow: var(--shadow);
}

.contact-inner h2 {
  max-width: 790px;
  margin-bottom: 18px;
}

.contact-inner p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 430px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
  max-width: 560px;
}

.footer-links a {
  color: var(--text);
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: var(--mint-2);
}

.legal-main {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
  padding: 74px 0 82px;
}

.legal-hero {
  padding: 72px 0 38px;
}

.legal-hero h1 {
  margin-bottom: 16px;
}

.legal-hero p:last-child {
  color: var(--muted);
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content article {
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.legal-content h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.legal-content a {
  color: var(--mint-2);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

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

  100% {
    background-position: 0% 50%;
  }
}

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

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

@media (max-width: 980px) {
  h1 {
    max-width: 690px;
  }

  .card-grid.four,
  .proof,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .systems-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 37, 29, 0.97);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 136px;
    background:
      linear-gradient(180deg, rgba(5, 37, 29, 0.99) 0%, rgba(5, 37, 29, 0.92) 54%, rgba(5, 37, 29, 0.56) 100%),
      url("assets/kinezio-motion-tech-mobile-products.png");
    background-position: center top;
    background-size: cover;
  }

  .hero-metrics,
  .card-grid.four,
  .proof,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .service-card,
  .proof-card,
  .timeline-item {
    min-height: auto;
  }

  .timeline-item span {
    margin-bottom: 24px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .brand {
    gap: 8px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.6rem;
  }
}
