/* ============================================================
   Patio OS — marketing site
   Design: modern SaaS (Linear / Vercel), warm-dark ground + recycling-green accent
   ============================================================ */

:root {
  /* Warm-dark neutrals (a faint green-warmth in the black) */
  --bg:          #0b0d0a;
  --bg-elev:     #101310;
  --surface:     #141812;
  --surface-2:   #191e16;
  --border:      #262c22;
  --border-soft: #1d2219;

  /* Warm off-white text on dark */
  --text:   #f3f4ee;
  --text-2: #c5c9bd;
  --muted:  #8a9182;

  /* Recycling / growth green */
  --accent:      #5fe08a;
  --accent-2:    #a3e635;   /* lime, for gradients */
  --accent-ink:  #06180d;   /* text on accent */
  --accent-soft: rgba(95, 224, 138, 0.12);
  --accent-line: rgba(95, 224, 138, 0.28);

  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --nav-h: 64px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 20px 60px -20px rgba(95,224,138,.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.muted { color: var(--muted); }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; }
.section-head p { color: var(--text-2); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px -8px rgba(95,224,138,.6); }
.btn-primary:hover { background: #74e89a; box-shadow: 0 10px 30px -8px rgba(95,224,138,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: #33402c; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(11,13,10,.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600;
}
.lang a { padding: 5px 12px; color: var(--muted); transition: background .15s, color .15s; }
.lang a.active { background: var(--accent-soft); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 40px; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px; z-index: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(95,224,138,.16), transparent 70%),
              radial-gradient(40% 60% at 85% 10%, rgba(163,230,53,.08), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.03em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { margin-top: 22px; font-size: 20px; color: var(--text-2); max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--accent); }

/* Product mock */
.mock {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); background: var(--bg-elev); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2d3327; display: inline-block; }
.mock-bar .addr { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-kpi { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg-elev); }
.mock-kpi .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock-kpi .v { font-size: 20px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mock-kpi .v.green { color: var(--accent); }
.mock-scale {
  border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--accent-soft), transparent);
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
}
.mock-scale .big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mock-scale .big small { font-size: 16px; color: var(--muted); font-weight: 600; }
.mock-scale .stable { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 5px 10px; border-radius: 999px; }
.mock-list { display: grid; gap: 8px; }
.mock-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 9px 12px; border: 1px solid var(--border-soft); border-radius: 10px; }
.mock-line .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-line b { font-variant-numeric: tabular-nums; }

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-elev); }
.trust .container { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 26px 24px; flex-wrap: wrap; }
.trust .item { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.trust .item b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.trust .item svg { color: var(--accent); flex: none; }
.trust .divider { width: 1px; height: 22px; background: var(--border); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 26px; transition: border-color .18s, transform .18s, background .18s;
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--surface-2); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step .num {
  counter-increment: step; font-variant-numeric: tabular-nums;
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 40%); box-shadow: var(--shadow-glow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 30px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { margin: 14px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .price-note { font-size: 13px; color: var(--muted); }
.plan .desc { color: var(--text-2); font-size: 14px; margin: 14px 0 20px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.plan li svg { color: var(--accent); flex: none; margin-top: 3px; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- Testimonial ---------- */
.quote {
  max-width: 820px; margin: 0 auto; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 48px 40px;
  position: relative;
}
.quote .mark { font-size: 60px; line-height: 0; color: var(--accent); font-weight: 800; }
.quote blockquote { font-size: clamp(20px, 2.6vw, 26px); font-weight: 550; letter-spacing: -.01em; margin: 12px 0 22px; }
.quote .who { display: flex; align-items: center; justify-content: center; gap: 12px; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); font-weight: 800; }
.quote .who .n { text-align: left; }
.quote .who .n b { display: block; font-size: 15px; }
.quote .who .n span { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; padding: 20px 22px; font-size: 16.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a .inner { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 60px 40px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(95,224,138,.16), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: var(--text-2); font-size: 18px; margin: 14px auto 28px; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 12px; }
.footer .tag { color: var(--muted); font-size: 14px; max-width: 30ch; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-2); font-size: 14.5px; }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 13px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero p.sub { max-width: none; }
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-elev);
    border-bottom: 1px solid var(--border); padding: 12px 24px 18px;
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust .divider { display: none; }
  .mock-row { grid-template-columns: 1fr 1fr; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
