:root {
  color-scheme: light;
  --dark: #173c34;
  --ink: #17231f;
  --green: #1f7a4d;
  --gold: #f2c94c;
  --cream: #f7f4ec;
  --stone: #d9d1c3;
  --white: #fffefa;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(31, 122, 77, 0.16), transparent 30rem),
    linear-gradient(135deg, #f7f4ec 0%, #eef3ea 44%, #dfe9df 100%);
}

button,
input {
  font: inherit;
}

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

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  position: absolute;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: var(--dark);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 16px 34px rgba(23, 60, 52, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.brand-mark::before {
  width: 3px;
  height: 24px;
  transform: rotate(36deg);
}

.brand-mark::after {
  width: 20px;
  height: 3px;
  transform: rotate(-28deg) translate(2px, -4px);
}

.contact-link {
  border: 1px solid rgba(23, 60, 52, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 16px;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 1.02fr);
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--green);
}

h1 {
  max-width: 760px;
  margin: 30px 0 0;
  color: #112c27;
  font-size: clamp(3rem, 6vw, 4.85rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(23, 35, 31, 0.76);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.55;
}

.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(23, 60, 52, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 10px 14px;
}

.proof svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signup {
  max-width: 650px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(23, 60, 52, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 80px rgba(23, 60, 52, 0.14);
}

.role-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(23, 60, 52, 0.1);
  border-radius: 8px;
  background: #edf2eb;
}

.role-toggle label {
  cursor: pointer;
}

.role-toggle input {
  position: absolute;
  opacity: 0;
}

.role-toggle span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: rgba(23, 35, 31, 0.68);
  font-size: 0.92rem;
  font-weight: 850;
  padding: 10px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.role-toggle input:checked + span {
  background: #ffffff;
  color: var(--dark);
  box-shadow: 0 8px 22px rgba(23, 60, 52, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.form-row input {
  min-height: 58px;
  width: 100%;
  border: 1px solid rgba(23, 60, 52, 0.18);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 16px;
}

.form-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.16);
  outline: none;
}

.form-row button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: 0 16px 30px rgba(23, 60, 52, 0.24);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 24px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.form-row button:hover {
  background: var(--green);
  box-shadow: 0 18px 36px rgba(31, 122, 77, 0.25);
  transform: translateY(-1px);
}

.fineprint {
  color: rgba(23, 35, 31, 0.58);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 12px 0 0;
}

.form-message {
  display: none;
  margin: 12px 0 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 14px;
}

.form-message.is-success,
.form-message.is-error {
  display: block;
}

.form-message.is-success {
  background: #e8f5e9;
  color: var(--dark);
}

.form-message.is-error {
  background: #fff1ef;
  color: #922f22;
}

.visual {
  aspect-ratio: 0.88;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(23, 60, 52, 0.24);
  isolation: isolate;
  transform: translateZ(0);
}

.photo-visual {
  background: #24382f;
}

.photo-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scale(1.035);
  animation: image-breathe 12s ease-in-out infinite alternate;
}

.photo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 22%, rgba(242, 201, 76, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(17, 44, 39, 0.02) 0%, rgba(17, 44, 39, 0.1) 42%, rgba(17, 44, 39, 0.44) 100%);
  pointer-events: none;
}

.photo-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  pointer-events: none;
}

.planning-overlay {
  position: absolute;
  z-index: 7;
  inset: 22px;
  pointer-events: none;
}

.data-card {
  position: absolute;
  border: 1px solid rgba(23, 60, 52, 0.14);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 18px 42px rgba(23, 35, 31, 0.18);
  color: var(--dark);
  padding: 11px 13px;
  backdrop-filter: blur(16px);
  animation: card-float 5.8s ease-in-out infinite;
}

.data-card strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.data-card span {
  display: block;
  margin-top: 2px;
  color: rgba(23, 35, 31, 0.58);
  font-size: 0.69rem;
  font-weight: 800;
}

.data-card-area {
  top: 0;
  right: 0;
  animation-delay: -1.2s;
}

.data-card-material {
  bottom: 17%;
  left: 0;
  animation-delay: -2.6s;
}

.data-card-craft {
  right: 4%;
  bottom: 5%;
  animation-delay: -3.8s;
}

.pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fffefa;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.5), 0 12px 32px rgba(17, 44, 39, 0.26);
  animation: pin-pulse 2.9s ease-out infinite;
}

.pin-one {
  left: 36%;
  top: 38%;
}

.pin-two {
  right: 24%;
  bottom: 31%;
  animation-delay: 1.1s;
}

.scan-line {
  position: absolute;
  top: 10%;
  bottom: 14%;
  left: 51%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(242, 201, 76, 0.95), transparent);
  box-shadow: 0 0 22px rgba(242, 201, 76, 0.55);
  animation: scan 5.5s ease-in-out infinite;
}

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line path {
  fill: none;
  stroke: rgba(255, 254, 250, 0.86);
  stroke-dasharray: 12 10;
  stroke-linecap: round;
  stroke-width: 2.4;
  filter: drop-shadow(0 8px 12px rgba(17, 44, 39, 0.24));
  animation: route-flow 8s linear infinite;
}

.chips {
  position: absolute;
  z-index: 8;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(23, 60, 52, 0.82);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 9px 11px;
  animation: chip-rise 5.2s ease-in-out infinite;
}

.chips span:nth-child(2) {
  animation-delay: -1.4s;
}

.chips span:nth-child(3) {
  animation-delay: -2.8s;
}

@keyframes image-breathe {
  from {
    transform: scale(1.035) translate3d(-0.4%, -0.2%, 0);
  }
  to {
    transform: scale(1.08) translate3d(0.6%, 0.4%, 0);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes pin-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.58), 0 12px 32px rgba(17, 44, 39, 0.26);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(242, 201, 76, 0), 0 12px 32px rgba(17, 44, 39, 0.26);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0), 0 12px 32px rgba(17, 44, 39, 0.26);
  }
}

@keyframes scan {
  0%,
  100% {
    left: 18%;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  50% {
    left: 78%;
  }
}

@keyframes route-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -132;
  }
}

@keyframes chip-rise {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .visual {
    aspect-ratio: 1;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
    padding-bottom: 32px;
  }

  .contact-link {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row button,
  .proof {
    width: 100%;
  }

  .role-toggle {
    grid-template-columns: 1fr;
  }

  .data-card-area {
    left: 0;
    right: auto;
  }

  .data-card-material {
    bottom: 23%;
  }

  .chips {
    right: 22px;
  }
}

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