:root {
  --ink: #07100f;
  --ink-soft: #10201f;
  --paper: #f5fbf6;
  --paper-soft: #e8f4ee;
  --line: rgba(245, 251, 246, 0.2);
  --muted: #c4d7d0;
  --pink: #ff2cc6;
  --cyan: #27d8ff;
  --gold: #f2bb4b;
  --green: #6ee887;
  --danger: #ff6b59;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", sans-serif;
  color: var(--paper);
  background: #02040d;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 24%, rgba(39, 216, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 4, 13, 0.28), rgba(2, 4, 13, 0.92)),
    url("assets/funovative-space-background.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(255, 44, 198, 0.12), transparent 22%),
    radial-gradient(circle at 84% 80%, rgba(39, 216, 255, 0.11), transparent 26%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  mix-blend-mode: screen;
  opacity: 0.72;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1140px, calc(100% - 28px));
  height: 76px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 198px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.header-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font: 700 0.94rem "Archivo", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.button-primary {
  color: #07090b;
  background: linear-gradient(90deg, var(--cyan), var(--green) 52%, var(--gold));
  box-shadow: 0 12px 28px rgba(39, 216, 255, 0.24);
}

.button-secondary {
  color: var(--paper);
  background: rgba(245, 251, 246, 0.1);
  border: 1px solid rgba(245, 251, 246, 0.28);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 251, 246, 0.26);
  border-radius: 8px;
  background: rgba(245, 251, 246, 0.08);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--paper);
}

.mobile-nav {
  position: fixed;
  top: 98px;
  left: 50%;
  z-index: 45;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%);
  display: none;
  border: 1px solid rgba(245, 251, 246, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(245, 251, 246, 0.12);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 86svh;
  display: grid;
  align-items: end;
  padding: 132px max(24px, calc((100vw - 1140px) / 2)) 28px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background-image: url("assets/funovative-space-background.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 4, 13, 0.88) 0%, rgba(2, 4, 13, 0.54) 42%, rgba(2, 4, 13, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 4, 13, 0.92) 0%, rgba(2, 4, 13, 0.08) 34%, rgba(2, 4, 13, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  max-width: 100%;
  min-width: 0;
  padding-bottom: 26px;
}

.hero-logo {
  width: min(410px, 88vw);
  height: auto;
  margin-bottom: 14px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  font: 800 0.78rem "Archivo", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cyan);
}

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

h1,
h2,
h3 {
  font-family: "Archivo", sans-serif;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  margin-bottom: 14px;
  font-size: 4.8rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2.9rem;
  max-width: 780px;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: min(600px, 100%);
  font-size: 1.18rem;
  line-height: 1.62;
  color: #e5f6ee;
}

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

.hero-metrics {
  position: relative;
  z-index: 2;
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(245, 251, 246, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(245, 251, 246, 0.14);
}

.hero-metrics p {
  min-height: 92px;
  margin: 0;
  padding: 18px;
  background: rgba(7, 16, 15, 0.72);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 6px;
  font: 800 1.65rem "Archivo", sans-serif;
  color: var(--gold);
}

.hero-metrics span {
  color: var(--muted);
  line-height: 1.35;
}

.section,
.contact-section {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.section {
  position: relative;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: start;
  border-bottom: 1px solid rgba(245, 251, 246, 0.16);
}

.intro-text {
  display: grid;
  gap: 16px;
  color: #d9ebe4;
  font-size: 1.06rem;
  line-height: 1.72;
}

.intro-text p {
  margin: 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 251, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 11, 28, 0.92), rgba(10, 16, 38, 0.74)),
    rgba(245, 251, 246, 0.06);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.36);
}

.spotlight-art {
  min-height: 420px;
  background: #050814;
}

.spotlight-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-copy {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 46px);
  border-left: 1px solid rgba(245, 251, 246, 0.12);
}

.spotlight-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  color: var(--paper);
}

