:root {
  color-scheme: light;
  --white: #ffffff;
  --text-primary: #0c1629;
  --logo-max-width: min(21vw, 126px);
  --logo-min-width: clamp(56px, 11.2vw, 98px);
  --transition-duration: 1200ms;
  /* Background gradient colors from Figma */
  --Neutral-10: #F8F8F8;
  --Green-10: #E8F0EF;
}

/* === GT Standard (self-hosted) === */
@font-face {
  font-family: "GT Standard";
  src: url("/fonts/GT-Standard-M-Standard-Regular.woff2") format("woff2"),
       url("/fonts/GT-Standard-M-Standard-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Standard";
  src: url("/fonts/GT-Standard-M-Extended-Medium.woff2") format("woff2"),
       url("/fonts/GT-Standard-M-Extended-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Standard";
  src: url("/fonts/GT-Standard-M-Standard-Semibold.woff2") format("woff2"),
       url("/fonts/GT-Standard-M-Standard-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Standard Extended";
  src: url("/fonts/GT-Standard-M-Extended-Medium.woff2") format("woff2"),
       url("/fonts/GT-Standard-M-Extended-Medium.woff") format("woff");
  font-weight: 500; /* Medium */
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
  overflow: auto;
  overscroll-behavior-y: none;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  height: 100vh;
  min-height: 100%;
}

.background__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /*opacity: 35%;*/
  /* Radial gradient matching Figma design */
  /*background: radial-gradient(
    236.94% 236.94% at 50% 0%,
    var(--Neutral-10, #F8F8F8) 0%,
    var(--Green-10, #E8F0EF) 100%
  );*/
  background: conic-gradient(from 180deg at 50% 46.61%, #E8F0EF 0deg, #D4D5E7 51.92deg, #FFFFFF 126.35deg, #DCEDEC 180deg, #D4D5E7 285.58deg, #DCEDEC 360deg);
  filter: blur(105px); /* Applies a 5-pixel blur radius to the element */
  opacity: 50%;


  /* Ensure full coverage */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  /* Smooth rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.background__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(736px, 102.2vw, 1336.94px);
  height: clamp(703px, 97.6vh, 1307.9px);
  background-image: url('http://localhost:3845/assets/8985587d2ad699139973c4bebe16c67bc2a3d90f.png');
  background-size: 116.16% 116.5%;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: color;
  z-index: 1;
  pointer-events: none;
}

.background__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/background.svg') center/cover no-repeat;
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}


.background__pattern {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.background__pattern--screen {
  /* First pattern asset with mix-blend-screen - matching Figma */
  left: 50%;
  top: calc(50% - 0.25px);
  transform: translate(-50%, -50%);
  width: clamp(1182px, 164vw, 2364px);
  height: clamp(689px, 95.7vh, 1378px);
  background-image: url('http://localhost:3845/assets/8f9a6cd8cfc9ec034507f50443d7f706f1b1cc10.png');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 1;
  /* Ensure visibility */
  display: block;
  visibility: visible;
}

.background__pattern--color {
  /* Second pattern asset with mix-blend-color - matching Figma */
  left: calc(50% + 0.726px);
  top: calc(50% + 50.5px);
  transform: translate(-50%, -50%);
  /* Expanded size with inset to match Figma */
  width: clamp(736px, 102.2vw, 1553px);
  height: clamp(703px, 97.6vh, 1524px);
  background-image: url('http://localhost:3845/assets/8985587d2ad699139973c4bebe16c67bc2a3d90f.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: color;
  opacity: 1;
  /* Ensure visibility */
  display: block;
  visibility: visible;
}

.background__white-overlay {
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  transition: opacity var(--transition-duration) ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.background__white-overlay.is-visible {
  opacity: 1;
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  max-height: calc(100vh - 100px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28.444px;
  max-width: 820px;
  width: 100%;
  margin-top: -60px;
  position: relative;
  padding-bottom: 80px;
}

.hero__content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  position: relative;
  min-height: 447px;
}

/* Alpha compositing & layering */
.hero, .hero__content, .hero__seed { background: transparent !important; }
.background { position: fixed; inset: 0; z-index: 0; }
.background__gradient { position: absolute; inset: 0; z-index: 0; }
.background__pattern { z-index: 1; }
.background__white-overlay { z-index: 2; }
.hero { position: relative; z-index: 3; }
.hero__seed { position: relative; z-index: 4; }

/* Seed animation */
.hero__seed {
  height: 305.52px;
  width: 159.6px;
  position: relative;
  margin: 0;
  margin-top: clamp(12px, 2vh, 16px);
  opacity: 0;
  filter: none !important; /* avoid iOS rasterizing the seed subtree against white */
  transform: scale(0.96);
  transition: opacity 300ms linear;
  background: transparent;
}

.hero__seed.is-visible {
  animation: seed-focus 2.5s ease-out forwards;
  filter: none !important;
}

.hero__seed-video,
.hero__seed-img-ios {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: none;
  background: transparent !important;
  pointer-events: none;
}

.hero__seed-video {
  display: block; /* default: video for non-iOS */
  background-color: transparent !important;
}

/* Headline */
.hero__headline {
  font-family: "GT Standard Extended", "GT Standard";
  font-weight: 500;
  font-size: 40px;
  line-height: 1.2;
  color: #4b4c4f;
  max-width: 1100px;
  margin: 0;
  padding: 0;
  text-align: center;
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transform: scale(0.96);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
  position: absolute;
  top: 260px;
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  width: 100%;
  white-space: nowrap;
}

.hero__headline.is-visible {
  animation: headline-focus 2.5s ease-out forwards;
}

/* Hide mobile line break on desktop */
.mobile-break {
  display: none;
}

/* Subheadline */
.hero__subheadline {
  font-family: "GT Standard";
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #4b4c4f;
  max-width: 694px;
  margin: 0;
  padding: 0;
  text-align: center;
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transform: scale(0.96);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
  position: absolute;
  top: 320px;
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  width: 100%;
  white-space: nowrap;
}

.hero__subheadline.is-visible {
  animation: subheadline-focus 2.5s ease-out forwards;
}

/* Button */
.hero__button {
  background: #f8f8f8;
  border: none;
  border-radius: 25.5px;
  padding: 14px 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow:
    -8px -8px 20px 0px rgba(255, 255, 255, 0.8),
    8px 8px 20px 0px rgba(41, 121, 111, 0.2);
  position: absolute;
  top: 380px;
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  margin: 0;
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transition: opacity 300ms linear;
  /* Re-enable pointer events for button */
  pointer-events: auto;
}

.hero__button.is-visible {
  animation: button-focus 2.5s ease-out forwards;
}

.hero__button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25.5px;
  box-shadow: 0px 0px 5px 0px inset #e8f0ef;
  pointer-events: none;
}

.hero__button:hover {
  transform: translateY(-1px);
  box-shadow:
    -8px -8px 25px 0px rgba(255, 255, 255, 0.9),
    8px 8px 25px 0px rgba(41, 121, 111, 0.3);
}

.hero__button:active {
  transform: translateY(0);
}

.hero__button-icon {
  width: 21.333px;
  height: 21.333px;
  flex-shrink: 0;
}

.hero__button-text {
  font-family: "GT Standard";
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: #35988f;
  letter-spacing: 0.16px;
  white-space: nowrap;
}

/* Thank you message */
.hero__thank-you {
  display: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero__thank-you.is-visible {
  display: block;
  opacity: 1;
  transform: scale(1);
  animation: thank-you-appear 0.6s ease-out forwards;
}

.hero__thank-you-text {
  font-family: "GT Standard";
  color: #2c2d2e;
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Button hidden state */
.hero__button.is-hidden {
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transform: translateX(-50%) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.6s ease-out,
    filter 0.6s ease-out,
    transform 0.6s ease-out;
}

/* Thank you animation */
@keyframes thank-you-appear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header */
.header {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.header__logo {
  height: 66px;
  width: 50px;
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transform: scale(0.96);
  transition: opacity 300ms linear;
  pointer-events: none;
}

.header__logo.is-visible {
  animation: logo-focus 2.5s ease-out forwards;
}

@keyframes logo-focus {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.9);
    transform: scale(0.96);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: scale(1);
  }
}

@keyframes seed-focus {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.9);
    transform: scale(0.96);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: scale(1);
  }
}

@keyframes headline-focus {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.9);
    transform: translateX(-50%) scale(0.96);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    filter: blur(4px) saturate(1.1);
    transform: translateX(-50%) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes subheadline-focus {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.9);
    transform: translateX(-50%) scale(0.96);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    filter: blur(4px) saturate(1.1);
    transform: translateX(-50%) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes button-focus {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.9);
    transform: translateX(-50%) scale(0.96);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    filter: blur(4px) saturate(1.1);
    transform: translateX(-50%) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes contact-focus {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.9);
    transform: translateX(-50%) scale(0.96);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    filter: blur(4px) saturate(1.1);
    transform: translateX(-50%) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    transform: translateX(-50%) scale(1);
  }
}

.contact {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 12px) + 12px);
  transform: translateX(-50%) scale(0.96);
  z-index: 50;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  text-align: center;
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transition: opacity 300ms linear;
  pointer-events: none; /* prevent accidental taps */
  width: auto;
  white-space: nowrap;
}

