@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --green: #0b8f19;
  --green-dark: #056111;
  --green-deep: #03330c;
  --green-soft: #ecf7e9;
  --lime: #72d72d;
  --lime-soft: #a7e97b;
  --ink: #071833;
  --muted: #58708f;
  --line: #d7e0ec;
  --paper: #f7faf6;
  --white: #ffffff;
  --warning: #f59e0b;
  --shadow: 0 18px 50px rgba(7, 24, 51, 0.12);
  --button-gradient: linear-gradient(180deg, #0c9d19, #087314);
  --button-shadow: 0 10px 24px rgba(8, 115, 20, 0.26);
  --radius: 16px;
  --radius-sm: 12px;
  --panel-inset: clamp(10px, 2.5vw, 28px);
  --panel-radius: clamp(26px, 4vw, 44px);
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0, rgba(114, 215, 45, 0.14), transparent 34rem),
    radial-gradient(circle at 100% 40%, rgba(11, 143, 25, 0.07), transparent 30rem),
    linear-gradient(180deg, #ffffff, var(--paper));
  background-color: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

::selection {
  color: var(--green-deep);
  background: var(--lime-soft);
}

:focus-visible {
  outline: 3px solid rgba(114, 215, 45, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.site-header[data-scrolled] {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(215, 224, 236, 0.8);
  box-shadow: 0 12px 32px rgba(7, 24, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 36px;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav a:hover {
  color: var(--green-dark);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.site-footer a:hover {
  color: var(--lime-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.header-login:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

/* ---------- Buttons ---------- */

.header-cta,
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--button-gradient);
  box-shadow: var(--button-shadow);
}

.header-cta::after,
.button.primary::after,
.plan-cta.premium-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.35) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform 550ms ease;
  pointer-events: none;
}

.header-cta:hover::after,
.button.primary:hover::after,
.plan-cta.premium-cta:hover::after {
  transform: translateX(110%);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button.secondary:hover {
  border-color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px) 72px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(3, 38, 13, 0.92) 0%, rgba(3, 38, 13, 0.62) 46%, rgba(3, 38, 13, 0.2) 100%),
    url("assets/hero-field.jpg") 62% 50% / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(114, 215, 45, 0.16), transparent 26rem);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid rgba(11, 143, 25, 0.22);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(236, 247, 233, 0.9);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--green), var(--lime));
  box-shadow: 0 0 0 3px rgba(114, 215, 45, 0.25);
}

