:root {
  --ink: #071016;
  --fog: #9fb3c3;
  --paper: #e8f0f4;
  --signal: #3ee0b0;
  --line: rgba(232, 240, 244, 0.1);
  --brand: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--paper);
  font-family: var(--body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.demo-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--pad);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.65);
  background: #0a1218;
  border-bottom: 1px solid var(--line);
}

.demo-bar a {
  color: var(--signal);
  text-decoration: none;
}

.demo-bar a:hover {
  text-decoration: underline;
}

.top {
  position: fixed;
  inset: 2.1rem 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem var(--pad);
  background: linear-gradient(
    180deg,
    rgba(7, 16, 22, 0.9) 0%,
    rgba(7, 16, 22, 0.35) 70%,
    transparent 100%
  );
}

.logo {
  font-family: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: rgba(232, 240, 244, 0.7);
}

.nav a:hover,
.nav-cta {
  color: var(--signal) !important;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(6.5rem + env(safe-area-inset-top)) var(--pad)
    clamp(2rem, 6vw, 4rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b151c;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 22, 0.35) 0%,
      rgba(7, 16, 22, 0.55) 45%,
      rgba(7, 16, 22, 0.92) 78%,
      var(--ink) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 16, 22, 0.78) 0%,
      rgba(7, 16, 22, 0.25) 55%,
      rgba(7, 16, 22, 0.45) 100%
    );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
}

.brand {
  margin: 0 0 0.65rem;
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.8vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.lede {
  margin: 0 0 1.35rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fog);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--signal);
  color: #062018;
  font-weight: 500;
}

.btn-primary:hover {
  background: #62ecc0;
}

.btn-ghost {
  border-color: rgba(232, 240, 244, 0.28);
  color: var(--paper);
  background: rgba(7, 16, 22, 0.35);
}

.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.section {
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  scroll-margin-top: 5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.title {
  margin: 0 0 1rem;
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 2.25rem;
  max-width: 42ch;
  color: var(--fog);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.split h3 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--brand);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.split p {
  margin: 0;
  color: var(--fog);
  max-width: 32ch;
  line-height: 1.55;
}

.idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(159, 179, 195, 0.7);
}

.contact .btn {
  margin-top: 0.25rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2rem var(--pad) 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(159, 179, 195, 0.75);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}
