:root {
  --deep-green: #1b5e20;
  --fresh-green: #2e7d32;
  --leaf: #43a047;
  --light-green: #e8f5e9;
  --white: #ffffff;
  --soft-gray: #f8f9fa;
  --border: #e5e7eb;
  --gold: #f9a825;
  --earth: #8d6e63;
  --text: #102116;
  --muted: #647067;
  --shadow: 0 24px 80px rgba(27, 94, 32, 0.14);
  --soft-shadow: 0 14px 40px rgba(16, 33, 22, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 42%, #ffffff 100%);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 8px;
  filter: blur(48px);
  opacity: 0.34;
  pointer-events: none;
  animation: floatShape 12s ease-in-out infinite;
  transform: rotate(18deg);
}

.ambient-one {
  top: -7rem;
  left: -7rem;
  background: linear-gradient(135deg, rgba(67, 160, 71, 0.34), rgba(232, 245, 233, 0));
}

.ambient-two {
  top: 28rem;
  right: -10rem;
  background: linear-gradient(135deg, rgba(249, 168, 37, 0.22), rgba(232, 245, 233, 0));
  animation-delay: -5s;
}

.ambient-three {
  bottom: 12rem;
  left: 15%;
  background: linear-gradient(135deg, rgba(141, 110, 99, 0.14), rgba(255, 255, 255, 0));
  animation-delay: -8s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.64);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(27, 94, 32, 0.08);
}

.navbar,
.section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--deep-green);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--leaf));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(27, 94, 32, 0.25);
}

.brand-mark svg,
button svg,
.feature-card svg,
.eyebrow svg,
.why-list svg,
.analytics-card svg {
  width: 19px;
  height: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334337;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-green);
}

.btn {
  border: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
  box-shadow: 0 16px 34px rgba(27, 94, 32, 0.24);
}

.btn-ghost {
  color: var(--deep-green);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(46, 125, 50, 0.18);
}

.btn-white {
  color: var(--deep-green);
  background: var(--white);
}

.btn-outline-white {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.64);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
}

.btn-disabled {
  color: #6b7280;
  background: #eef1f0;
  border: 1px solid var(--border);
  pointer-events: none;
  cursor: not-allowed;
}

.section {
  padding: 96px 0;
}

.compact {
  padding: 54px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 54px;
  padding-top: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fresh-green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.2vw, 6.7rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-subtitle,
.section-heading p,
.why-panel p,
.cta-banner p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-metrics div,
.stat-card,
.feature-card,
.testimonial-card,
.member-card,
.analytics-card,
.result-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics strong {
  display: block;
  color: var(--deep-green);
  font-size: 1.25rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 670px;
}

.photo-card {
  position: absolute;
  inset: 0 5% 0 6%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 44, 19, 0.48));
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-overlay {
  position: absolute;
  right: 28px;
  bottom: 34px;
  z-index: 2;
  width: min(300px, calc(100% - 44px));
  padding: 18px;
  color: var(--white);
  background: rgba(13, 58, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.overlay-top {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.mini-chart {
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 16px 0;
}

.mini-chart span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--gold), #fef3c7);
}

.dashboard-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.scan-ring {
  position: absolute;
  top: 23%;
  left: 20%;
  z-index: 2;
  width: 210px;
  height: 210px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(67, 160, 71, 0.14), inset 0 0 40px rgba(255, 255, 255, 0.28);
  animation: pulseScan 2.8s ease-in-out infinite;
}

.floating-stat {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  color: var(--deep-green);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.stat-one {
  top: 8%;
  left: 0;
}

.stat-two {
  top: 40%;
  right: 0;
}

.stat-three {
  left: 3%;
  bottom: 13%;
}

.trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: #425247;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.feature-grid,
.testimonial-grid,
.team-grid,
.analytics-grid,
.stats {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 22px;
  min-height: 190px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 125, 50, 0.26);
  box-shadow: var(--shadow);
}

.locked-feature {
  position: relative;
  cursor: pointer;
}

.locked-feature small {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 7px 10px;
  color: var(--deep-green);
  background: var(--light-green);
  border-radius: 8px;
  font-weight: 900;
}

.feature-card svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  color: var(--deep-green);
  background: var(--light-green);
  border-radius: 8px;
  margin-bottom: 24px;
}

