@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: dark;
  --background: #061215;
  --foreground: #ffffff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.06);
  --accent: #ff6b4a;
  --accent-2: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 104px 24px 72px;
  isolation: isolate;
}

#pond {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #2c6d91;
}

#pond canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46) 64%, rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 38%, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 18px 60px rgba(0, 0, 0, 0.22);
  animation: navIn 0.7s ease both;
}

.nav::before,
.modal-card::before,
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
}

.nav-links a,
.nav-links button {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #fff;
}

.nav-apply,
.primary {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.nav-apply {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(180%);
}

.hero-copy {
  width: min(920px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

h1 {
  margin-bottom: 22px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(40px, 6.6vw, 78px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.95) 54%, rgba(255,255,255,0.66) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.intro {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.45;
}

.hero-actions {
  min-height: 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}

.primary {
  display: inline-grid;
  place-items: center;
  padding: 0 30px;
}

.primary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.primary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
}

.primary:disabled,
.nav-apply:disabled,
.is-submitted {
  cursor: not-allowed;
  opacity: 0.58;
}

.demo-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.3s ease;
}

.demo-link:hover {
  color: rgba(255, 255, 255, 0.42);
}

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

.glass-panel,
.modal-card,
.faq details {
  position: relative;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.glass-panel {
  border-radius: 28px;
  padding: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: end;
}

.split p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

#grow,
#grow ~ .section {
  background: #061215;
}

.growth-carousel {
  position: relative;
}

.growth-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 372px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 6px 2px 24px;
  scrollbar-width: none;
}

.growth-timeline::-webkit-scrollbar {
  display: none;
}

.timeline-card {
  position: relative;
  scroll-snap-align: start;
  height: 520px;
  overflow: hidden;
  border-radius: 28px;
  border: 0;
  background: #000;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.26);
}

.timeline-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.growth-sample {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.growth-sample canvas,
.growth-sample iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.growth-sample iframe {
  border: 0;
  pointer-events: none;
}

.timeline-title {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 30px 30px 0;
  color: #fff;
  pointer-events: none;
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2) 34%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
}

.timeline-card h3 {
  margin: 0;
  max-width: 100%;
  font-size: 21px;
  line-height: 1.02;
  font-weight: 780;
  white-space: nowrap;
}

.timeline-title p {
  margin: 0;
  max-width: 240px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.growth-description {
  display: none;
}

.growth-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.growth-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.growth-controls button:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.growth-dialog-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

#growthDialog h2 {
  max-width: 420px;
  margin: 22px 0 24px;
}

#growthDialog h2 h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.08;
  font-weight: 760;
}

#growthDialog h2 p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 3vw, 22px);
  line-height: 1.15;
  font-weight: 650;
}

.growth-dialog-copy strong {
  color: rgba(255, 255, 255, 0.92);
}

.terms-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.terms-copy p {
  margin: 0;
}

.grow-quote {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 72px;
  padding-bottom: 84px;
  text-align: center;
}

.grow-quote h2,
.grow-quote > p {
  margin: 0;
}

.grow-quote h2 {
  max-width: 980px;
  color: #fff;
  font-family: "Instrument Serif", serif;
  font-size: clamp(40px, 6.6vw, 78px);
  font-weight: 400;
  line-height: 1.16;
}

.grow-quote > p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.45;
}

.code-card {
  width: min(760px, 100%);
  margin-top: 16px;
}

.code-card pre {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.code-card pre {
  overflow-x: auto;
  padding: 22px;
  text-align: left;
}

.code-card code {
  color: rgba(255, 255, 255, 0.82);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
}

.combo-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  align-items: center;
  gap: 20px;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: #8e8e8e;
}

.combo-copy {
  padding: 42px 0 42px 52px;
  color: #111;
}

.combo-copy h3 {
  max-width: 300px;
  margin: 0;
  color: #0f1112;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0;
}

.combo-image-wrap {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 26px 26px 26px 0;
  background: #8e8e8e;
}

.combo-image-wrap img {
  width: 100%;
  max-width: 780px;
  display: block;
  border-radius: 18px;
}

.pond-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pond-tile {
  min-height: 250px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.pond-tile p,
.pond-tile span {
  margin: 0;
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.pond-tile p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 720;
}

.pond-tile span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 600;
}

.egg-stage {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.egg-stage::before,
.egg-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.egg-stage::before {
  width: 50px;
  height: 42px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset -10px -6px 0 rgba(255, 255, 255, 0.18);
}

.egg-stage::after {
  width: 14px;
  height: 12px;
  background: rgba(255, 107, 74, 0.8);
  transform: translate(-20%, -20%);
}

.pond-tile .egg-stage {
  background: #101416;
}

.faq {
  display: grid;
  gap: 14px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.faq h2 {
  margin-bottom: 10px;
}

.faq details {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 740;
}

.faq p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.footer-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.footer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.06) 42%, rgba(255,255,255,0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1.4fr);
  gap: 48px;
  padding: 36px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 22px;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 760;
}

.footer-logo img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.footer-brand p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

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

.footer-links div {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-links h3 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-bottom span {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-glass-text {
  margin: -26px 0 0;
  color: rgba(255, 255, 255, 0.045);
  font-size: min(25vw, 250px);
  font-weight: 800;
  line-height: 0.8;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  user-select: none;
}

.modal {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(2, 8, 10, 0.58);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  border-radius: 30px;
  padding: 28px;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.application-step {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.step-progress {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.step-copy {
  margin: -4px 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

.task-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.modal-task-link,
.modal-verify {
  width: 100%;
}

.verify-loader {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.verify-loader span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(183, 244, 228, 0.55), rgba(255, 255, 255, 0.92));
  transform-origin: left center;
  animation: verifyFill 7s linear both;
}

.fields {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.fields label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.fields input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.application-error {
  margin: 10px 0 0;
  color: #ff8c76;
  font-size: 13px;
  line-height: 1.4;
}

.modal-submit {
  width: 100%;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100vh;
    padding: 18px;
  }

  .nav {
    width: calc(100% - 28px);
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: clamp(27px, 8.7vw, 42px);
    line-height: 1.2;
    padding-bottom: 0.08em;
    white-space: nowrap;
  }

  .intro {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.45;
  }

  .grow-quote {
    gap: 12px;
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .grow-quote h2 {
    font-size: clamp(27px, 8.7vw, 42px);
    line-height: 1.2;
  }

  .grow-quote > p {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.45;
  }

  .code-card code {
    font-size: 11px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .combo-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .combo-copy {
    padding: 32px 26px 8px;
  }

  .combo-copy h3 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .combo-image-wrap {
    padding: 0 16px 18px;
  }

  .pond-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding-bottom: 0;
  }

  .pond-tile {
    min-height: 118px;
    gap: 3px;
    padding: 5px;
    border-radius: 10px;
  }

  .egg-stage {
    min-height: 74px;
    border-radius: 7px;
  }

  .egg-stage::before {
    width: 24px;
    height: 20px;
  }

  .egg-stage::after {
    width: 7px;
    height: 6px;
  }

  .pond-tile p {
    font-size: 8px;
    line-height: 1.1;
  }

  .pond-tile span {
    font-size: 6px;
    line-height: 1.1;
  }

  .site-footer {
    padding-bottom: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 26px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 26px;
  }

  .footer-glass-text {
    margin-top: -10px;
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

@keyframes verifyFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
