:root {
  --bg: #000;
  --bg-soft: #090d13;
  --surface: rgba(161, 200, 255, 0.1);
  --text: #faf8f5;
  --muted: #b5bac6;
  --border: rgba(250, 248, 245, 0.18);
  --accent: #a1c8ff;
  --radius: 1.6rem;
  --container: min(1120px, 92vw);
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, background-color 0.3s ease;
}

.site-header.header-hidden {
  transform: translateY(-110%);
}

.site-header.header-popup {
  background: rgba(0, 0, 0, 0.72);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

main > section {
  width: 100%;
}

main > section:not(.hero) {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 1.8rem;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.9rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 1rem;
}

.primary-nav > a:not(.cta) {
  color: var(--muted);
  transition: color 0.2s ease;
}

.primary-nav > a:not(.cta):hover {
  color: var(--text);
}

.lang-toggle {
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-toggle:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.cta-solid {
  background: var(--text);
  color: #111;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: calc(100svh - var(--header-height));
}

.hero-aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.74;
  filter: grayscale(100%) contrast(1.2) brightness(0.58);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: clamp(3.5rem, 9vw, 8rem);
}

.eyebrow {
  width: max-content;
  margin: 0 auto 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 214, 230, 0.28);
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  color: #dbe4f0;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(2.4rem, 6.8vw, 6rem);
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.25rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

.hero-device-wrap {
  margin-top: clamp(2.4rem, 8vw, 5rem);
}

.hero-device {
  max-width: min(54rem, 92vw);
  margin-inline: auto;
  will-change: transform;
}

.statement {
  margin-top: 0;
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-radius: 2.2rem 2.2rem 0 0;
  background: linear-gradient(to bottom, rgba(14, 19, 27, 0.8), #000 18%);
}

.about-us {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background:
    linear-gradient(rgba(13, 15, 19, 0.58), rgba(13, 15, 19, 0.58)),
    url("../assets/images/difumine.png") center / cover no-repeat;
}

.about-us::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(6rem, 18vw, 12rem);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 82%);
  pointer-events: none;
}

.about-us h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.06;
  color: #fff;
}

.about-us p:not(.eyebrow) {
  margin: 1.2rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  max-width: 56rem;
}

.about-us .eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.narrow {
  max-width: 50rem;
  text-align: center;
}

.statement h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
}

.statement p {
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.statement .statement-subtitle {
  margin: 1.25rem auto 1.35rem;
  color: #dbe4f0;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  max-width: 56rem;
}

.manifesto {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto 2rem;
}

.manifesto p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.62;
}

.manifesto-signoff {
  color: var(--text);
}

.features {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 1rem 0 4.5rem;
}

.partners {
  position: relative;
  z-index: 1;
  background: transparent;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: 0 0 1.25rem;
}

.features::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    url("../assets/images/flatiron-construction-bw.png"),
    url("../assets/images/aurora-home.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.18) brightness(0.52);
  transform: scale(1.02);
}

.features::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.68) 52%,
    rgba(0, 0, 0, 0.86) 100%
  );
}

.features > .container,
.features .partners-intro,
.features .partners-shell {
  position: relative;
  z-index: 1;
}

.relative {
  position: relative;
}

.partners-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid rgba(250, 248, 245, 0.22);
  border-bottom: 1px solid rgba(250, 248, 245, 0.22);
  background: rgba(0, 0, 0, 0.14);
  padding: clamp(0.45rem, 1.3vw, 0.7rem) 0;
  overflow: hidden;
}

.partners-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  text-align: center;
}

.partners-intro .eyebrow {
  margin: 0;
}

.partners-intro h2 {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.08;
}

.partners-band-mask {
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.partners-band {
  display: flex;
  gap: 1.05rem;
  width: max-content;
  padding: 0.6rem 0.75rem;
  will-change: transform;
}

.partner-logo {
  flex: 0 0 auto;
  min-width: clamp(11.5rem, 16vw, 15rem);
  text-align: center;
  padding: 1rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(250, 248, 245, 0.36);
  background: transparent;
  color: rgba(250, 248, 245, 0.98);
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 1.85vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.features h2,
.ecosystem h2 {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(161, 200, 255, 0.18);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  min-height: 14rem;
}

.feature-card h3 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  margin-bottom: 0.8rem;
}

.feature-card p,
.ecosystem p {
  color: var(--muted);
}

.ecosystem {
  padding: 1.5rem 0 5rem;
}

.contact {
  position: relative;
  overflow: clip;
  padding: 1rem 0 5rem;
}

.contact-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.3rem, 3vw, 2.4rem);
  align-items: start;
}

.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0.62;
  filter: grayscale(100%) contrast(1.15) brightness(0.55);
  will-change: transform;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.64) 50%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.contact-copy {
  margin: 1rem 0 2rem;
  color: var(--muted);
}

.contact-pitch {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  background: linear-gradient(135deg, rgba(15, 20, 28, 0.92), rgba(7, 9, 12, 0.97));
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.contact-form label {
  color: #e8ecf3;
  font-size: 0.95rem;
}

.contact-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-inline > div {
  display: grid;
  gap: 0.45rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(250, 248, 245, 0.03);
  border: 1px solid rgba(250, 248, 245, 0.16);
  border-radius: 0.7rem;
  color: var(--text);
  font: inherit;
  padding: 0.78rem 0.84rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(161, 200, 255, 0.78);
  box-shadow: 0 0 0 2px rgba(161, 200, 255, 0.18);
}

.contact-form .is-invalid {
  border-color: rgba(255, 141, 141, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 141, 141, 0.2);
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#message-word-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-error {
  min-height: 1.2rem;
  margin: 0;
  color: #ff8d8d;
  font-size: 0.9rem;
}

.contact-status {
  min-height: 1.2rem;
  margin: 0;
  color: #c7f5c2;
  font-size: 0.92rem;
}

.contact-submit {
  justify-self: start;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.ecosystem-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.ecosystem-points {
  display: grid;
  gap: 1rem;
}

.ecosystem-points > div {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  background: linear-gradient(135deg, rgba(15, 20, 28, 0.9), rgba(7, 9, 12, 0.95));
}

.ecosystem-points h3 {
  margin-bottom: 0.4rem;
  font-size: calc(1.2rem + 1pt);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-animate] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(0);
  will-change: transform, opacity, filter;
}

[data-animate="blur-reveal"] {
  transform: none;
  opacity: 1;
}

.split-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.footer-wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 4.5rem 1rem auto 1rem;
    background: rgba(5, 8, 12, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

  .feature-grid,
  .ecosystem-inner,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-inline {
    grid-template-columns: 1fr;
  }

  .partners-intro {
    align-items: center;
  }

  .partners-intro h2 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.9rem 0;
  }
}

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

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