.feature-card p,
.testimonial-card span,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 42px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  min-height: 136px;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.step-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.step-card span {
  display: block;
  margin-bottom: 24px;
  color: #d8f6dd;
  font-weight: 900;
}

.step-card p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.why-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 36px;
  padding: 42px;
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.86), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.why-list svg {
  color: var(--fresh-green);
}

.stats {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--deep-green);
  font-size: 2.6rem;
  font-weight: 900;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  padding: 26px;
}

.testimonial-card p {
  color: #263d2c;
  font-size: 1.02rem;
  line-height: 1.7;
}

.testimonial-card strong {
  display: block;
  color: var(--deep-green);
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.member-card {
  padding: 22px;
  text-align: center;
}

.member-card span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
  border-radius: 8px;
  font-weight: 900;
}

.register-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
}

.register-steps,
.register-form,
.dashboard-shell,
.cta-banner {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.register-steps {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background: var(--deep-green);
}

.register-steps button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.register-steps button.active {
  color: var(--deep-green);
  background: var(--white);
}

.register-steps span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.register-steps button.active span {
  color: var(--white);
  background: var(--fresh-green);
}

.register-form {
  padding: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: riseIn 0.28s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #334337;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(46, 125, 50, 0.7);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.11);
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: #c2410c;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  grid-column: 1 / -1;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-note {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--fresh-green);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.login-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.access-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.auth-section {
  padding-top: 120px;
}

.access-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--deep-green);
  background: var(--light-green);
  border-radius: 8px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 700px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
}

.dashboard-sidebar {
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, #104616, var(--deep-green));
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 8px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.dashboard-sidebar .brand {
  color: var(--white);
  margin-bottom: 34px;
}

.dashboard-sidebar button,
.dashboard-sidebar a:not(.brand) {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.dashboard-sidebar button.active,
.dashboard-sidebar button:hover,
.dashboard-sidebar a.active,
.dashboard-sidebar a:not(.brand):hover {
  color: var(--deep-green);
  background: var(--white);
}

.dashboard-sidebar a.active {
  box-shadow: inset 4px 0 0 var(--gold), 0 12px 28px rgba(255, 255, 255, 0.12);
}

.dashboard-content {
  padding: 30px;
  background: var(--soft-gray);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.analytics-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.analytics-card {
  padding: 16px;
}

.analytics-card svg {
  color: var(--fresh-green);
  margin-bottom: 18px;
}

.analytics-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.analytics-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  color: var(--deep-green);
}

.crop-health-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
  background: var(--soft-gray);
}

.dashboard-page .dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
}

.dashboard-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-card {
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

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

.dashboard-hero h1 {
  margin: 8px 0;
  font-size: clamp(1.9rem, 3.4vw, 3.7rem);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-actions select {
  width: 160px;
  height: 48px;
}

.dashboard-analytics {
  margin-bottom: 16px;
}

.dashboard-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 16px;
}

.panel-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.advice-stack {
  display: grid;
  gap: 12px;
}

.weather-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.weather-panel {
  grid-template-columns: 0.65fr 1.35fr;
}

.dashboard-feature-grid {
  margin: 16px 0;
}

.compact-panel {
  grid-template-columns: 0.72fr 1.28fr;
}

.mini-status,
.scheme-list {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.scheme-list {
  padding-left: 20px;
}

.scheme-panel {
  grid-template-columns: 0.58fr 1.42fr;
}

.scheme-matcher {
  display: grid;
  gap: 14px;
}

.scheme-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--deep-green);
  background: var(--light-green);
  border: 1px solid rgba(46, 125, 50, 0.16);
  border-radius: 8px;
}

