/* Salixus FarmAi landing — system fonts, no external assets. */
:root {
  --bg: #f7f8f4; --bg2: #eef2ea; --card: #ffffff; --card2: #f2f5ef;
  --ink: #18231c; --muted: #5d6b61; --line: #b9c6bb;
  --accent: #1f8a4c; --accent-ink: #ffffff; --leaf: #2f9e5b; --leaf2: #7cc36b;
  --glass: #cfe9d6; --screen: #183126;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(20,50,30,.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512; --bg2: #141c18; --card: #18221d; --card2: #1d2a23;
    --ink: #e5ede7; --muted: #9aaba0; --line: #3a4d42;
    --accent: #4cc37d; --accent-ink: #08140d; --leaf: #4cc37d; --leaf2: #9bd88a;
    --glass: #24493a; --screen: #0a1410;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1512; --bg2: #141c18; --card: #18221d; --card2: #1d2a23;
  --ink: #e5ede7; --muted: #9aaba0; --line: #3a4d42;
  --accent: #4cc37d; --accent-ink: #08140d; --leaf: #4cc37d; --leaf2: #9bd88a;
  --glass: #24493a; --screen: #0a1410;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.brand b { color: var(--accent); }
.nav { display: none; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.top-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; }
.btn-ghost { background: transparent; color: var(--accent); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--leaf2) 22%, transparent), transparent 70%), var(--bg); }
.hero-in { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-bottom: .6em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.art { width: 100%; max-width: 460px; height: auto; margin: 0 auto; }

/* Sections */
.sec { padding: 56px 0; }
.sec.alt { background: var(--bg2); }
.sub { color: var(--muted); max-width: 65ch; margin-bottom: 28px; }
.grid { display: grid; gap: 16px; }

.flowline { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
.flowline li { position: relative; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.flowline svg { width: 44px; height: 44px; color: var(--ink); margin-bottom: 10px; }
.flowline p { color: var(--muted); margin: 0; }

.card { background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); }
.card .ill { width: 100%; height: auto; max-height: 120px; margin-bottom: 14px; background: var(--bg2); border-radius: 10px; padding: 8px; }
.card .tag { color: var(--accent); font-weight: 600; font-size: .9rem; margin: -.3em 0 .6em; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: .2em 0; }

.feat { padding: 20px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); background: var(--card); }
.feat h3 { display: flex; align-items: center; gap: 10px; }
.feat h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.feat p { color: var(--muted); margin: 0; }

.use { padding: 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.use svg { width: 64px; height: 48px; color: var(--ink); margin-bottom: 12px; }
.use p { color: var(--muted); margin: 0; }

.contact { display: grid; gap: 24px; align-items: start; }
.contact-box { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.small { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

.foot { border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* Language switcher */
.langs { display: flex; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang { padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; }
a.lang:hover { color: var(--ink); background: var(--card2); }
.lang.cur { color: var(--accent); }

/* Contact form */
.mail { font-weight: 600; font-size: 1.1rem; }
.cform { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.fld .opt { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.chk input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cform .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.cform .btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.status.ok { color: var(--accent); }
.status.err { color: #c0413a; }

/* Privacy page, contact.php pages */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.doc h2 { font-size: 1.25rem; margin-top: 1.6em; }
.doc li { margin: .3em 0; }
.refs { font-size: .9rem; }
.note { background: var(--card2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; }
.summary dt { font-weight: 600; }
.summary dd { margin: 0; overflow-wrap: anywhere; }

/* Motion */
.flow { animation: dash 1.6s linear infinite; }
.pulse circle:nth-child(n+2) { animation: ping 2.4s ease-out infinite; transform-origin: 150px 160px; }
.spin { animation: spin 4s linear infinite; transform-origin: 120px 30px; }
@keyframes dash { to { stroke-dashoffset: -26; } }
@keyframes ping { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .flow, .pulse circle, .spin { animation: none; } html { scroll-behavior: auto; } }

/* Larger screens */
@media (min-width: 640px) {
  .cards, .uses { grid-template-columns: repeat(2, 1fr); }
  .feats, .flowline { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .top-act { margin-left: 8px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 80px; }
  .cards, .uses { grid-template-columns: repeat(3, 1fr); }
  .feats, .flowline { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .sec { padding: 80px 0; }
}
