:root {
  --bg: #030405;
  --ink: #f6f8f4;
  --muted: #a5ada4;
  --soft: #dfe6dd;
  --accent: #7cff37;
  --accent-strong: #b8ff6a;
  --panel: #101316;
  --panel-2: #171b1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(124, 255, 55, 0.42);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(124, 255, 55, 0.05), transparent 26%),
    linear-gradient(180deg, #050607 0%, #020303 52%, #080a0b 100%);
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0%, rgba(124, 255, 55, 0.1) 46%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 86px);
  mix-blend-mode: screen;
  opacity: 0.36;
  transform: translateX(-35%);
  animation: gradient-sweep 11s linear infinite;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, rgba(124, 255, 55, 0.04) 100%);
  z-index: -2;
}

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

p {
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0a0e0c;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(124, 255, 55, 0.18);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.72);
}

.site-nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(124, 255, 55, 0.1);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.8);
  color: var(--ink);
}

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

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.98) 0%, rgba(3, 4, 5, 0.84) 36%, rgba(3, 4, 5, 0.3) 67%, rgba(3, 4, 5, 0.76) 100%),
    linear-gradient(180deg, transparent 62%, var(--bg) 100%),
    url("assets/groek-guy-mobile-apps.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(124, 255, 55, 0.08), transparent),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.035) 14px);
  opacity: 0.72;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 52px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 680px;
  margin-top: 16px;
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.6rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.22rem;
}

.hero-copy {
  max-width: 610px;
  margin-top: 22px;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--accent);
  color: #071006;
  box-shadow: 0 0 42px rgba(124, 255, 55, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(13, 16, 18, 0.72);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--line-strong);
  background: rgba(124, 255, 55, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 132px));
  gap: 14px;
  max-width: 520px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.hero-stats dt {
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.section {
  padding: 96px 0;
}

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

.intro-band {
  padding-top: 54px;
  background: linear-gradient(180deg, rgba(124, 255, 55, 0.05), transparent);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.section-copy,
.feature-copy p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.service-card {
  min-height: 278px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 255, 55, 0.08), transparent 35%),
    var(--panel);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-top: 44px;
  text-transform: uppercase;
}

.service-card p {
  margin-top: 16px;
  color: var(--muted);
}

.card-index {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.process-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 22, 0.82);
}

.timeline-item > span {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 900;
}

.timeline-item h3 {
  text-transform: uppercase;
}

.timeline-item p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.62fr);
  gap: 48px;
  align-items: start;
}

.feature-copy {
  display: grid;
  gap: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.feature-list strong {
  color: var(--ink);
  text-transform: uppercase;
}

.feature-list span {
  color: var(--muted);
}

.contact-section {
  padding-top: 50px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(124, 255, 55, 0.14), transparent 34%),
    #0b0f0d;
}

.contact-panel > div {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  margin-top: 10px;
}

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

.site-footer a:not(.brand) {
  color: var(--soft);
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus-visible {
  color: var(--accent);
  outline: none;
}

.copyright {
  text-align: right;
}

.legal-main {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 62px 0 76px;
}

.legal-hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
}

.legal-hero p:last-child {
  margin-top: 18px;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 24px;
  padding-top: 38px;
}

.legal-content section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 22, 0.76);
}

.legal-content h2 {
  font-size: 1.18rem;
}

.legal-content p {
  margin-top: 12px;
  color: var(--muted);
}

.legal-content a {
  color: var(--accent);
}

.reveal {
  opacity: 1;
  transform: none;
}

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

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

@keyframes gradient-sweep {
  0% {
    transform: translateX(-35%);
  }
  100% {
    transform: translateX(35%);
  }
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .split-feature,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .button {
    justify-self: start;
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(300px, calc(100vw - 32px));
    padding: 8px;
    background: rgba(8, 10, 12, 0.96);
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    min-height: 82svh;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 5rem);
  }

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

  .section {
    padding: 72px 0;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .legal-main {
    padding-top: 32px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-card,
  .timeline-item,
  .feature-list div,
  .legal-content section {
    padding: 18px;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
