/* =========================================
   RESET & BASE
   ========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  background: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */

h2 {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
}

p {
  font-family: "aktiv-grotesk-thin", sans-serif;
  font-weight: 200;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  z-index: 1000;
  transition: color 0.3s ease;
}

.nav__logo {
  opacity: 0;
  animation: fadeDropIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__menu {
  display: flex;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeDropIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.nav__menu a {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav__menu a:hover {
  opacity: 1;
}

/* Nav dark mode for light sections */
.nav--dark .nav__menu a {
  color: #B2B2B2;
  opacity: 1;
}

.nav--dark .nav__menu a:hover {
  color: #000000;
}

/* =========================================
   BUTTON
   ========================================= */

.btn {
  display: inline-block;
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--glass {
  padding: 0.875rem 2.5rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

.hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  height: 80%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero__logo {
  width: 520px;
  max-width: 80vw;
  opacity: 0;
  animation: fadeDropIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__tagline {
  font-family: "aktiv-grotesk-thin", sans-serif;
  font-weight: 200;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeDropIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero__tagline--white {
  color: #ffffff;
}

.hero__tagline--grey {
  color: #B2B2B2;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeDropIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

.btn--icon svg {
  display: block;
}

@keyframes fadeDropIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   SCROLL REVEAL
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }

/* =========================================
   ABOUT
   ========================================= */

.about {
  position: relative;
  background: linear-gradient(to left, #5AB1FE, #3e50ff, #000151, #000000);
  padding: 0 5rem 8rem;
}

.about__heading {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.about__scroll-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  height: 360vh;
  position: relative;
  padding-top: 40vh;
}

.about__scroll-text-inner {
  position: sticky;
  top: 20vh;
}

.about__body {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about__body:last-child {
  margin-bottom: 0;
}

.about__phrase {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  display: inline;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.4s ease, transform 0.4s ease;
}

.about__phrase.is-revealed {
  color: #ffffff;
}

/* Second paragraph hidden until first is done */
.about__body:nth-child(3) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about__body:nth-child(3).is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__visual {
  max-width: 1100px;
  margin: 8rem auto 0;
}

.about__visual-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Animation container layout ---- */
.about__visual-placeholder {
  position: relative;
  overflow: visible;
}

.anim-unified {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scale wrapper for both first-button and input phases */
.anim-unified__first,
.anim-unified__input {
  transform: scale(1.6);
  position: absolute;
}

/* ---- First standalone button ---- */
.anim-unified__first {
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.anim-unified__first.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Shared button styles ---- */
.anim-unified__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #9ca3af;
  overflow: hidden;
  min-width: 100px;
  transition: transform 0.3s ease;
}

.anim-unified__btn-label {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
  line-height: normal;
}

.anim-unified__btn.is-clicking {
  transform: scale(0.9);
}

.anim-unified__btn.is-clicked {
  background: #3e50ff;
  transform: scale(1);
}

/* ---- Mouse cursor ---- */
.anim-unified__cursor {
  position: absolute;
  width: 33px;
  height: 33px;
  bottom: -6px;
  right: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translate(40px, 40px);
  transition: transform 0.8s ease-in-out, opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.anim-unified__cursor.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.anim-unified__cursor.is-clicking {
  transform: translate(0, 2px) scale(0.9);
  transition: transform 0.1s ease;
}

/* ---- Input bar (frosted glass) ---- */
.anim-unified__input {
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.12);
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.8s ease-in-out, opacity 0.8s ease;
}

.anim-unified__input.is-visible {
  width: 240px;
  opacity: 1;
}

.anim-unified__input.is-fading {
  opacity: 0;
}

.anim-unified__input-text-wrap {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  line-height: normal;
}

.anim-unified__input-text {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #1a1a1a;
  white-space: nowrap;
  line-height: normal;
}

.anim-unified__text-cursor {
  display: none;
  width: 2px;
  height: 14px;
  background: #1a1a1a;
  margin-left: 1px;
  vertical-align: middle;
}

.anim-unified__text-cursor.is-visible {
  display: inline-block;
  animation: blinkCaret 0.5s ease infinite alternate;
}

@keyframes blinkCaret {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Second button inside input */
.anim-unified__input-btn-wrap {
  position: relative;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.anim-unified__input-btn-wrap.is-visible {
  opacity: 1;
}

/* =========================================
   FEATURES
   ========================================= */

.features {
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, #000000, #000151, #3e50ff, #5AB1FE);
  padding: 0 5rem 8rem;
}

.features__header {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200vh;
  margin-bottom: 50vh;
}

.features__title {
  position: sticky;
  top: 35vh;
  font-size: 3rem;
}

.features__phrase {
  opacity: 0.15;
  transition: opacity 0.6s ease;
}

.features__phrase.is-revealed {
  opacity: 1;
}

.features__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left: stretches full grid row so inner sticky works */
.features__left {
  position: relative;
}

.features__text-stack {
  position: sticky;
  top: 42vh;
  width: 100%;
}

.features__text-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.features__text-item:first-child {
  position: relative;
}

.features__text-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.features__label {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.features__headline {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.3;
  color: #B2B2B2;
}

/* Right: stacking cards */
.features__right {
  position: relative;
}

.features__card {
  position: sticky;
  top: 20vh;
  height: 60vh;
  border-radius: 16px;
  background: #ffffff;
  color: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 80vh;
}

.features__card:last-child {
  margin-bottom: 80vh;
}

.features__card:nth-child(1) { z-index: 1; }
.features__card:nth-child(2) { z-index: 2; }
.features__card:nth-child(3) { z-index: 3; }
.features__card:nth-child(4) { z-index: 4; }

.features__card-graphic {
  flex: 1;
  background: #f0f0f0;
}

.features__card-body {
  padding: 2rem;
}

.features__card-body p {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* =========================================
   ATTRIBUTES
   ========================================= */

.attributes {
  position: relative;
  z-index: 2;
  background: #ffffff;
  color: #000000;
  padding: 8rem 5rem;
}

.attributes__header {
  max-width: 1400px;
  margin: 0 auto 5rem;
}

.attributes__title {
  color: #000000;
}

.attributes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.attributes__card {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.attributes__card-title {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 2rem;
}

.attributes__card-body p {
  color: #86868b;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-left: 2.25rem;
  position: relative;
}

.attributes__card-body p .attr-icon {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  stroke: #3E50FF;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attributes__card-body p:last-child {
  margin-bottom: 0;
}

.attributes__card-body strong {
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 400;
  color: #1d1d1f;
}

/* =========================================
   CLOSING
   ========================================= */

.closing {
  position: relative;
  z-index: 3;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 3rem;
  background: linear-gradient(to right, #000000 0%, #000151 25%, #3e50ff 50%, #5AB1FE 65%, #945CE7 80%, #ff8110 100%);
}

.closing__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.closing__heading {
  margin-bottom: 4rem;
}

.closing__graphic {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  position: relative;
  z-index: 4;
  background: linear-gradient(to right, #000000 0%, #000151 25%, #3e50ff 50%, #5AB1FE 65%, #945CE7 80%, #ff8110 100%);
  padding: 6rem 3rem 3rem;
}

.footer__cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__cta-text {
  margin-bottom: 2rem;
  opacity: 0.7;
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer__logo img {
  height: 24px;
  width: auto;
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a {
  font-size: 0.8125rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer__nav a:hover {
  opacity: 1;
}

.footer__legal {
  font-size: 0.75rem;
  opacity: 0.3;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  h2 {
    font-size: 2.25rem;
  }

  .about__heading {
    font-size: 2.25rem;
  }

  .about__body {
    font-size: 1.125rem;
  }

  .features__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features__left {
    position: relative;
    height: auto;
  }

  .features__text-stack {
    position: relative;
    top: auto;
  }

  .features__text-item {
    position: relative;
    opacity: 1;
    transform: none;
  }

  .features__text-item:not(:first-child) {
    display: none;
  }

  .attributes__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav__menu {
    gap: 1.25rem;
  }

  .nav__menu a {
    font-size: 0.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero__logo {
    width: 280px;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .about__heading {
    font-size: 1.75rem;
  }

  .about__body {
    font-size: 1rem;
  }

  .about__scroll-text {
    height: 250vh;
  }

  .about,
  .features,
  .attributes,
  .closing {
    padding: 5rem 1.5rem;
  }

  .footer {
    padding: 4rem 1.5rem 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