.hero .eyebrow,
.solution .eyebrow,
.bsv .eyebrow,
.final-cta .eyebrow {
  color: var(--lime-soft);
  border-color: rgba(167, 233, 123, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 .accent {
  background: linear-gradient(100deg, var(--lime-soft), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-text {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.safety-note,
.muted,
.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.safety-note {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Phone scene ---------- */

.hero-visual,
.report-visual,
.bsv-visual {
  display: grid;
  justify-items: center;
}

.phone-scene {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}

.phone-frame {
  position: relative;
  width: min(78%, 310px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 40px;
  background: linear-gradient(165deg, #17301e, #04140a);
  box-shadow: 0 32px 64px rgba(2, 20, 8, 0.42);
  transition: transform 350ms ease;
}

.phone-frame:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* scan corners, echoing the Agriscan logo */
.phone-scene::before,
.phone-scene::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 3px solid var(--lime);
  opacity: 0.85;
  pointer-events: none;
}

.phone-scene::before {
  top: -16px;
  left: calc(50% - min(39%, 155px) - 30px);
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 18px;
}

.phone-scene::after {
  bottom: -16px;
  right: calc(50% - min(39%, 155px) - 30px);
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 18px;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(2, 20, 8, 0.35);
  backdrop-filter: blur(8px);
  animation: chip-float 5s ease-in-out infinite;
}

.hero-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
}

.hero-chip span:last-child {
  color: var(--muted);
}

.hero-chip strong {
  color: var(--ink);
}

.chip-icon {
  display: grid;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(140deg, var(--green), #4cbf1e);
  box-shadow: 0 8px 18px rgba(11, 143, 25, 0.35);
}

.chip-icon svg {
  width: 19px;
  height: 19px;
}

.chip-analyse {
  top: 12%;
  left: calc(50% - min(39%, 155px) - 170px);
}

.chip-bsv {
  bottom: 14%;
  right: calc(50% - min(39%, 155px) - 150px);
  animation-delay: 2.5s;
}

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

/* ---------- Sections ---------- */

.section,
.split-section,
.final-cta {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.centered {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.issue-grid article,
.feature-grid article,
.data-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 24, 51, 0.06);
}

.issue-grid article,
.feature-grid article {
  position: relative;
  padding: 28px;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.issue-grid article::before,
.feature-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.issue-grid article:hover,
.feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 143, 25, 0.35);
  box-shadow: 0 20px 44px rgba(7, 24, 51, 0.11);
}

.issue-grid article:hover::before,
.feature-grid article:hover::before {
  transform: scaleX(1);
}

.issue-grid p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Floating dark panels ---------- */

.solution,
.bsv,
.final-cta {
  position: relative;
  margin: 0 var(--panel-inset);
  border-radius: var(--panel-radius);
  overflow: hidden;
}

.solution::before,
.bsv::before,
.final-cta::before {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  background: rgba(114, 215, 45, 0.16);
  filter: blur(70px);
  pointer-events: none;
}

.solution::before {
  top: -14rem;
  right: -8rem;
}

.bsv::before {
  bottom: -16rem;
  left: -10rem;
}

.final-cta::before {
  top: -16rem;
  left: 50%;
  transform: translateX(-50%);
}

.solution > *,
.bsv > *,
.final-cta > * {
  position: relative;
  z-index: 1;
}

.solution {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 0, rgba(114, 215, 45, 0.14), transparent 30rem),
    var(--ink);
}

.solution h2,
.solution .section-heading p {
  color: var(--white);
}

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

.flow-step {
  position: relative;
  padding: 10px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.8;
  z-index: 1;
}

.flow-media {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

/* viewfinder corners, echoing the hero scan frame */
.flow-media::before,
.flow-media::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--lime);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

.flow-media::before {
  top: 9px;
  left: 9px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 10px;
}

.flow-media::after {
  bottom: 9px;
  right: 9px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 10px;
}

.scan-line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 14px rgba(114, 215, 45, 0.85);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

@keyframes scan-sweep {
  0%, 100% { top: 8%; }
  50% { top: 88%; }
}

.flow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* etape 1 : la photo brute de la feuille, zoomee comme une prise de vue terrain */
.flow-step:nth-child(1) .flow-media img {
  object-position: 50% 28%;
  transform: scale(1.5);
}

.flow-step:nth-child(2) .flow-media img {
  object-position: 50% 30%;
}

/* etape 2 : ligne de scan permanente, l'analyse est en cours */
.flow-step:nth-child(2) .scan-line {
  opacity: 1;
  animation: scan-sweep 2.6s ease-in-out infinite;
}

.flow-step:nth-child(3) .flow-media img {
  object-position: 50% 66%;
}

.flow-media span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-deep);
  background: linear-gradient(140deg, var(--lime-soft), var(--lime));
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(2, 20, 8, 0.45);
}

.flow-body {
  padding: 18px 12px 2px;
}

.flow-body h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 1.02rem;
}

.flow-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Features ---------- */

.features {
  background:
    radial-gradient(circle, rgba(7, 24, 51, 0.045) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--white);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(140deg, var(--green), #4cbf1e);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(11, 143, 25, 0.28);
  transition: transform 260ms ease;
}

.feature-grid article:hover .icon {
  transform: scale(1.08) rotate(-4deg);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.field-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Split sections ---------- */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 0.95fr);
  background: var(--white);
}

.split-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
}

.panel-top strong {
  font-family: var(--font-display);
}

.panel-top span {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.weather-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 170px;
  margin: 28px 0;
  padding: 18px;
  background: var(--green-soft);
  border-radius: var(--radius-sm);
}

.weather-bars span {
  min-height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #23b432, var(--green-dark));
  transform-origin: bottom;
}

[data-reveal] .weather-bars span {
  transform: scaleY(0);
}

.revealed .weather-bars span,
.revealed.weather-host .weather-bars span {
  animation: bar-grow 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.weather-bars span:nth-child(1) { animation-delay: 60ms; }
.weather-bars span:nth-child(2) { animation-delay: 140ms; }
.weather-bars span:nth-child(3) { animation-delay: 220ms; }
.weather-bars span:nth-child(4) { animation-delay: 300ms; }
.weather-bars span:nth-child(5) { animation-delay: 380ms; }
.weather-bars span:nth-child(6) { animation-delay: 460ms; }

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
}

dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

/* ---------- BSV ---------- */

.bsv-focus {
  background:
    radial-gradient(circle at 10% 4%, rgba(114, 215, 45, 0.12), transparent 26rem),
    radial-gradient(circle, rgba(7, 24, 51, 0.04) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--white);
}

.bsv-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.bsv-focus-lead {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.bsv-main-card {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(11, 143, 25, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0, rgba(114, 215, 45, 0.2), transparent 18rem),
    var(--white);
  box-shadow: 0 20px 48px rgba(7, 24, 51, 0.08);
}

.bsv-main-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.bsv-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.bsv-facts div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.bsv-focus .alert-top strong {
  color: var(--ink);
}

.bsv-focus .alert-level.high {
  color: #7a4a00;
  background: rgba(245, 158, 11, 0.16);
}

.bsv-focus .bsv-visual {
  align-self: stretch;
  display: grid;
  place-items: center;
}

.bsv {
  background:
    radial-gradient(circle at 12% 100%, rgba(114, 215, 45, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--green-dark), #044310);
}

.bsv h2,
.bsv p,
.bsv .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.bsv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.alert-grid {
  display: grid;
  gap: 16px;
  align-content: center;
}

.alert-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.alert-card:hover {
  transform: translateX(6px);
  border-color: rgba(167, 233, 123, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.alert-card p {
  margin: 12px 0 0;
  color: #d9ecdc;
  font-size: 0.95rem;
}

.alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alert-top strong {
  color: var(--white);
  font-family: var(--font-display);
}

.alert-level {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.alert-level.high {
  color: #ffe3b0;
  background: rgba(245, 158, 11, 0.26);
}

.alert-level.medium {
  color: #e2f2e4;
  background: rgba(255, 255, 255, 0.18);
}

.alert-level.low {
  color: #c9f3a5;
  background: rgba(114, 215, 45, 0.24);
}

.alert-card p.alert-source {
  font-size: 0.8rem;
  color: #a3ccab;
}

.bsv p.bsv-note {
  max-width: 760px;
  margin: 26px 0 0;
  color: #a3ccab;
  font-size: 0.9rem;
}

/* ---------- Trust / FAQ ---------- */

.trust-grid,
.trust-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 24, 51, 0.06);
}

.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.05rem;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.faq {
  background:
    radial-gradient(circle at 50% 0, rgba(114, 215, 45, 0.1), transparent 26rem),
    var(--white);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(7, 24, 51, 0.05);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.faq-item[open] {
  border-color: rgba(11, 143, 25, 0.35);
  box-shadow: 0 18px 40px rgba(11, 143, 25, 0.12);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--green-dark);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--green-soft);
  transition: background 220ms ease, transform 300ms ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-dark);
  transform: translate(-50%, -50%);
  transition: transform 300ms ease, background 220ms ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon {
  background: var(--green);
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--white);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 24px 24px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Why ---------- */

.why-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 143, 25, 0.14);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(5, 97, 17, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 143, 25, 0.35);
  box-shadow: 0 22px 46px rgba(5, 97, 17, 0.14);
}

.why-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(140deg, var(--green), #4cbf1e);
  box-shadow: 0 10px 22px rgba(11, 143, 25, 0.28);
  transition: transform 260ms ease;
}

.why-card:hover .why-icon {
  transform: scale(1.08) rotate(-4deg);
}

.why-icon svg {
  width: 23px;
  height: 23px;
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Pricing ---------- */

.pricing {
  background:
    radial-gradient(circle at 50% -10%, rgba(114, 215, 45, 0.12), transparent 30rem),
    radial-gradient(circle, rgba(7, 24, 51, 0.045) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--white);
}

.billing-toggle {
  display: flex;
  gap: 6px;
  width: fit-content;
  margin: -6px auto 36px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(7, 24, 51, 0.07);
}

.billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.billing-option:hover {
  color: var(--green-dark);
}

.billing-option.is-active {
  color: var(--white);
  background: var(--button-gradient);
  box-shadow: var(--button-shadow);
}

.billing-option.is-active:hover {
  color: var(--white);
}

.billing-save {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(114, 215, 45, 0.22);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.billing-option.is-active .billing-save {
  color: var(--green-deep);
  background: var(--lime);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
  gap: 24px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(7, 24, 51, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 143, 25, 0.4);
  box-shadow: 0 26px 56px rgba(7, 24, 51, 0.13);
}

.plan-tag {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.plan-price {
  margin: 20px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.plan-amount {
  display: inline-block;
}

.plan-amount.bump {
  animation: price-pop 320ms ease;
}

@keyframes price-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.plan-period {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-desc {
  margin: 14px 0 0;
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-size: 0.97rem;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.plan-cta.outline {
  color: var(--green-dark);
  border-color: rgba(11, 143, 25, 0.35);
  background: var(--green-soft);
}

.plan-cta.outline:hover {
  border-color: var(--green);
}

.plan.premium {
  border-color: rgba(114, 215, 45, 0.42);
  background:
    radial-gradient(circle at 88% -12%, rgba(114, 215, 45, 0.28), transparent 24rem),
    linear-gradient(165deg, #0c4420, var(--green-deep));
  box-shadow: 0 30px 64px rgba(3, 51, 12, 0.32);
}

.plan.premium:hover {
  border-color: rgba(114, 215, 45, 0.7);
  box-shadow: 0 36px 72px rgba(3, 51, 12, 0.4);
}

.plan.premium h3,
.plan.premium .plan-price {
  color: var(--white);
}

.plan.premium .plan-tag {
  color: var(--lime-soft);
}

.plan.premium .plan-period,
.plan.premium .plan-desc,
.plan.premium .plan-list li {
  color: rgba(255, 255, 255, 0.82);
}

.plan.premium .plan-list {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.plan.premium .plan-list li::before {
  color: var(--green-deep);
  background: var(--lime);
}

.plan-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--green-deep);
  background: linear-gradient(120deg, var(--lime-soft), var(--lime));
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(76, 191, 30, 0.38);
}

.plan-cta.premium-cta {
  color: var(--green-deep);
  background: linear-gradient(180deg, #9be95c, #5ec823);
  box-shadow: 0 14px 30px rgba(94, 200, 35, 0.32);
}

/* ---------- Final CTA ---------- */

.final-cta {
  margin-bottom: clamp(24px, 4vw, 48px);
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(3, 33, 11, 0.82), rgba(3, 33, 11, 0.9)),
    url("assets/hero-field.jpg") 50% 32% / cover no-repeat;
}

.final-cta h2,
.final-cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.final-cta .button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.final-cta .button.ghost:hover {
  border-color: var(--white);
}

/* ---------- Legal pages ---------- */

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 72px) 88px;
}

.legal-hero {
  position: relative;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  margin-bottom: 26px;
  border-radius: clamp(20px, 3vw, 32px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% -20%, rgba(114, 215, 45, 0.3), transparent 20rem),
    linear-gradient(165deg, #0c4420, var(--green-deep));
  overflow: hidden;
}

.legal-hero .eyebrow {
  color: var(--lime-soft);
  border-color: rgba(167, 233, 123, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.legal-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.legal-updated {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.legal-summary {
  padding: 22px 26px;
  margin-bottom: 26px;
  border: 1px solid rgba(11, 143, 25, 0.25);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.legal-summary strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  color: var(--green-dark);
}

.legal-summary p {
  margin: 0;
  color: var(--green-dark);
}

.legal-page section {
  padding: 26px 28px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(7, 24, 51, 0.05);
}

.legal-page h2 {
  position: relative;
  padding-left: 16px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.legal-page h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--green), var(--lime));
}

.legal-page p {
  margin: 0 0 12px;
  color: var(--muted);
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-page section strong {
  color: var(--ink);
}

.inline-link {
  color: var(--green);
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

/* ---------- Thanks page ---------- */

.thanks-page {
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vw, 110px) 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(114, 215, 45, 0.16), transparent 30rem),
    radial-gradient(circle, rgba(7, 24, 51, 0.045) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--paper);
}

.thanks-card {
  max-width: 660px;
  padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 56px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(7, 24, 51, 0.12);
}

.thanks-check {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(140deg, var(--green), #4cbf1e);
  box-shadow: 0 16px 36px rgba(11, 143, 25, 0.35), 0 0 0 10px rgba(114, 215, 45, 0.14);
  animation: check-pop 600ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.thanks-check svg {
  width: 36px;
  height: 36px;
}

@keyframes check-pop {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thanks-card h1 {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.thanks-text {
  max-width: 500px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.thanks-text strong {
  color: var(--green-dark);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 200px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--white);
  background: #0a1424;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(7, 24, 51, 0.28);
}

.store-badge svg {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.store-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.25;
}

.store-badge.soon {
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  cursor: default;
}

.store-badge.soon:hover {
  transform: none;
  box-shadow: none;
}

.store-badge.web {
  background: var(--button-gradient);
  box-shadow: var(--button-shadow);
}

.thanks-help {
  margin-top: 28px;
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  .thanks-check {
    animation: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 44px clamp(20px, 5vw, 72px) 38px;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 90% 0, rgba(114, 215, 45, 0.1), transparent 24rem),
    var(--green-deep);
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-reveal] .weather-bars span,
  .weather-bars span {
    transform: none;
    animation: none;
  }

  .hero-chip {
    animation: none;
  }

  .scan-line,
  .flow-step:nth-child(2) .scan-line {
    opacity: 0;
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .chip-analyse {
    left: 0;
  }

  .chip-bsv {
    right: 0;
  }
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero,
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(3, 38, 13, 0.9) 0%, rgba(3, 38, 13, 0.62) 60%, rgba(3, 38, 13, 0.4) 100%),
      url("assets/hero-field.jpg") 60% 50% / cover no-repeat;
  }

  .hero-chip {
    display: none;
  }

  .issue-grid,
  .feature-grid,
  .flow,
  .trust-grid,
  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsv-focus-grid {
    grid-template-columns: 1fr;
  }

  .bsv-focus .bsv-visual {
    order: -1;
    align-self: center;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .bsv-layout {
    grid-template-columns: 1fr;
  }

  .bsv-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-logo {
    height: 30px;
  }

  .header-login {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hero,
  .section,
  .split-section,
  .final-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .phone-frame {
    width: min(84%, 290px);
    margin-top: 12px;
  }

  .phone-scene::before,
  .phone-scene::after {
    display: none;
  }

  .issue-grid,
  .feature-grid,
  .flow,
  .bsv-facts,
  .trust-grid,
  .why-list,
  dl {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 32px 24px 26px;
  }

  .final-actions {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