.spotlight-copy p {
  color: #d8e8f4;
  line-height: 1.64;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.engine-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(245, 251, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(5, 8, 20, 0.92), rgba(18, 24, 54, 0.74)),
    rgba(245, 251, 246, 0.06);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.engine-card img {
  width: min(360px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.44));
}

.engine-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.engine-card p {
  color: #d8e8f4;
  line-height: 1.62;
}

.engine-card-stargrid {
  background:
    radial-gradient(circle at 50% 18%, rgba(39, 216, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(5, 8, 20, 0.96), rgba(22, 17, 58, 0.74));
}

.engine-card-yumo {
  background:
    radial-gradient(circle at 50% 18%, rgba(110, 232, 135, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(5, 8, 20, 0.94), rgba(28, 45, 29, 0.72));
}

.project-card {
  min-width: 0;
  border: 1px solid rgba(245, 251, 246, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 8, 20, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-body {
  padding: 18px;
}

.project-body p,
.process-grid p,
.service-list p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.project-body p:last-child,
.process-grid p:last-child,
.service-list p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.process {
  border-top: 1px solid rgba(245, 251, 246, 0.16);
  border-bottom: 1px solid rgba(245, 251, 246, 0.16);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245, 251, 246, 0.16);
  border: 1px solid rgba(245, 251, 246, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.process-grid article {
  padding: 22px;
  background: rgba(5, 8, 20, 0.9);
}

.process-grid span {
  display: inline-block;
  margin-bottom: 24px;
  font: 800 0.82rem "Archivo", sans-serif;
  color: var(--pink);
}

.service-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(245, 251, 246, 0.16);
  border-radius: 8px;
  background: rgba(245, 251, 246, 0.16);
}

.service-list article {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  padding: 22px;
  background: rgba(5, 8, 20, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-copy a {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(245, 251, 246, 0.16);
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #e8f4ee;
  font-weight: 700;
}

.contact-form label:last-of-type,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.honeypot {
  display: none !important;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(245, 251, 246, 0.22);
  border-radius: 8px;
  background: rgba(7, 16, 15, 0.8);
  color: var(--paper);
  font: 500 1rem "Space Grotesk", sans-serif;
  padding: 12px;
}

select {
  min-height: 47px;
}

textarea {
  resize: vertical;
}

input::placeholder {
  color: #91aaa0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
}

.form-status.error {
  color: var(--danger);
}

.site-footer {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid rgba(245, 251, 246, 0.16);
  color: var(--muted);
}

.site-footer img {
  width: 150px;
}

.success-page {
  min-height: 100svh;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

.success-page img {
  width: min(360px, 82vw);
  margin-bottom: 10px;
}

.success-page p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

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

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

  .header-cta:hover,
  .button:hover {
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 172px;
  }

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 88svh;
    padding-top: 124px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-metrics,
  .intro-band,
  .process-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .project-spotlight,
  .engine-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-art {
    min-height: 320px;
  }

  .spotlight-copy {
    border-left: 0;
    border-top: 1px solid rgba(245, 251, 246, 0.12);
  }

  .section-title {
    display: block;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 68px;
  }

  .brand img {
    width: 148px;
    height: 46px;
  }

  .hero {
    min-height: 92svh;
    padding-inline: 18px;
    padding-bottom: 18px;
  }

  .hero-content {
    max-width: 340px;
    padding-bottom: 18px;
  }

  .hero-logo {
    width: min(320px, 84vw);
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  h3 {
    font-size: 1.22rem;
  }

  .hero-copy,
  .intro-text {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    max-width: 340px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .contact-section {
    width: calc(100% - 28px);
    padding: 54px 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .spotlight-art {
    min-height: 260px;
  }

  .site-footer {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-content,
  .hero-actions,
  .hero-copy {
    max-width: 340px;
  }
}

@media (max-width: 370px) {
  .hero-content,
  .hero-actions,
  .hero-copy {
    max-width: 314px;
  }
}