.scheme-summary strong {
  font-size: 2rem;
}

.scheme-summary span {
  color: var(--muted);
  font-weight: 800;
}

.scheme-grid {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.scheme-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.scheme-card.eligible {
  border-color: rgba(46, 125, 50, 0.28);
}

.scheme-card h3 {
  margin: 7px 0;
}

.scheme-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.scheme-card small {
  color: #536158;
  line-height: 1.5;
}

.scheme-status {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--deep-green);
  background: var(--light-green);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.not-eligible .scheme-status {
  color: #6b7280;
  background: #eef1f0;
}

.scheme-tools {
  display: grid;
  gap: 14px;
}

.ai-response-card,
.ai-accent-card {
  background:
    linear-gradient(135deg, rgba(232, 245, 233, 0.94), rgba(255, 248, 225, 0.72)),
    var(--white);
  border-color: rgba(46, 125, 50, 0.24);
}

.ai-response-card .diagnosis-row,
.colorful-response {
  background: linear-gradient(135deg, #f4fbf5, #fff8e1);
  border-left: 5px solid var(--fresh-green);
}

.ai-accent-card h3,
.colorful-response strong {
  color: var(--deep-green);
}

.ai-loading {
  opacity: 0.72;
}

.attention-fields {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 12px;
}

.scheme-tools pre,
.diagnosis-row pre {
  white-space: pre-wrap;
  margin: 0;
  color: #17381d;
  line-height: 1.62;
  font-family: inherit;
}

@media print {
  body * {
    visibility: hidden;
  }

  .printable-application,
  .printable-application * {
    visibility: visible;
  }

  .printable-application {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
}

.soil-score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--light-green);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 8px;
}

.score-ring {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 56%, transparent 57%),
    conic-gradient(var(--fresh-green) calc(var(--score) * 1%), #dbe7dd 0);
}

.score-ring strong {
  color: var(--deep-green);
  font-size: 1.7rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.soil-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.soil-scale span {
  padding: 8px;
  color: var(--deep-green);
  background: #f4faf5;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.chat-box {
  display: grid;
  gap: 14px;
}

.chat-input-wrap {
  position: relative;
}

.chat-input-wrap textarea {
  padding-right: 62px;
}

.mic-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--deep-green);
  background: var(--light-green);
  border: 1px solid rgba(46, 125, 50, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mic-button:hover {
  transform: translateY(-1px);
}

.mic-button.listening {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
  box-shadow: 0 0 0 7px rgba(46, 125, 50, 0.12);
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.speech-status {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-footer {
  margin-top: 18px;
}

.upload-box {
  place-items: center;
  min-height: 160px;
  margin: 18px 0;
  padding: 24px;
  color: var(--fresh-green);
  border: 1px dashed rgba(46, 125, 50, 0.42);
  background: var(--light-green);
  cursor: pointer;
  text-align: center;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mode-toggle label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--deep-green);
  background: var(--light-green);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.mode-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-toggle label:has(input:checked) {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
}

.upload-box input {
  display: none;
}

.upload-box svg {
  width: 38px;
  height: 38px;
}

.result-card {
  min-height: 260px;
  padding: 16px;
  overflow: auto;
}

.spacious-result {
  min-height: 430px;
  max-height: none;
}

.spacious-result .diagnosis-row p {
  line-height: 1.72;
}

.empty-state {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.result-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: #17381d;
  font-size: 0.9rem;
  line-height: 1.55;
}

.offline-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  color: #4f3f06;
  background: #fff8d6;
  border: 1px solid rgba(249, 168, 37, 0.38);
  border-radius: 8px;
  font-weight: 800;
}

.offline-banner span,
.offline-banner small {
  color: #76601a;
  font-weight: 700;
}

.reconnect-prompt {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 33, 22, 0.46);
  backdrop-filter: blur(8px);
}

.reconnect-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reconnect-card strong {
  color: var(--deep-green);
  font-size: 1.2rem;
}

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

.reconnect-card div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.diagnosis {
  display: grid;
  gap: 12px;
}

.diagnosis-row {
  padding: 12px;
  background: var(--light-green);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 8px;
}

.diagnosis-row strong {
  color: var(--deep-green);
}

.cta-banner {
  padding: 54px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green) 60%, #58a95d);
  overflow: hidden;
  position: relative;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.cta-banner h2,
.cta-banner p,
.cta-banner div {
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-banner div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr auto;
  gap: 24px;
  padding: 42px 0;
  border-top: 1px solid var(--border);
}

.footer-pro {
  align-items: start;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-contact {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.footer-contact strong {
  color: var(--deep-green);
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--deep-green);
  background: var(--light-green);
  border-radius: 8px;
}

.voice-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-panel select {
  width: 128px;
  height: 44px;
  padding: 0 10px;
  box-shadow: var(--soft-shadow);
}

.detect-language-button {
  min-width: 118px;
  height: 44px;
  padding: 0 12px;
  color: var(--deep-green);
  background: var(--white);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.speaker-button {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.11), 0 20px 42px rgba(27, 94, 32, 0.34);
  animation: glow 2.2s ease-in-out infinite;
}

.speaker-button.speaking {
  background: linear-gradient(135deg, var(--gold), var(--fresh-green));
}

.speaker-button svg {
  width: 25px;
  height: 25px;
}

.audio-mute-button,
.go-top-button {
  position: fixed;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  min-width: 48px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-green), var(--fresh-green));
  box-shadow: var(--soft-shadow);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.audio-mute-button {
  right: 24px;
  bottom: 82px;
}

.audio-mute-button.muted {
  background: linear-gradient(135deg, #3f4f46, #80927f);
}

.go-top-button {
  left: 24px;
  bottom: 24px;
  min-width: 88px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.go-top-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.audio-mute-button svg,
.go-top-button svg {
  width: 18px;
  height: 18px;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -24px, 0) scale(1.08);
  }
}

@keyframes pulseScan {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.11), 0 20px 42px rgba(27, 94, 32, 0.34);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(46, 125, 50, 0.18), 0 24px 52px rgba(27, 94, 32, 0.42);
  }
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .split,
  .why-panel,
  .register-shell,
  .dashboard-shell,
  .crop-health-panel,
  .footer,
  .login-card,
  .dashboard-page,
  .dashboard-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-sidebar {
    position: relative;
    height: auto;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

  .feature-grid,
  .testimonial-grid,
  .team-grid,
  .analytics-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .register-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .register-steps button {
    justify-content: center;
  }

  .register-steps b {
    display: none;
  }
}

@media (max-width: 640px) {
  .navbar,
  .section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-metrics,
  .feature-grid,
  .testimonial-grid,
  .team-grid,
  .analytics-grid,
  .stats,
  .step-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .photo-card {
    inset: 0;
  }

  .floating-stat {
    position: relative;
    margin: 8px;
  }

  .stat-one,
  .stat-two,
  .stat-three {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .trust {
    align-items: stretch;
    flex-direction: column;
  }

  .register-form,
  .dashboard-content,
  .cta-banner,
  .why-panel {
    padding: 22px;
  }

  .dashboard-top,
  .form-actions,
  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .attention-fields {
    grid-template-columns: 1fr;
  }

  .voice-panel {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: flex-end;
  }

  .audio-mute-button {
    right: 14px;
    bottom: 72px;
    min-width: 48px;
  }

  .go-top-button {
    left: 14px;
    bottom: 14px;
  }

  .voice-panel select {
    display: block;
    width: min(142px, calc(100vw - 176px));
    height: 42px;
    font-size: 0.9rem;
  }

  .detect-language-button {
    min-width: 104px;
    height: 42px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}
