/*
 * Copyright (c) 2026 jjopensoftworks-blip. All rights reserved.
 */

/* CropAI Marketing Site — shared styles */
:root {
  --bg: #090e0c;
  --bg-soft: radial-gradient(circle at 20% 0%, rgba(46,213,115,0.08) 0%, transparent 45%),
             radial-gradient(circle at 100% 20%, rgba(0,210,211,0.06) 0%, transparent 40%);
  --surface: #101a15;
  --surface-2: #131f19;
  --border: #1f2d27;
  --accent: #2ed573;
  --accent-soft: rgba(46,213,115,0.12);
  --cyan: #00d2d3;
  --text: #eaf2ee;
  --text-muted: #8fa39a;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-soft), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  color: #fff;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 14, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: #fff; }
.brand .leaf { font-size: 22px; }
.brand span.accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #06120c;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* Hero */
.hero { padding: 72px 0 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(46,213,115,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); max-width: 760px; line-height: 1.08; }
.hero .lede { font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #06120c; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn[disabled], .btn.soon {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.75;
}
.btn.soon:hover { transform: none; text-decoration: none; }

/* Screenshot strip */
.shot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.shot-strip img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { font-size: 16px; }

/* Card grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 20px;
}
.step .num {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

/* Banner / CTA */
.banner {
  background: linear-gradient(135deg, rgba(46,213,115,0.1), rgba(0,210,211,0.06));
  border: 1px solid rgba(46,213,115,0.25);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.banner h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 12px; }
.banner p { max-width: 480px; margin: 0 auto 26px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-meta { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.disclaimer-strip {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.disclaimer-strip strong { color: var(--text); }

/* Page header for inner pages (changelog/privacy/disclaimer) */
.page-hero { padding: 56px 0 32px; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 42px); }
.page-hero .meta { color: var(--text-muted); font-size: 14px; }

.doc-section { margin-bottom: 36px; }
.doc-section h2 {
  font-size: 18px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.doc-section ul { padding-left: 22px; }
.doc-section li { color: var(--text-muted); margin-bottom: 8px; }
.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 20px 0;
}
.callout.warn { border-left-color: #ff9f43; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }

/* Version entries (changelog) */
.version {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  background: var(--surface);
}
.version-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.version-head h3 { font-size: 20px; margin: 0; }
.version-head .date { color: var(--text-muted); font-size: 13px; }
.version-head .tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.version ul { padding-left: 20px; margin: 0; }
.version li { color: var(--text-muted); margin-bottom: 6px; font-size: 14.5px; }
.version li::marker { color: var(--accent); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .shot-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .banner { padding: 32px 22px; }
}
@media (max-width: 520px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .shot-strip { grid-template-columns: 1fr 1fr; }
}
