/* ==========================================================
   Lets Web3 — landing page
   Brand colors sampled from the Lets Web3 logo.
   ========================================================== */
:root {
  --ink: #1d2326;          /* deepest charcoal */
  --charcoal: #31393c;     /* logo charcoal */
  --slate: #4b4e6d;        /* logo "Lets" */
  --text: #2a3033;
  --muted: #5d6669;
  --line: #e4e7ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --amber: #f79824;        /* logo orange */
  --amber-deep: #e07f0a;
  --amber-tint: #fff3e3;
  --blue: #2176ff;         /* logo blue */
  --blue-tint: #eaf2ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 35, 38, .06), 0 8px 24px rgba(29, 35, 38, .08);
  --shadow-lg: 0 2px 6px rgba(29, 35, 38, .08), 0 24px 60px rgba(29, 35, 38, .14);
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.accent { color: var(--amber-deep); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(247, 152, 36, .35); }
.btn-primary:hover { background: var(--amber-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--charcoal); }
.btn-sm { padding: 9px 18px; font-size: 15px; box-shadow: none; }
.btn-lg { padding: 17px 32px; font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(29, 35, 38, .05); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(33, 118, 255, .10), transparent 70%),
    radial-gradient(520px 380px at 70% 85%, rgba(247, 152, 36, .14), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(49, 57, 60, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hero h1 { text-wrap: balance; font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .accent { display: block; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14.5px; color: var(--muted); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232176ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Agent card */
.agent-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.agent-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; z-index: -1;
  background: linear-gradient(135deg, rgba(247,152,36,.6), rgba(33,118,255,.5));
  filter: blur(26px); opacity: .35;
}
.agent-card-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.agent-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 15px; }
.agent-tag { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.agent-steps { position: relative; padding: 16px 0 6px; }
.agent-steps::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 34px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding: 10px 0; opacity: .45; transition: opacity .4s ease; }
.step strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); line-height: 1.3; }
.step small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.step-icon {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  transition: background-color .3s ease, border-color .3s ease;
}
.step.active, .step.done { opacity: 1; }
.step.active .step-icon { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(33,118,255,.14); }
.step.active .step-icon::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 2px solid var(--blue); border-right-color: transparent; animation: spin .8s linear infinite;
}
.step.done .step-icon {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5L12 5.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
  border-color: var(--blue);
}
.step-human.active .step-icon { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(247,152,36,.18); }
.step-human.active .step-icon::after { border-color: var(--amber); border-right-color: transparent; }
.step-human.done .step-icon { background-color: var(--amber); border-color: var(--amber); }
.approve-chip {
  grid-column: 2; justify-self: start; max-height: 0; overflow: hidden; margin-top: 0;
  font-size: 12.5px; font-weight: 600; color: #8a4b00; background: var(--amber-tint);
  border: 0 solid #fbd9a8; padding: 0 10px; border-radius: 999px;
  opacity: 0; transition: opacity .3s ease, max-height .3s ease, margin-top .3s ease;
}
.step-human.done .approve-chip { opacity: 1; max-height: 30px; margin-top: 8px; padding: 3px 10px; border-width: 1px; }
.agent-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--slate);
}
.agent-foot .sep { color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; text-wrap: balance; }
.section-sub { font-size: 19px; color: var(--muted); margin-top: 18px; }

/* Problem */
.problem { padding-top: 88px; padding-bottom: 88px; background: var(--ink); }
.problem .section-title { color: #fff; max-width: 720px; margin-bottom: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 28px; }
.pain h3 { color: #fff; font-size: 20px; margin: 18px 0 8px; }
.pain p { color: #b5bdc0; }
.icon { width: 30px; height: 30px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6dade; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--amber-tint); display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--amber-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service:nth-child(even) .service-icon { background: var(--blue-tint); }
.service:nth-child(even) .service-icon svg { stroke: var(--blue); }
.service h3 { font-size: 23px; margin-bottom: 10px; }
.service > p { color: var(--muted); }
.checks { margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2331393c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  border: 1px solid var(--line);
}

/* Process */
.process { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 72px) / 4 - 28px); height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--blue));
  opacity: .5;
}
.steps li { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--amber); font-family: var(--font-head); font-weight: 800; color: var(--ink);
  margin-bottom: 22px;
}
.steps li:nth-child(n+3) .step-num { border-color: var(--blue); }
.steps h3 { font-size: 22px; }
.step-meta { font-size: 13.5px; font-weight: 600; color: var(--blue); margin: 6px 0 10px; }
.steps li > p:last-child { color: var(--muted); font-size: 16px; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.why-item { grid-column: span 2; padding: 28px 0 0; border-top: 3px solid var(--charcoal); }
.why-item:nth-child(4) { grid-column: 2 / span 2; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { color: var(--muted); }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq .section-head { margin-bottom: 36px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--charcoal); border-bottom: 2px solid var(--charcoal);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* CTA */
.cta { padding: 112px 0; background: var(--ink); position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(247,152,36,.28), transparent 70%),
    radial-gradient(500px 300px at 85% 100%, rgba(33,118,255,.30), transparent 70%);
}
.cta-inner { position: relative; max-width: 780px; }
.cta h2 { color: #fff; font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; }
.cta-kicker { color: var(--amber); font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-top: 18px; }
.cta-body { color: #c4cbce; font-size: 18px; margin: 14px auto 36px; max-width: 40em; }

/* Built on */
.built-on { padding: 28px 0; border-bottom: 1px solid var(--line); }
.built-on-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.built-on ul { display: flex; flex-wrap: wrap; gap: 10px; }
.built-on li { font-family: var(--font-head); font-weight: 700; color: var(--charcoal); font-size: 14px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* Footer */
.site-footer { padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-nav a { color: var(--text); font-size: 15px; }
.footer-nav a:hover { color: var(--blue); }
.copyright { font-size: 13.5px; color: var(--muted); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .agent-card { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item, .why-item:nth-child(4) { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(29,35,38,.08);
    padding: 8px 16px 18px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { margin-top: 14px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { height: 34px; }
  .hero { padding: 44px 0 64px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-3, .grid-2, .steps, .why-grid { grid-template-columns: 1fr; }
  .service { padding: 26px; }
  .agent-card { padding: 18px; }
  .cta { padding: 80px 0; }
  .cta .btn-lg { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