.contact {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 12px) + 12px);
  transform: translateX(-50%) scale(0.96);
  z-index: 50;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  text-align: center;
  opacity: 0;
  filter: blur(18px) saturate(0.9);
  transition: opacity 300ms linear;
  pointer-events: none; /* prevent accidental taps, but allow link interaction */
  width: auto;
  white-space: nowrap;
}

.contact.is-visible {
  animation: contact-focus 2.5s ease-out forwards;
  pointer-events: none; /* Keep none, only the link will have auto */
}

.contact__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-in-out;
  /* Re-enable pointer events for the link */
  pointer-events: auto;
}

.contact__link:hover,
.contact__link:focus-visible {
  border-color: currentColor;
}

body.background-complete {
  overflow: auto;
}

@media (max-width: 600px) {
  body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .background__pattern--screen {
    width: clamp(591px, 164vw, 1182px);
    height: clamp(345px, 95.7vh, 689px);
  }

  .background__pattern--color {
    /* Expanded size with inset to match Figma on mobile */
    width: clamp(368px, 102.2vw, 777px);
    height: clamp(352px, 97.6vh, 762px);
    left: 50%;
    top: calc(50% + 25px);
  }

  .header {
    top: 15px;
  }

  .header__logo {
    height: 50px;
    width: 38px;
  }

  .hero__content {
    max-width: 335px;
    gap: clamp(16px, 3vh, 24px);
    margin-top: clamp(-70px, -12vh, -50px);
  }

  .hero__seed {
    height: clamp(182.4px, 25.08vh, 250.8px);
    width: clamp(94.62px, 13.11vh, 131.1px);
    margin: 0;
    margin-top: clamp(8px, 1.6vh, 12px);
  }

  /* Show mobile line break on mobile */
  .mobile-break {
    display: inline;
  }

  .hero__headline {
    font-size: 24px;
    line-height: 1.2;
    max-width: 281px;
    top: 185px;
    white-space: normal;
  }

  .hero__subheadline {
    font-size: 16px;
    line-height: 1.4;
    max-width: 281px;
    top: 250px;
    white-space: normal;
  }

  .hero__content-inner {
    min-height: clamp(280px, 50vh, 340px);
    gap: clamp(20px, 4vh, 28px);
  }

  .hero {
    padding: 0 1rem;
    max-height: calc(100vh - 70px);
  }

  .hero__button {
    top: 310px;
  }

  .contact {
    padding: clamp(0.75rem, 2vh, 1.25rem) 1rem;
    bottom: calc(env(safe-area-inset-bottom, 10px) + 10px);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  }
}

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

  .hero__logo {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .contact {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .background__white-overlay {
    transition: none;
  }
}
