/* =========================================================
   Lynce Soluções Tecnológicas — styles.css
   Mobile-first. Tokens on :root, themes via [data-theme].
   ========================================================= */

:root{
  --bg:#08090b;
  --bg-elevated:#121419;
  --bg-alt:#0d0f13;
  --bg-card:#101318;
  --text:#f4f5f6;
  --text-muted:#9aa1ab;
  --text-faint:#6b7178;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.16);

  --radius-sm:10px;
  --radius:16px;
  --radius-lg:24px;

  --container:1240px;

  --ff-heading:'Space Grotesk', system-ui, -apple-system, sans-serif;
  --ff-body:'Inter', system-ui, -apple-system, sans-serif;

  --shadow-md:0 12px 32px -16px rgba(0,0,0,.5);
  --shadow-lg:0 24px 70px -24px rgba(0,0,0,.65);

  --space-1:.5rem;
  --space-2:1rem;
  --space-3:1.5rem;
  --space-4:2rem;
  --space-5:3rem;
  --space-6:4.5rem;
  --space-7:7rem;

  --ease:cubic-bezier(.16,.8,.24,1);
}

/* ---------- Theme presets ---------- */
[data-theme="cyan"]{
  --accent:#00d9ff; --accent-2:#0091ad; --accent-soft:rgba(0,217,255,.13); --accent-contrast:#04141a;
}
[data-theme="amber"]{
  --accent:#f5a623; --accent-2:#c97f0e; --accent-soft:rgba(245,166,35,.15); --accent-contrast:#1a1200;
}
[data-theme="violet"]{
  --accent:#8b5cf6; --accent-2:#6d28d9; --accent-soft:rgba(139,92,246,.15); --accent-contrast:#f8f7ff;
}
[data-theme="mono"]{
  --accent:#ffffff; --accent-2:#b5b5b5; --accent-soft:rgba(255,255,255,.09); --accent-contrast:#0a0a0a;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
*{ margin:0; padding:0; }
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scrollbar-color: var(--border-strong) transparent;
}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--ff-body);
  line-height:1.55;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
