:root {
  --bg: #050608;
  --panel: #0e1116;
  --panel-2: #141922;
  --text: #f4f7fb;
  --muted: #9ba9bb;
  --orange: #ff7a00;
  --orange-soft: #ff9c40;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(255, 122, 0, 0.14), transparent 30%),
    linear-gradient(180deg, #040507, #090b10 42%, #06070a);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

main > section,
.section,
.hero {
  min-width: 0;
}

.site-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 13, 18, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 122, 0, 0.3);
}

.brand-lockup h1,
.hero-copy h2,
.section h3,
.card h4,
.contact-card h4,
.highlight-panel h4 {
  font-family: "Orbitron", sans-serif;
}

.brand-lockup h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a,
.btn {
  text-decoration: none;
  transition: 180ms ease;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.text-link {
  color: var(--orange-soft);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  color: #fff;
}

.hero,
.section {
  margin-top: 28px;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 23, 31, 0.98), rgba(10, 13, 18, 0.95));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.05;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff5d00);
  color: #fff;
  box-shadow: 0 18px 40px rgba(255, 122, 0, 0.24);
}

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

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span,
.product-tag,
.product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card {
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.22);
  color: var(--orange-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sheet {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h3,
.split h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

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

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

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

.card,
.highlight-panel,
.contact-card,
.timeline-item,
.product-card,
.feature-card,
.faq-card,
.request-form,
.gallery-card {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.card {
  padding: 22px;
}

.card h4,
.highlight-panel h4,
.contact-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.card p,
.highlight-panel p,
.contact-card p,
.split p,
.timeline-item p,
.stack-list span,
.product-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.farm-ai-snapshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.farm-ai-snapshot-grid .feature-card h4 {
  margin-top: 16px;
}

.farm-ai-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.farm-ai-showcase-grid .full-gallery-item {
  padding: 14px;
}

.farm-ai-showcase-grid .full-gallery-item img {
  aspect-ratio: 16 / 10;
}

.farm-ai-audience-split {
  align-items: start;
}

.farm-ai-audience-panel {
  height: 100%;
}

.product-card,
.feature-card,
.faq-card,
.gallery-card {
  padding: 24px;
}

.testimonial-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.testimonial-quote {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.testimonial-name {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.18);
  color: var(--orange-soft);
  font-weight: 700;
  font-size: 0.82rem;
}

.product-card h4,
.feature-card h4,
.faq-card h4,
.gallery-card h4 {
  margin: 14px 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.section-copy {
  margin: 10px 0 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.68;
}

.product-card .text-link,
.feature-card .text-link,
.gallery-card .text-link,
.card .text-link {
  display: inline-flex;
  margin-top: 14px;
}

.gallery-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.gallery-intro > div {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.gallery-intro strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.gallery-intro span {
  color: var(--muted);
  line-height: 1.62;
}

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

.gallery-actions {
  margin: 0 0 18px;
}

.gallery-tile {
  overflow: hidden;
  min-width: 0;
  position: relative;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.gallery-tile.featured {
  grid-column: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.gallery-image-link {
  display: block;
  position: relative;
  z-index: 3;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gallery-image-link:hover img {
  filter: brightness(1.03);
}

.gallery-image-link img {
  pointer-events: none;
}

.gallery-tile-copy {
  display: block;
  padding: 14px 6px 2px;
  position: relative;
  z-index: 2;
}

.gallery-tile-copy h4 {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.gallery-tile-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.gallery-tile-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--orange-soft);
  background: rgba(255, 122, 0, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.full-gallery-item {
  overflow: hidden;
  min-width: 0;
  position: relative;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  display: flex;
  flex-direction: column;
}

.full-gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.full-gallery-copy {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 12px 4px 10px;
}

.full-gallery-item h4 {
  margin: 0 0 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.full-gallery-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.full-gallery-copy .gallery-tile-meta {
  margin-top: 10px;
}

.gallery-hero {
  grid-template-columns: 1fr 0.9fr;
}

.gallery-image-card {
  grid-column: span 2;
  overflow: hidden;
  padding: 14px;
}

.gallery-image-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-caption {
  padding: 16px 10px 8px;
}

.gallery-caption h4 {
  margin-top: 0;
}

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

.gallery-note-card {
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.08), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.mini-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.split > * {
  min-width: 0;
}

.about-section p + p {
  margin-top: 14px;
}

.request-section {
  grid-template-columns: 0.9fr 1.1fr;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cta-banner p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.highlight-panel,
.contact-card {
  padding: 24px;
}

.highlight-panel ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.stack-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.request-form {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.request-form label {
  display: grid;
  gap: 8px;
}

.request-form label.full,
.form-actions.full,
.form-note.full {
  grid-column: 1 / -1;
}

.request-form span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.request-form select option,
.admin-field select option {
  color: #0f141b;
  background: #ffffff;
}

.request-form textarea {
  resize: vertical;
  min-height: 140px;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: #7f8a99;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-actions .btn {
  border: none;
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.stack-list strong {
  display: block;
  margin-bottom: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.social-pill,
.payment-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.social-link {
  text-decoration: none;
}

.social-link:hover {
  color: var(--text);
  border-color: rgba(255, 122, 0, 0.35);
}

.hidden {
  display: none !important;
}

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.snapcode-card {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.snapcode-card img {
  width: min(220px, 100%);
  display: block;
  margin: 0 auto 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #fff;
}

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

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

.timeline-item {
  padding: 22px;
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--orange-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--orange-soft);
}

.admin-shell {
  padding-bottom: 56px;
}

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

.admin-section-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.admin-section-block h4 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.admin-section-order-wrap {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.admin-section-order-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.admin-section-order-card h4 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.admin-section-order-list {
  display: grid;
  gap: 10px;
}

.admin-section-order-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.admin-section-order-copy {
  display: grid;
  gap: 4px;
}

.admin-section-order-copy strong {
  color: var(--text);
}

.admin-section-order-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-section-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-section-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.admin-section-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.admin-field textarea {
  resize: vertical;
  min-height: 140px;
}

.admin-file-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.admin-file-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-file-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.admin-file-item.is-dragging {
  opacity: 0.72;
  transform: scale(0.99);
}

.admin-file-item.drag-over {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.08);
}

.admin-file-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.admin-file-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-file-name {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-file-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-inline-field {
  display: grid;
  gap: 6px;
}

.admin-inline-field-full {
  grid-column: 1 / -1;
}

.admin-inline-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-inline-field input,
.admin-inline-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.admin-inline-field textarea {
  resize: vertical;
  min-height: 84px;
}

.admin-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-traffic-card strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
}

.admin-traffic-note {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.admin-traffic-sub {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--orange-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-traffic-wide {
  grid-column: span 2;
}

.admin-traffic-list {
  display: grid;
  gap: 10px;
}

.admin-traffic-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.admin-traffic-action-row {
  width: 100%;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-traffic-action-row:hover {
  border-color: rgba(34,211,238,.28);
  background: rgba(34,211,238,.08);
}

.admin-traffic-row span,
.admin-traffic-row em {
  color: var(--muted);
}

.admin-traffic-row strong {
  margin: 0;
  font-size: 0.95rem;
}

.admin-traffic-image-row span {
  overflow-wrap: anywhere;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 8, 0.86);
  backdrop-filter: blur(8px);
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-frame {
  max-width: min(1100px, 100%);
  max-height: min(88vh, 100%);
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.admin-move-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.admin-move-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-delete-btn {
  border-color: rgba(255, 97, 97, 0.28);
  color: #ffc2c2;
}

.admin-delete-btn:hover {
  border-color: rgba(255, 97, 97, 0.45);
  color: #fff0f0;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin: 28px 0 0;
  padding: 18px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p,
.footer span {
  margin: 0;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero,
  .split,
  .card-grid,
  .timeline,
  .product-grid,
  .feature-grid,
  .testimonial-grid,
  .faq-grid,
  .gallery-grid,
  .farm-ai-snapshot-grid,
  .gallery-showcase,
  .gallery-intro,
  .cta-banner,
  .full-gallery-grid,
  .gallery-hero,
  .farm-ai-showcase-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 16px;
    gap: 16px;
  }

  .brand-lockup {
    gap: 14px;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  .nav {
    width: 100%;
    gap: 10px;
  }

  .nav a {
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
  }

  .hero,
  .section {
    padding: 24px;
    border-radius: 26px;
  }

  .split {
    gap: 18px;
  }

  .hero-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
    line-height: 1.08;
  }

  .lede {
    font-size: 0.98rem;
    line-height: 1.62;
  }

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

  .admin-content-grid,
  .admin-section-order-grid,
  .admin-file-lists,
  .admin-traffic-grid {
    grid-template-columns: 1fr;
  }

  .admin-traffic-wide {
    grid-column: span 1;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .gallery-tile.featured {
    grid-column: span 1;
  }

  .gallery-showcase,
  .full-gallery-grid,
  .feature-grid,
  .product-grid,
  .testimonial-grid,
  .faq-grid,
  .timeline {
    gap: 14px;
  }

  .gallery-tile,
  .full-gallery-item,
  .gallery-card,
  .hero-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    isolation: isolate;
    overflow: hidden;
  }

  .gallery-tile,
  .full-gallery-item {
    padding: 10px;
    gap: 10px;
  }

  .gallery-tile img,
  .full-gallery-item img,
  .hero-sheet {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
  }

  .gallery-tile-copy,
  .full-gallery-copy,
  .gallery-tile-copy h4,
  .gallery-tile-copy p,
  .full-gallery-item h4,
  .full-gallery-item p,
  .gallery-card h4,
  .gallery-card p {
    width: 100%;
    min-width: 0;
    clear: both;
  }

  .gallery-tile-copy,
  .full-gallery-copy {
    padding: 2px 2px 6px;
  }

  .gallery-tile-copy h4,
  .full-gallery-item h4,
  .gallery-card h4 {
    font-size: 0.88rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .gallery-tile-copy p,
  .full-gallery-item p,
  .gallery-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-word;
  }

  .full-gallery-copy .gallery-tile-meta {
    align-self: flex-start;
  }

  .gallery-image-card {
    grid-column: span 1;
  }

  .admin-file-item {
    grid-template-columns: 72px 1fr;
  }

  .admin-file-thumb {
    width: 72px;
    height: 72px;
  }

  .admin-file-meta {
    grid-template-columns: 1fr;
  }

  .admin-traffic-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-strip,
  .hero-actions,
  .form-actions {
    width: 100%;
  }

  .cta-strip .btn,
  .hero-actions .btn,
  .form-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(1220px, calc(100vw - 20px));
    padding: 14px 0 48px;
  }

  .topbar {
    padding: 16px 14px 14px;
    border-radius: 22px;
  }

  .brand-lockup h1 {
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero,
  .section {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
  }

  .hero {
    gap: 18px;
  }

  .brand-lockup {
    width: 100%;
    align-items: center;
  }

  .nav a {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .hero-copy h2,
  .section-heading h3,
  .split h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-heading h3,
  .split h3 {
    font-size: clamp(1.25rem, 7vw, 1.55rem);
    line-height: 1.18;
  }

  .lede,
  .section-copy {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .request-form input,
  .request-form select,
  .request-form textarea,
  .admin-field input,
  .admin-field textarea,
  .admin-inline-field input,
  .admin-inline-field textarea {
    font-size: 16px;
  }

  .hero-points,
  .mini-list,
  .highlight-panel ol,
  .contact-card p,
  .stack-list span,
  .card p,
  .product-card p,
  .feature-card p,
  .faq-card p {
    font-size: 0.94rem;
    line-height: 1.56;
  }

  .product-card,
  .feature-card,
  .faq-card,
  .gallery-card,
  .request-form,
  .highlight-panel,
  .contact-card {
    padding: 18px;
  }

  .section-copy,
  .gallery-intro span,
  .gallery-card p,
  .testimonial-quote,
  .contact-card p,
  .highlight-panel p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .hero-copy,
  .section-heading,
  .highlight-panel,
  .contact-card,
  .card,
  .timeline-item,
  .product-card,
  .feature-card,
  .faq-card,
  .gallery-card {
    max-width: 100%;
  }

  .gallery-intro > div,
  .gallery-caption,
  .timeline-item,
  .card,
  .testimonial-card {
    padding: 16px;
  }

  .hero-badges,
  .product-meta,
  .social-links,
  .payment-pills {
    gap: 8px;
  }

  .highlight-panel,
  .contact-card,
  .snapcode-card,
  .timeline-item {
    gap: 10px;
  }

  .hero-badges span,
  .product-meta span,
  .social-pill,
  .payment-pills span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .hero-actions,
  .cta-strip,
  .social-links,
  .payment-pills {
    align-items: stretch;
  }

  .social-links .social-pill,
  .social-links .btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .cta-banner {
    gap: 16px;
  }

  .gallery-showcase,
  .full-gallery-grid,
  .feature-grid,
  .product-grid,
  .testimonial-grid,
  .faq-grid,
  .timeline,
  .gallery-grid {
    gap: 12px;
  }

  .full-gallery-item,
  .gallery-tile,
  .feature-card,
  .product-card,
  .testimonial-card,
  .faq-card {
    border-radius: 20px;
  }

  .full-gallery-copy,
  .gallery-tile-copy {
    gap: 6px;
  }

  .gallery-tile-meta,
  .testimonial-name {
    min-height: 30px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .full-gallery-item img,
  .gallery-tile img {
    border-radius: 14px;
  }

  .hero-sheet {
    border-radius: 14px;
  }

  .footer {
    padding: 14px 6px 0;
  }

  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: calc(100vw - 16px);
  }

  .topbar {
    padding: 14px 12px 12px;
  }

  .hero,
  .section {
    padding: 16px;
    border-radius: 20px;
  }

  .hero {
    gap: 16px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    flex: 1 1 100%;
    min-height: 38px;
    font-size: 0.92rem;
  }

  .hero-copy h2 {
    font-size: clamp(1.55rem, 9vw, 2.05rem);
  }

  .hero-actions .btn,
  .cta-strip .btn,
  .form-actions .btn {
    min-height: 50px;
  }

  .nav a,
  .social-pill,
  .payment-pills span {
    min-height: 42px;
  }

  .hero-badges span,
  .product-meta span,
  .social-pill,
  .payment-pills span {
    flex-basis: 100%;
  }

  .gallery-intro > div,
  .gallery-caption,
  .timeline-item,
  .card,
  .testimonial-card,
  .product-card,
  .feature-card,
  .faq-card,
  .gallery-card,
  .highlight-panel,
  .contact-card,
  .request-form {
    padding: 15px;
  }

  .gallery-tile,
  .full-gallery-item {
    padding: 8px;
  }

  .full-gallery-copy,
  .gallery-tile-copy {
    padding: 2px 0 4px;
  }

  .full-gallery-item h4,
  .gallery-tile-copy h4,
  .feature-card h4,
  .product-card h4,
  .faq-card h4 {
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .full-gallery-item p,
  .gallery-tile-copy p,
  .feature-card p,
  .product-card p,
  .faq-card p,
  .timeline-item p,
  .section-copy,
  .lede {
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox-frame {
    padding: 10px;
    border-radius: 18px;
  }

  .footer-links {
    gap: 10px;
  }
}
