/* Crawlr website — white & green (#2a6833), Geist type, Apple/firecrawl-inspired. */
:root {
  --green: #2a6833;
  --green-strong: #1f4f27;
  --green-050: #f0f6f1;
  --green-100: #dfeee3;
  --lime: #7bd23f;

  --ink: #0e1a12;
  --body: #3d4a42;
  --muted: #6f7d73;
  --paper: #ffffff;
  --line: #e7ede9;
  --card: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 18, 0.06);
  --shadow: 0 10px 30px rgba(16, 26, 18, 0.08);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--font);
  color: var(--body);
  background: transparent;
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-strong); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.accent { color: var(--green); }

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 700; }
.brand img { width: 30px; height: 30px; display: block; }
.brand .word { font-size: 1.25rem; letter-spacing: -0.04em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; padding: 0.7rem 1.3rem; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; white-space: nowrap;
}
.btn-solid { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--green-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--green-100); }
.btn-ghost:hover { color: var(--green-strong); border-color: var(--green); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.86rem; }

/* ---- Hero ---- */
.hero { position: relative; padding: 6.5rem 0 4.5rem; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(42, 104, 51, 0.10), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(123, 210, 63, 0.10), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600;
  color: var(--green-strong); background: var(--green-050); border: 1px solid var(--green-100);
  padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); line-height: 1.03; margin: 0 0 1.2rem; font-weight: 800; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 660px; margin: 0 auto 2rem; }
