/* CropMap landing — product-led miniature cropland world */

@font-face {
  font-family: 'Cynetiq';
  src: url('../fonts/cynetiqFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --lp-ink: #14241a;
  --lp-ink-soft: #3d5546;
  --lp-leaf: #1f7a3a;
  --lp-leaf-deep: #0f5a28;
  --lp-glow: #7fd99a;
  --lp-soil: #c4a35a;
  --lp-sky-top: #d7ece0;
  --lp-sky-mid: #a8d4b8;
  --lp-sky-bot: #6f9e78;
  --lp-surface: rgba(255, 255, 255, 0.72);
  --lp-surface-solid: #f3f8f4;
  --lp-line: rgba(20, 36, 26, 0.12);
  --lp-radius: 14px;
  --lp-max: 1120px;
  --lp-nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.lp-page {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Cynetiq', 'Segoe UI', sans-serif;
  color: var(--lp-ink);
  /* Bottom stays deep green so no light seam can flash under footer */
  background-color: #0d3320;
  background-image:
    radial-gradient(1200px 700px at 70% -10%, rgba(127, 217, 154, 0.35), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(196, 163, 90, 0.18), transparent 50%),
    linear-gradient(
      180deg,
      var(--lp-sky-top) 0%,
      var(--lp-sky-mid) 18%,
      #eef6ef 36%,
      var(--lp-surface-solid) 58%,
      #c8e0d0 78%,
      #3f7d54 90%,
      #164a2b 96%,
      #0d3320 100%
    );
  overflow-x: hidden;
}

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

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

.lp-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.lp-skip:focus {
  left: 12px;
  top: 12px;
}

/* —— Top bar over hero —— */
.lp-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: var(--lp-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  pointer-events: none;
}

.lp-topbar a,
.lp-topbar button {
  pointer-events: auto;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 2.2vw, 18px);
  letter-spacing: 0.01em;
  color: var(--lp-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  min-width: 0;
}

.lp-brand-short {
  display: none;
}

.lp-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(15, 90, 40, 0.22));
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px 14px;
}

.lp-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-ink-soft);
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.lp-nav-link:hover {
  color: var(--lp-leaf-deep);
}

.lp-lang-btn {
  appearance: none;
  border: 1px solid rgba(20, 36, 26, 0.16);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  color: var(--lp-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lp-lang-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(20, 36, 26, 0.28);
  transform: translateY(-1px);
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-btn:hover {
  transform: translateY(-1px);
}

.lp-btn:active {
  transform: translateY(0);
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(20, 36, 26, 0.14);
  backdrop-filter: blur(10px);
  color: var(--lp-ink);
}

.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-leaf) 0%, #2bb673 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 90, 40, 0.28);
}

.lp-btn-primary:hover {
  box-shadow: 0 14px 28px rgba(15, 90, 40, 0.34);
}

.lp-btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

/* —— Hero: full-bleed world + copy —— */
.lp-hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  isolation: isolate;
}

.lp-world-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 62% 48%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(215, 236, 224, 0.35) 0%, rgba(111, 158, 120, 0.25) 100%);
}

.lp-world-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  /* Allow vertical page scroll on phones; drag still works horizontally */
  touch-action: pan-y;
  cursor: grab;
}

.lp-world-stage canvas:active {
  cursor: grabbing;
}

.lp-world-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(215, 236, 224, 0.82) 0%, rgba(215, 236, 224, 0.55) 34%, rgba(215, 236, 224, 0.08) 62%, transparent 78%),
    linear-gradient(180deg, rgba(215, 236, 224, 0.55) 0%, transparent 28%, transparent 72%, rgba(238, 246, 239, 0.85) 100%);
}

