/* CraftPilot landing (index.html, sl/index.html) – dark glass with the
   app's lime and teal, a faint blueprint grid and floor plan behind it.
   Same layout as the TradeTrack page. Plain CSS, no build step. The legal
   pages keep style.css. */

:root {
  --bg: #0f1115;
  --bg-deep: #0a0c10;
  --glass: rgba(26, 31, 38, 0.6);
  --glass-strong: rgba(30, 36, 44, 0.85);
  --border: rgba(127, 224, 194, 0.14);
  --text: #eef1f4;
  --muted: #9aa3ad;
  --lime: #beea7a;
  --teal: #7fe0c2;
  --brand: #16a085;
  --radius: 18px;
  --container: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Background ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(190, 234, 122, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(22, 160, 133, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 70%);
}
/* Blueprint grid, fading out downwards. */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 224, 194, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 224, 194, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.plan-outline {
  position: absolute;
  right: 4%;
  top: 110px;
  width: min(560px, 60vw);
  opacity: 0.09;
}
.plan-outline polygon { fill: none; stroke: var(--teal); stroke-width: 3; }
.plan-outline circle { fill: var(--teal); }
.plan-outline text { fill: var(--teal); font: 600 20px sans-serif; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand b { color: var(--lime); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
/* Language menu: a plain <details>, no script. */
.langs { position: relative; }
.langs summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 9px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; font-size: 0.75em; }
.langs[open] summary, .langs summary:hover { color: var(--text); }
.langs-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 6px;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.langs-menu a { color: var(--text); padding: 7px 10px; border-radius: 8px; font-size: 0.95rem; }
.langs-menu a:hover { background: rgba(127, 224, 194, 0.08); text-decoration: none; }
.langs-menu a[aria-current="page"] { color: var(--lime); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--teal));
  color: #0b1a12;
  box-shadow: 0 8px 24px rgba(190, 234, 122, 0.22);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: rgba(190, 234, 122, 0.45); }
.btn-small { padding: 8px 16px; font-size: 0.92rem; border-radius: 10px; }
/* Not a link: a platform on its way (iPhone). */
.btn-soon {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  border-style: dashed;
  cursor: default;
}
.btn-soon:hover { transform: none; }
.btn svg { flex: none; }

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

.hero {
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-weight: 650;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.nowrap { white-space: nowrap; }
.accent {
  background: linear-gradient(90deg, var(--lime), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.fineprint { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }

.hero-mockup {
  width: 100%;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.55));
}

/* ---------- Trade strip ---------- */

.trades-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--glass);
}
.trades-inner { padding-top: 22px; padding-bottom: 22px; color: var(--muted); text-align: center; }
.trades-inner strong { color: var(--text); margin-right: 6px; }

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

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
}
.section-lead {
  max-width: 40em;
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.features { padding-top: 96px; padding-bottom: 40px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 88px;
}
.feature.reverse .feature-copy { order: 2; }
.feature h3 { margin: 0 0 12px; font-size: 1.75rem; line-height: 1.2; }
.feature p { color: var(--muted); font-size: 1.05rem; }
.feature .eyebrow { color: var(--lime); font-size: 0.85rem; }

.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  color: var(--text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(190, 234, 122, 0.16);
  box-shadow: inset 0 0 0 1.5px var(--lime);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.45em + 4px);
  width: 4px;
  height: 7px;
  border: solid var(--lime);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Phones in the app's frame (scripts/landing_images.py), transparent
   around them: the shadow follows the phone. */
.feature-mockup {
  width: min(300px, 78%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}
.feature-mockup-wide { width: min(470px, 100%); }
.feature-visual { display: flex; justify-content: center; align-items: flex-start; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 96px;
}
.mini {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mini h4 { margin: 0 0 6px; font-size: 1.05rem; }
.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; }

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

.pricing { padding-top: 96px; padding-bottom: 40px; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan-price { margin: 6px 0 4px; color: var(--muted); }
.plan .checks { flex: 1; margin-bottom: 24px; }
.plan-team {
  background: var(--glass-strong);
  border-color: rgba(190, 234, 122, 0.45);
  box-shadow: 0 0 0 1px rgba(190, 234, 122, 0.15), 0 20px 60px rgba(190, 234, 122, 0.1);
}

/* ---------- Privacy ---------- */

.privacy { padding-top: 88px; }
.privacy-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
}
.privacy-card h2 { margin: 0 0 10px; font-size: 1.6rem; }
.privacy-card p { color: var(--muted); margin: 0 0 14px; }

/* ---------- Final CTA + footer ---------- */

.final-cta { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.final-cta h2 { margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.2rem); }

.footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--text); }

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

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .feature.reverse .feature-copy { order: 0; }
  .mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .plan-outline { display: none; } /* would sit behind the heading */
  .topbar-inner { gap: 12px; }
  .topbar-inner .langs { margin-left: auto; }
  .plans { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .lead { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