.hero .cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; margin: 0 0 0.6rem; text-align: center; }
section .section-sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 3rem; font-size: 1.05rem; }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-100); }
.tile {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green-050);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
  border: 1px solid var(--green-100);
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 0.8rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---- Code cards ---- */
pre {
  position: relative; background: #0e1a12; color: #eaf3ec; border-radius: var(--radius);
  padding: 1.3rem 1.4rem; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem;
  line-height: 1.75; margin: 1.25rem 0; box-shadow: var(--shadow); border: 1px solid #16241a;
}
pre.light {
  background: var(--green-050); color: var(--ink); border: 1px solid var(--green-100); box-shadow: var(--shadow-sm);
}
pre .p { color: var(--lime); font-weight: 500; }
pre.light .p { color: var(--green); font-weight: 600; }
pre .c { color: #7f9a86; }
pre.light .c { color: var(--muted); }
pre b { color: #fff; }
pre.light b { color: var(--green-strong); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--green-050); color: var(--green-strong); padding: 0.12em 0.4em; border-radius: 6px; }
pre code { background: none; padding: 0; color: inherit; }
.hero-demo { text-align: left; max-width: 760px; margin: 2.75rem auto 0; }

.copy {
  position: absolute; top: 0.6rem; right: 0.6rem; font-family: var(--font); background: rgba(255,255,255,0.9);
  color: var(--green-strong); border: 1px solid var(--green-100); border-radius: 8px; padding: 0.22rem 0.6rem;
  font-size: 0.72rem; font-weight: 600; cursor: pointer; opacity: 0.9;
}
.copy:hover { opacity: 1; background: #fff; }

/* ---- FAQ ---- */
.faq { max-width: 740px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--green-100); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 1.05rem 0; list-style: none; outline: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-weight: 500; font-size: 1.15rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.1rem; color: var(--body); font-size: 0.96rem; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.9rem; background: var(--green-050); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer .brand img { width: 24px; height: 24px; }
footer .brand .word { font-size: 1.05rem; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links .hide-sm { display: none; }
}


/* ---- Animated abstract background ---- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--paper); }
.blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.5; will-change: transform; }
.b1 { width: 460px; height: 460px; left: -120px; top: -90px;
      background: radial-gradient(circle at 30% 30%, rgba(123,210,63,0.45), rgba(42,104,51,0.22)); animation: float1 26s ease-in-out infinite; }
.b2 { width: 520px; height: 520px; right: -150px; top: 100px;
      background: radial-gradient(circle at 60% 40%, rgba(42,104,51,0.34), rgba(123,210,63,0.14)); animation: float2 32s ease-in-out infinite; }
.b3 { width: 420px; height: 420px; left: 42%; bottom: -170px;
      background: radial-gradient(circle at 50% 50%, rgba(123,210,63,0.30), rgba(42,104,51,0.12)); animation: float3 28s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px,60px) scale(1.15); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,50px) scale(1.1); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-70px) scale(1.2); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,104,51,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,104,51,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 72%);
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---- Nav icons ---- */
.icon-link { display: inline-flex; align-items: center; opacity: 0.75; transition: opacity 0.15s ease; }
.icon-link:hover { opacity: 1; }
.icon-link img { display: block; }

/* ---- Stats strip ---- */
.stats { padding: 2.5rem 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--green); letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: 0.88rem; }

/* ---- Pipeline ---- */
.pipeline { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
.layer {
  flex: 1 1 148px; min-width: 148px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.05rem; box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.layer:hover { transform: translateY(-3px); border-color: var(--green-100); }
.layer .k { font-family: var(--mono); font-size: 0.75rem; color: var(--green); font-weight: 600; }
.layer h4 { margin: 0.3rem 0; font-size: 1rem; color: var(--ink); }
.layer p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.arrow { display: flex; align-items: center; color: var(--green); font-weight: 700; font-size: 1.1rem; }

/* ---- CTA band ---- */
.cta-band {
  text-align: center; background: var(--green); color: #fff; border-radius: 28px;
  max-width: 1000px; margin: 4rem auto; padding: 3.5rem 1.5rem; border-top: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0.5rem auto 1.6rem; }
.cta-band .cta { justify-content: center; }
.cta-band .btn-solid { background: #fff; color: var(--green); }
.cta-band .btn-solid:hover { background: #eef5f0; color: var(--green-strong); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; }

/* ---- Footer icons ---- */
.footer-links { display: flex; gap: 1rem; align-items: center; }
.footer-links a { opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.footer-links img { display: block; }

@media (max-width: 820px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .arrow { transform: rotate(90deg); }
  .layer { flex-basis: 100%; }
}


/* ---- Badges row ---- */
.badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.badges img { height: 22px; }

/* ---- Copy chip (hero install) ---- */
.copychip {
  display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font);
  background: #fff; color: var(--green-strong); border: 1px solid var(--green-100);
  border-radius: 999px; padding: 0.6rem 1.1rem; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.copychip:hover { border-color: var(--green); transform: translateY(-1px); }
.copychip .mono { font-family: var(--mono); font-weight: 500; }
.copychip .copychip-icon { color: var(--green); font-size: 1.05rem; }
.copychip.copied { border-color: var(--green); }

/* ---- Comparison table ---- */
.compare { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.compare th.crawlr, .compare td.crawlr { background: var(--green-050); color: var(--ink); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--muted); }

/* ---- Verticals pills ---- */
.verticals { text-align: center; color: var(--muted); margin-top: 1.5rem; }
.pill {
  display: inline-block; background: var(--green-050); color: var(--green-strong);
  border: 1px solid var(--green-100); border-radius: 999px; padding: 0.2rem 0.7rem;
  font-family: var(--mono); font-size: 0.82rem; margin: 0.15rem;
}

/* ---- Richer footer ---- */
footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; color: var(--muted); font-size: 0.9rem; background: var(--green-050); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand p { margin: 0.6rem 0 0; max-width: 320px; }
.footer-col h5 { margin: 0 0 0.6rem; color: var(--ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: var(--muted); padding: 0.2rem 0; }
.footer-col a:hover { color: var(--green-strong); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.footer-bottom .muted-note { color: var(--muted); }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* =========================================================================
   v4 — Apple/iOS polish, macOS terminals, bento, vertical pipeline, docs
   ========================================================================= */

/* ---- macOS terminal window (wraps all code blocks) ---- */
.terminal {
  position: relative; max-width: 760px; margin: 1.75rem auto 0; text-align: left;
  background: #0e1a12; border: 1px solid #16241a; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 55px rgba(16, 26, 18, 0.18);
}
.hero .terminal { margin-top: 2.75rem; }
.terminal-bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 0.6rem 0.9rem; background: #182a1f; border-bottom: 1px solid #0a140e;
}
.tdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tdot.r { background: #ff5f56; } .tdot.y { background: #ffbd2e; } .tdot.g { background: #27c93f; }
.tterm {
  position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
  color: #7f9a86; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em;
}
.terminal pre {
  margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.terminal .copy { top: 0.5rem; right: 0.7rem; z-index: 2; }

/* ---- Alternating bento (Features) ---- */
.bento { display: flex; flex-direction: column; gap: 1.1rem; max-width: 860px; margin: 0 auto; }
.bento .card { display: flex; gap: 1.1rem; align-items: flex-start; width: min(560px, 94%); }
.bento .card .tile { flex: 0 0 auto; }
.bento .card h3 { margin: 0 0 0.35rem; }
.bento .card:nth-child(odd) { align-self: flex-start; }
.bento .card:nth-child(even) { align-self: flex-end; }

/* ---- Animated vertical progress pipeline ---- */
.pipeline-vert { position: relative; max-width: 700px; margin: 0 auto; padding-left: 44px; }
.pl-track {
  position: absolute; left: 14px; top: 6px; bottom: 6px; width: 4px;
  background: var(--green-100); border-radius: 4px; overflow: hidden;
}
.pl-flow {
  position: absolute; left: 0; right: 0; height: 42%; top: -42%;
  background: linear-gradient(180deg, transparent, var(--green), var(--lime));
  animation: plflow 2.6s linear infinite;
}
@keyframes plflow { to { top: 100%; } }
.pl-steps { list-style: none; margin: 0; padding: 0; }
.pl-step { position: relative; padding: 0 0 1.7rem; }
.pl-step:last-child { padding-bottom: 0; }
.pl-step::before {
  content: ""; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--green);
  box-shadow: 0 0 0 4px var(--paper); transition: transform 0.15s ease, background 0.15s ease;
}
.pl-step:hover::before { transform: scale(1.35); background: var(--green); }
.pl-k { font-family: var(--mono); color: var(--green); font-weight: 600; font-size: 0.78rem; }
.pl-step h4 { margin: 0.15rem 0 0.3rem; color: var(--ink); font-size: 1.05rem; }
.pl-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---- Extra hover effects ---- */
.card .tile { transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.card:hover .tile { background: var(--green); color: #fff; border-color: var(--green); }
.pill { transition: all 0.15s ease; }
.pill:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-1px); }
.btn-solid:hover { box-shadow: 0 10px 24px rgba(42, 104, 51, 0.28); }
.brand img { transition: transform 0.2s ease; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-links a:not(.btn):not(.icon-link) { position: relative; }
.nav-links a:not(.btn):not(.icon-link)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--green); transition: width 0.2s ease;
}
.nav-links a:not(.btn):not(.icon-link):hover::after { width: 100%; }
.compare tbody tr { transition: background 0.15s ease; }
.compare tbody tr:hover td { background: #f6faf7; }
.compare tbody tr:hover td.crawlr { background: var(--green-100); }

/* ---- Docs page ---- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; padding: 2.5rem 1.5rem 4rem; align-items: start; }
.doc-side { position: sticky; top: 88px; align-self: start; font-size: 0.92rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.doc-side h5 { margin: 1.2rem 0 0.4rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.doc-side h5:first-child { margin-top: 0; }
.doc-side a { display: block; color: var(--muted); padding: 0.28rem 0; border-left: 2px solid transparent; padding-left: 0.7rem; margin-left: -0.7rem; }
.doc-side a:hover { color: var(--ink); }
.doc-side a.active { color: var(--green-strong); border-left-color: var(--green); font-weight: 600; }
.doc-main { min-width: 0; max-width: 760px; }
.doc-main h1 { font-size: 2.2rem; margin: 0 0 1.5rem; }
.doc-main h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; scroll-margin-top: 88px; }
.doc-main h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.doc-main p, .doc-main li { color: #33413a; }
.doc-main ul, .doc-main ol { padding-left: 1.3rem; }
.doc-main li { margin: 0.35rem 0; }
.doc-main table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-main th, .doc-main td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-main th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.doc-main tbody tr:last-child td { border-bottom: 0; }
.doc-main .terminal { margin: 1rem 0; }
.doc-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 820px) {
  .doc-layout { grid-template-columns: 1fr; gap: 1rem; }
  .doc-side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .blob, .pl-flow { animation: none; }
}


/* =========================================================================
   v5 — 100vh centered hero, 4-up use cases, light terminals, GitHub icon
   ========================================================================= */

/* ---- Hero: full viewport height, vertically centered ---- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 5rem 0; }
.hero .wrap { width: 100%; }

/* ---- "Who it's for": four big cards with a lively hover ---- */
.usecase-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.usecase-grid .card {
  padding: 2rem 1.6rem; min-height: 250px;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease;
}
.usecase-grid .card .tile {
  width: 54px; height: 54px; font-size: 1.5rem; border-radius: 14px; margin-bottom: 1.15rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.usecase-grid .card h3 { font-size: 1.14rem; }
.usecase-grid .card:hover { transform: translateY(-10px); box-shadow: 0 26px 55px rgba(42, 104, 51, 0.20); border-color: var(--green); }
.usecase-grid .card:hover .tile { transform: scale(1.12) rotate(-6deg); }
@media (max-width: 1000px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } }

/* ---- Light-mode macOS terminal theme ---- */
.terminal { background: #fbfdfb; border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(16, 26, 18, 0.10); }
.terminal-bar { background: #eef2ef; border-bottom: 1px solid var(--line); }
.tterm { color: #8a978d; }
.terminal pre { color: #1c2a22; }
.terminal pre .p { color: var(--green); font-weight: 600; }
.terminal pre .c { color: #93a097; }
.terminal pre b { color: var(--green-strong); }
.terminal .copy { background: #fff; color: var(--green-strong); border: 1px solid var(--green-100); }


/* =========================================================================
   v6 — compact hero so headline + lead + buttons + terminal fit in 100vh
   ========================================================================= */
.hero { padding: 4.5rem 0 2rem; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); margin-bottom: 1rem; }
.hero p.lead { font-size: clamp(1rem, 1.9vw, 1.18rem); margin-bottom: 1.5rem; max-width: 620px; }
.hero .terminal { margin-top: 1.5rem; max-width: 680px; }
.hero .terminal pre { font-size: 0.8rem; padding: 1rem 1.2rem; line-height: 1.6; }
.hero .terminal .terminal-bar { padding: 0.5rem 0.8rem; }

/* If the viewport is short, let the hero grow instead of clipping content. */
@media (max-height: 720px) { .hero { min-height: auto; padding: 6rem 0 3rem; } }


/* =========================================================================
   v7 — hero fits ENTIRE content (headline + lead + buttons + terminal) in
   one screen, centered; scales down on shorter viewports instead of clipping.
   ========================================================================= */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4.5rem 1rem 1.5rem; }
.hero .wrap { width: 100%; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.06; margin: 0 0 0.9rem; }
.hero p.lead { font-size: clamp(0.95rem, 1.6vw, 1.12rem); margin: 0 auto 1.3rem; max-width: 600px; }
.hero .cta { margin: 0; }
.hero .terminal { margin: 1.3rem auto 0; max-width: 640px; }
.hero .terminal pre { font-size: 0.76rem; padding: 0.9rem 1.1rem; line-height: 1.55; }
.hero .terminal .terminal-bar { padding: 0.45rem 0.75rem; }

/* Shorter laptop viewports: shrink everything so it still fits + centers. */
@media (max-height: 780px) {
  .hero { min-height: 100vh; padding-top: 4.25rem; }
  .hero h1 { font-size: clamp(1.7rem, 3.2vh, 2.6rem); }
  .hero p.lead { font-size: 0.95rem; margin-bottom: 1rem; }
  .hero .terminal { margin-top: 1rem; }
  .hero .terminal pre { font-size: 0.7rem; padding: 0.8rem 1rem; }
}
@media (max-height: 640px) {
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: 1.65rem; margin-bottom: 0.5rem; }
  .hero p.lead { font-size: 0.84rem; margin-bottom: 0.75rem; max-width: 520px; }
  .hero .cta .btn, .hero .copychip { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
  .hero .terminal { margin-top: 0.8rem; max-width: 560px; }
  .hero .terminal pre { font-size: 0.6rem; padding: 0.6rem 0.8rem; line-height: 1.5; }
  .hero .terminal .terminal-bar { padding: 0.3rem 0.55rem; }
}