.lp-world-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20, 36, 26, 0.08);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-world-status.is-done {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

html.lp-world-loading .lp-world-stage::after {
  content: '';
  position: absolute;
  inset: auto 50% 42% auto;
  width: 36px;
  height: 36px;
  margin-right: -18px;
  border-radius: 50%;
  border: 3px solid rgba(31, 122, 58, 0.2);
  border-top-color: var(--lp-leaf);
  animation: lp-spin 0.9s linear infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes lp-spin {
  to { transform: rotate(360deg); }
}

.lp-hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(100%, var(--lp-max));
  margin: 0 auto;
  padding:
    calc(var(--lp-nav-h) + 24px)
    clamp(16px, 4vw, 40px)
    clamp(40px, 8vh, 72px);
  max-width: 560px;
  margin-left: clamp(16px, 6vw, 72px);
  animation: lp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-hero-brand {
  margin: 0 0 18px;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  text-wrap: balance;
}

.lp-hero-brand > span {
  display: inline;
  white-space: nowrap;
  font-size: 0.55em;
  letter-spacing: 0.03em;
  color: var(--lp-ink-soft);
  margin-left: 0.35em;
  font-weight: 500;
  vertical-align: baseline;
}

.lp-cynetiq {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}

.lp-cynetiq:hover,
.lp-cynetiq:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.lp-hero-lead {
  margin: 0 0 28px;
  max-width: 36ch;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--lp-ink-soft);
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lp-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(61, 85, 70, 0.85);
}

/* —— Content sections —— */
.lp-main {
  position: relative;
  z-index: 1;
  /* Light surface through content; only the last stretch deepens into the footer */
  background: linear-gradient(
    180deg,
    transparent 0,
    var(--lp-surface-solid) 36px,
    var(--lp-surface-solid) calc(100% - 260px),
    #d7ebde calc(100% - 180px),
    #7fb892 calc(100% - 110px),
    #2f6b45 calc(100% - 56px),
    #164a2b calc(100% - 28px),
    #0d3320 100%
  );
  padding-bottom: 0;
}

.lp-section {
  width: min(100%, var(--lp-max));
  margin: 0 auto;
  padding: clamp(56px, 10vh, 96px) clamp(16px, 4vw, 40px);
}

.lp-section-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-leaf-deep);
}

.lp-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lp-section > p,
.lp-section-lead {
  margin: 0 0 36px;
  max-width: 58ch;
  color: var(--lp-ink-soft);
  line-height: 1.6;
  font-size: 16px;
}

.lp-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.lp-feature-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lp-feature p {
  margin: 0;
  color: var(--lp-ink-soft);
  line-height: 1.5;
  font-size: 14px;
}

.lp-feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(31, 122, 58, 0.12), rgba(127, 217, 154, 0.28));
  border: 1px solid var(--lp-line);
  display: grid;
  place-items: center;
  color: var(--lp-leaf-deep);
  font-size: 18px;
}

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.lp-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.lp-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.lp-steps span {
  color: var(--lp-ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.lp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lp-ink);
  color: #e8f6ec;
  font-size: 13px;
}

.lp-crop-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 36, 26, 0.05);
  border: 1px solid var(--lp-line);
  font-size: 12px;
  color: var(--lp-ink-soft);
}

.lp-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-leaf);
}

.lp-crop-legend-wide {
  margin-top: 8px;
}

.lp-crop-legend-wide .lp-chip i {
  background: var(--lp-leaf);
  opacity: 0.75;
}

.lp-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.lp-index-card {
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--lp-line);
  box-shadow: 0 16px 36px rgba(20, 36, 26, 0.05);
}

.lp-index-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.lp-index-sub {
  margin: 0 0 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-leaf-deep) !important;
  opacity: 0.85;
}

.lp-index-card > p:not(.lp-index-sub) {
  margin: 0 0 16px;
  color: var(--lp-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.lp-scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 8px;
  width: 100%;
  min-height: 12px;
  background: linear-gradient(
    90deg,
    #F44336 0%,
    #FF9800 20%,
    #FFEB3B 40%,
    #C6FF00 60%,
    #4CAF50 80%,
    #006837 100%
  );
}

.lp-scale span {
  display: block;
  min-height: 12px;
  height: 100%;
}

.lp-scale--ndmi {
  background: linear-gradient(
    90deg,
    #F44336 0%,
    #FFEB3B 25%,
    #4CAF50 45%,
    #80DEEA 70%,
    #2196F3 85%,
    #0D47A1 100%
  );
}

.lp-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--lp-ink-soft);
  margin-bottom: 4px;
}