ul{ list-style:none; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
svg{ width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
h1,h2,h3,h4{ font-family:var(--ff-heading); line-height:1.15; font-weight:600; letter-spacing:-.01em; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Utility ---------- */
.container{ max-width:var(--container); margin-inline:auto; padding-inline:1.25rem; }
@media (min-width:768px){ .container{ padding-inline:2rem; } }

.skip-link{
  position:absolute; left:1rem; top:-3rem; z-index:200;
  background:var(--accent); color:var(--accent-contrast);
  padding:.6rem 1rem; border-radius:var(--radius-sm); font-weight:600;
  transition:top .2s var(--ease);
}
.skip-link:focus{ top:1rem; }

.eyebrow{
  display:inline-block; font-size:.8rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); margin-bottom:.75rem;
}

.text-accent{
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.badge{
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.75rem; font-weight:600; letter-spacing:.03em;
  color:var(--accent); background:var(--accent-soft);
  border:1px solid var(--border); padding:.35rem .75rem; border-radius:100px;
  margin-bottom:.75rem;
}

.noise-overlay{
  position:fixed; inset:0; pointer-events:none; z-index:1; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:600; font-size:.95rem; padding:.85rem 1.5rem; border-radius:100px;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space:nowrap;
}
.btn--sm{ padding:.55rem 1.1rem; font-size:.85rem; }
.btn--lg{ padding:1rem 2rem; font-size:1rem; }
.btn--primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:var(--accent-contrast);
  box-shadow:0 10px 30px -8px var(--accent-soft);
}
.btn--primary:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -10px var(--accent-soft); }
.btn--ghost{
  background:transparent; color:var(--text); border:1px solid var(--border-strong);
}
.btn--ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
.btn .icon{ width:1.1em; height:1.1em; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(8,9,11,.7);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{ display:flex; align-items:center; }
.brand__logo{
  height:44px; width:44px; object-fit:cover; border-radius:10px;
  mix-blend-mode:screen;
}
.nav{ display:none; }
.nav__list{ display:flex; gap:2rem; }
.nav__link{
  font-size:.92rem; font-weight:500; color:var(--text-muted);
  position:relative; padding:.25rem 0; transition:color .2s var(--ease);
}
.nav__link::after{
  content:''; position:absolute; left:0; bottom:-4px; height:2px; width:0;
  background:var(--accent); transition:width .25s var(--ease);
}
.nav__link:hover{ color:var(--text); }
.nav__link:hover::after, .nav__link.is-active::after{ width:100%; }
.nav__link.is-active{ color:var(--text); }

.header__actions{ display:flex; align-items:center; gap:1rem; }
.header__actions .btn--primary{ display:none; }

.nav-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; align-items:center;
}
.nav-toggle span{
  width:22px; height:2px; background:var(--text); border-radius:2px;
  transition:transform .3s var(--ease), opacity .3s var(--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); }

.mobile-menu{
  position:fixed; inset:72px 0 0 0; z-index:99;
  background:rgba(8,9,11,.98); backdrop-filter:blur(10px);
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2.5rem;
  transform:translateY(-8px); opacity:0; visibility:hidden;
  transition:opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-menu.is-open{ opacity:1; transform:translateY(0); visibility:visible; }
.mobile-menu ul{ display:flex; flex-direction:column; align-items:center; gap:1.75rem; }
.mobile-menu__link{ font-family:var(--ff-heading); font-size:1.5rem; font-weight:600; }

@media (min-width:960px){
  .nav{ display:block; }
  .header__actions .btn--primary{ display:inline-flex; }
  .nav-toggle{ display:none; }
  .mobile-menu{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ position:relative; padding-block:var(--space-6) var(--space-5); overflow:hidden; }
.hero__bg{
  position:absolute; inset:-10% -10% auto -10%; height:140%; z-index:-1;
  background:
    radial-gradient(50% 40% at 20% 15%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 35% at 85% 30%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  animation:drift 22s ease-in-out infinite alternate;
}
@keyframes drift{
  0%{ transform:translate3d(0,0,0) scale(1); }
  100%{ transform:translate3d(1.5%,2%,0) scale(1.05); }
}
.hero__bg::after{
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(60% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image:radial-gradient(60% 60% at 50% 20%, #000 0%, transparent 75%);
  opacity:.5;
}

.hero__inner{ display:flex; flex-direction:column; gap:var(--space-5); align-items:center; text-align:center; }

.hero__title{
  font-size:clamp(2rem, 6.5vw, 3.6rem);
  margin-bottom:1.1rem;
}
.hero__lead{
  color:var(--text-muted); font-size:clamp(1rem,2.2vw,1.15rem);
  max-width:46ch; margin-inline:auto; margin-bottom:2rem;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-bottom:2rem; }

.hero__badges{
  display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center;
}
.hero__badges li{
  font-size:.78rem; font-weight:600; color:var(--text-muted);
  border:1px solid var(--border); padding:.4rem .9rem; border-radius:100px;
}

.hero__visual{ position:relative; width:100%; max-width:280px; }
.hero__glow{
  position:absolute; inset:10% 10% auto 10%; height:70%;
  background:radial-gradient(circle, var(--accent) 0%, transparent 65%);
  filter:blur(40px); opacity:.35;
}
.hero__mark{
  position:relative; width:100%; height:auto; mix-blend-mode:screen;
  filter:drop-shadow(0 20px 45px rgba(0,0,0,.5));
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

@media (min-width:960px){
  .hero__inner{ flex-direction:row; text-align:left; align-items:center; justify-content:space-between; }
  .hero__content{ max-width:640px; }
  .hero__lead{ margin-inline:0; }
  .hero__actions{ justify-content:flex-start; }
  .hero__badges{ justify-content:flex-start; }
  .hero__visual{ max-width:340px; flex-shrink:0; }
}

/* ---------- Trust strip ---------- */
.trust{ border-block:1px solid var(--border); background:var(--bg-alt); }
.trust__inner{
  display:flex; flex-direction:column; gap:.5rem; align-items:center; text-align:center;
  padding-block:1.1rem; font-size:.85rem; color:var(--text-muted);
}
.trust__item strong{ color:var(--text); }
.trust__divider{ display:none; }
@media (min-width:700px){
  .trust__inner{ flex-direction:row; justify-content:center; }
  .trust__divider{ display:block; width:1px; height:16px; background:var(--border-strong); }
}

/* ---------- Sections ---------- */
.section{ padding-block:var(--space-7); }
.section--alt{ background:var(--bg-alt); }
.section__head{ max-width:680px; margin-bottom:var(--space-5); }
.section__head h2{ font-size:clamp(1.6rem, 4vw, 2.4rem); margin-bottom:.85rem; }
.section__lead{ color:var(--text-muted); font-size:1.02rem; }

/* ---------- Services ---------- */
.services-grid{ display:grid; grid-template-columns:1fr; gap:1.25rem; }
@media (min-width:640px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1080px){ .services-grid{ grid-template-columns:repeat(3,1fr); } }

.service-card{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  padding:2rem 1.75rem; transition:transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover{ transform:translateY(-6px); border-color:var(--border-strong); box-shadow:var(--shadow-md); }
.service-card__icon{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:var(--accent-soft); color:var(--accent); margin-bottom:1.25rem;
}
.service-card__icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:1.2rem; margin-bottom:.6rem; }
.service-card > p{ color:var(--text-muted); margin-bottom:1.1rem; font-size:.95rem; }
.service-card ul{ display:flex; flex-direction:column; gap:.55rem; }
.service-card ul li{
  font-size:.88rem; color:var(--text-muted); padding-left:1.3rem; position:relative;
}
.service-card ul li::before{
  content:''; position:absolute; left:0; top:.5em; width:7px; height:7px; border-radius:2px;
  background:var(--accent);
}

/* ---------- Diferenciais ---------- */
.diff-grid{ display:grid; grid-template-columns:1fr; gap:1.5rem; }
@media (min-width:640px){ .diff-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1080px){ .diff-grid{ grid-template-columns:repeat(3,1fr); } }
.diff-card{ padding-inline-start:1.5rem; border-left:2px solid var(--border); }
.diff-card__num{
  font-family:var(--ff-heading); font-size:.85rem; font-weight:700; color:var(--accent);
  display:block; margin-bottom:.5rem; letter-spacing:.05em;
}
.diff-card h3{ font-size:1.05rem; margin-bottom:.4rem; }
.diff-card p{ color:var(--text-muted); font-size:.92rem; }

/* ---------- IA no desenvolvimento ---------- */
.ia__inner{ display:flex; flex-direction:column; gap:var(--space-5); }
.ia__content{ max-width:640px; }
.ia__content > .section__lead{ margin-bottom:var(--space-4); }

.ia-list{ display:flex; flex-direction:column; gap:1.5rem; }
.ia-list__item{ display:flex; gap:1rem; align-items:flex-start; }
.ia-list__icon{
  flex-shrink:0; width:44px; height:44px; border-radius:12px;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.ia-list__icon svg{ width:22px; height:22px; }
.ia-list__item h3{ font-size:1.02rem; margin-bottom:.3rem; }
.ia-list__item p{ color:var(--text-muted); font-size:.92rem; }

.ia-terminal{
  background:#0a0c10; border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-lg);
  font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}
.ia-terminal__bar{ display:flex; gap:6px; padding:.9rem 1.1rem; border-bottom:1px solid var(--border); }
.ia-terminal__bar span{ width:9px; height:9px; border-radius:50%; background:var(--border-strong); }
.ia-terminal__body{ padding:1.5rem 1.4rem; display:flex; flex-direction:column; gap:.65rem; font-size:.85rem; }
.ia-terminal__body p{ color:var(--text-muted); }
.ia-terminal__body p.is-ok{ color:#3ddc84; }
.ia-terminal__prompt{ color:var(--accent); margin-right:.6rem; }
.ia-terminal__cursor{
  display:inline-block; width:7px; height:1em; margin-left:.4rem; vertical-align:middle;
  background:var(--accent); animation:ia-blink 1s step-end infinite;
}
@keyframes ia-blink{ 50%{ opacity:0; } }

@media (min-width:960px){
  .ia__inner{ flex-direction:row; align-items:center; justify-content:space-between; gap:var(--space-6); }
  .ia__content{ flex:1; }
  .ia__visual{ flex:0 0 420px; }
}

/* ---------- Processo ---------- */
.process{ position:relative; display:flex; flex-direction:column; gap:2.25rem; }
.process::before{
  content:''; position:absolute; left:19px; top:6px; bottom:6px; width:1px; background:var(--border-strong);
}
.process__step{ display:flex; gap:1.5rem; align-items:flex-start; position:relative; }
.process__index{
  flex-shrink:0; width:40px; height:40px; border-radius:50%;
  background:var(--bg-card); border:1px solid var(--border-strong); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-family:var(--ff-heading); font-weight:700;
  position:relative; z-index:1;
}
.process__step h3{ font-size:1.1rem; margin-bottom:.35rem; }
.process__step p{ color:var(--text-muted); font-size:.94rem; max-width:60ch; }

@media (min-width:900px){
  .process{ flex-direction:row; justify-content:space-between; }
  .process::before{ left:20px; right:20px; top:19px; bottom:auto; width:auto; height:1px; }
  .process__step{ flex-direction:column; text-align:center; flex:1; }
}

/* ---------- Case / projeto ---------- */
.case-card{
  display:flex; flex-direction:column;
  background:linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-md);
}
.case-card__media{ position:relative; background:#0a0c10; }
.case-card__browser{ display:flex; gap:6px; padding:.9rem 1.1rem; }
.case-card__browser span{ width:9px; height:9px; border-radius:50%; background:var(--border-strong); }
.case-card__media img{ display:block; width:100%; height:auto; }

.case-card__body{ padding:2rem 2.25rem 0; }
.case-card__logo{
  display:block; height:44px; width:auto; max-width:100%;
  background:#fff; border-radius:10px; padding:.5rem .8rem; margin:0 0 1.2rem;
  object-fit:contain;
}
.case-card__body p{ color:var(--text-muted); max-width:60ch; margin-bottom:1rem; }
.case-card__link{ display:inline-block; font-weight:600; color:var(--accent); }

.case-card__cta{
  display:flex; flex-direction:column; gap:1rem; align-items:flex-start;
  padding:1.5rem 2.25rem 2.25rem; margin-top:1.5rem; border-top:1px solid var(--border);
}
.case-card__cta p{ color:var(--text-muted); font-size:.95rem; }

@media (min-width:900px){
  .case-card{ flex-direction:row; align-items:stretch; }
  .case-card__media{ flex:0 0 42%; }
  .case-card__media img{ height:100%; object-fit:cover; }
  .case-card__body{
    flex:1; padding:2.5rem; border-right:1px solid var(--border);
    display:flex; flex-direction:column; justify-content:center;
  }
  .case-card__cta{
    flex:0 0 240px; justify-content:center; margin-top:0;
    border-top:0; padding:2.5rem 2rem;
  }
}

/* ---------- Sobre ---------- */
.values-grid{ display:grid; grid-template-columns:1fr; gap:1.25rem; margin-top:var(--space-4); }
@media (min-width:768px){ .values-grid{ grid-template-columns:repeat(3,1fr); } }
.value-card{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.75rem;
}
.value-card h3{ color:var(--accent); font-size:1rem; margin-bottom:.6rem; }
.value-card p{ color:var(--text-muted); font-size:.94rem; }

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; gap:1rem; max-width:820px; }
.faq-item{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.4rem 1.6rem; overflow:hidden;
}
.faq-item summary{
  cursor:pointer; list-style:none; font-weight:600; font-size:1rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+'; font-size:1.4rem; color:var(--accent); flex-shrink:0; transition:transform .25s var(--ease);
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ color:var(--text-muted); margin-top:1rem; font-size:.94rem; }

/* ---------- Contato ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr; gap:1.25rem; }
@media (min-width:640px){ .contact-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1080px){ .contact-grid{ grid-template-columns:repeat(4,1fr); } }

.contact-card{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.75rem; transition:transform .3s var(--ease), border-color .3s var(--ease);
  display:flex; flex-direction:column; gap:.3rem;
}
a.contact-card:hover{ transform:translateY(-6px); border-color:var(--accent); }
.contact-card__icon{
  width:46px; height:46px; border-radius:12px; background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center; margin-bottom:1rem;
}
.contact-card__icon svg{ width:22px; height:22px; }
.contact-card h3{ font-size:1rem; }
.contact-card p{ color:var(--text-muted); font-size:.92rem; }
.contact-card__cta{ margin-top:.75rem; font-size:.85rem; font-weight:600; color:var(--accent); }
.contact-card__cta--muted{ color:var(--text-faint); }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--border); background:var(--bg-alt); padding-block:var(--space-6) var(--space-4); }
.footer__inner{ display:flex; flex-direction:column; gap:var(--space-4); }
.footer__logo{ height:52px; width:52px; object-fit:cover; border-radius:12px; mix-blend-mode:screen; margin-bottom:1rem; }
.footer__brand p{ color:var(--text-muted); font-size:.9rem; max-width:32ch; }
.footer__nav{ display:grid; grid-template-columns:1fr; gap:2rem; }
.footer__nav h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); margin-bottom:1rem; }
.footer__nav ul{ display:flex; flex-direction:column; gap:.6rem; }
.footer__nav a{ color:var(--text-muted); font-size:.92rem; transition:color .2s var(--ease); }
.footer__nav a:hover{ color:var(--accent); }
.footer__nav li{ color:var(--text-muted); font-size:.92rem; }

.footer__bottom{
  margin-top:var(--space-5); padding-top:var(--space-3); border-top:1px solid var(--border);
  font-size:.82rem; color:var(--text-faint);
}

@media (min-width:768px){
  .footer__inner{ flex-direction:row; justify-content:space-between; }
  .footer__nav{ grid-template-columns:repeat(3,1fr); gap:3rem; flex:1; justify-content:flex-end; max-width:640px; }
}

/* ---------- Floating actions ---------- */
.whatsapp-fab{
  position:fixed; right:1.25rem; bottom:1.25rem; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:var(--accent-contrast);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 30px -8px rgba(0,0,0,.5);
  transition:transform .25s var(--ease);
}
.whatsapp-fab svg{ width:26px; height:26px; }
.whatsapp-fab:hover{ transform:scale(1.08); }

.back-to-top{
  position:fixed; right:1.25rem; bottom:5.5rem; z-index:89;
  width:44px; height:44px; border-radius:50%;
  background:var(--bg-card); border:1px solid var(--border-strong); color:var(--text);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top svg{ width:18px; height:18px; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- Theme picker (test only, ?picker=1) ---------- */
.theme-picker{
  position:fixed; left:1.25rem; bottom:1.25rem; z-index:200;
  background:var(--bg-card); border:1px solid var(--border-strong); border-radius:16px;
  padding:.9rem; display:none; flex-direction:column; gap:.6rem; box-shadow:var(--shadow-lg);
  font-size:.78rem;
}
.theme-picker.is-active{ display:flex; }
.theme-picker__label{ color:var(--text-muted); font-weight:600; }
.theme-picker__row{ display:flex; gap:.5rem; }
.theme-picker__swatch{
  width:32px; height:32px; border-radius:50%; border:2px solid transparent; cursor:pointer;
  position:relative;
}
.theme-picker__swatch[data-swatch="cyan"]{ background:#00d9ff; }
.theme-picker__swatch[data-swatch="amber"]{ background:#f5a623; }
.theme-picker__swatch[data-swatch="violet"]{ background:#8b5cf6; }
.theme-picker__swatch[data-swatch="mono"]{ background:#ffffff; }
.theme-picker__swatch.is-current{ border-color:var(--text); }