.lp-index-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--lp-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.lp-cta-band {
  margin: 0 clamp(16px, 4vw, 40px) clamp(36px, 5vh, 52px);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 56px);
  background:
    radial-gradient(600px 240px at 85% 20%, rgba(127, 217, 154, 0.28), transparent 60%),
    linear-gradient(145deg, #0c4a22 0%, #1a6b34 48%, #248a45 100%);
  color: #f3fbf5;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--lp-max) + 80px);
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 22px 48px rgba(8, 40, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lp-cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.lp-cta-band p {
  margin: 0;
  max-width: 42ch;
  opacity: 0.88;
  line-height: 1.5;
}

.lp-cta-band .lp-btn-primary {
  background: #fff;
  color: var(--lp-leaf-deep);
  box-shadow: none;
}

.lp-footer {
  border-top: 1px solid rgba(243, 251, 245, 0.12);
  background: transparent;
  margin: 0;
  padding: 22px clamp(16px, 4vw, 40px) calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.lp-footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(243, 251, 245, 0.78);
  letter-spacing: 0.01em;
}

.lp-footer .lp-cynetiq {
  color: inherit !important;
}

.lp-footer .lp-cynetiq:hover,
.lp-footer .lp-cynetiq:focus {
  color: inherit !important;
}

@media (max-width: 1100px) {
  .lp-feature-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lp-feature-grid,
  .lp-feature-grid-4,
  .lp-index-grid {
    grid-template-columns: 1fr;
  }

  .lp-hero-copy {
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, 560px);
    text-align: left;
  }

  .lp-world-veil {
    background:
      linear-gradient(180deg, rgba(215, 236, 224, 0.5) 0%, transparent 26%, transparent 58%, rgba(238, 246, 239, 0.92) 100%),
      linear-gradient(90deg, rgba(215, 236, 224, 0.35), transparent 55%);
  }
}

@media (max-width: 767px) {
  :root {
    --lp-nav-h: 56px;
  }

  .lp-topbar {
    padding: 0 12px;
    /* World stage üzerinde sabit; copy bandına taşmasın */
    position: absolute;
    z-index: 6;
  }

  .lp-brand {
    font-size: 15px;
    gap: 8px;
    font-weight: 700;
  }

  .lp-brand-logo {
    width: 34px;
    height: 34px;
  }

  .lp-brand-full {
    display: none;
  }

  .lp-brand-short {
    display: inline;
    white-space: nowrap;
  }

  .lp-nav-link {
    display: none;
  }

  .lp-nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .lp-nav-actions .lp-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .lp-lang-btn {
    min-width: 40px;
    min-height: 36px;
  }

  /*
   * Mobile hero = stacked composition (not text-on-globe):
   * [nav over world] → closer globe stage → frosted copy + CTA → content
   */
  .lp-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    isolation: isolate;
  }

  .lp-world-stage {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: 0 0 auto;
    width: 100%;
    height: min(62dvh, 560px);
    min-height: 280px;
    overflow: hidden;
    background:
      radial-gradient(ellipse 80% 70% at 50% 42%, rgba(255, 255, 255, 0.34), transparent 68%),
      linear-gradient(180deg, #cfe8d8 0%, #9fc9ae 55%, #7aab8a 100%);
  }

  .lp-world-veil {
    background:
      linear-gradient(180deg, rgba(207, 232, 216, 0.55) 0%, transparent 22%, transparent 70%, rgba(243, 248, 244, 0.55) 100%);
  }

  .lp-world-status {
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    width: max-content;
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 4;
  }

  .lp-world-status.is-done {
    transform: translateX(-50%) translateY(8px);
  }

  html.lp-world-loading .lp-world-stage::after {
    inset: 50% auto auto 50%;
    margin: -18px 0 0 -18px;
  }

  .lp-hero-copy {
    position: relative;
    z-index: 2;
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px 18px 28px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(243, 248, 244, 0.92) 0%, #f3f8f4 28%, #eef6ef 100%);
    border-top: 1px solid rgba(20, 36, 26, 0.06);
    box-shadow: 0 -12px 28px rgba(20, 36, 26, 0.06);
    animation: none;
  }

  .lp-hero-brand {
    margin: 0 0 12px;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.12;
    color: var(--lp-ink);
    text-shadow: none;
  }

  .lp-hero-brand > span {
    display: block;
    margin: 6px 0 0;
    font-size: 0.48em;
    letter-spacing: 0.04em;
  }

  .lp-hero-lead {
    margin: 0 auto 20px;
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lp-ink-soft);
  }

  .lp-hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }

  .lp-hero-cta .lp-btn {
    width: 100%;
    max-width: none;
  }

  .lp-main {
    /* Clear break after hero; first section never under status/CTA */
    margin-top: 0;
    padding-top: 8px;
  }

  .lp-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 40px;
  }

  .lp-section:first-child {
    padding-top: 36px;
  }

  /* Keep 6-stop color bar (2-col grid hid the scale on mobile) */
  .lp-scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    height: 12px;
  }

  .lp-cta-band {
    margin-left: 12px;
    margin-right: 12px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }

  .lp-cta-band .lp-btn {
    width: 100%;
  }

  .lp-footer {
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero-copy,
  html.lp-world-loading .lp-world-stage::after {
    animation: none;
  }
}
