/* ============================================================================
   AS DIGITAL — styles.css
   Archetype: Mouse-Reactive Gradient · near-black + one cyan accent
   ============================================================================ */

:root {
  --bg:      #0a0a0b;
  --bg-2:    #121214;
  --bg-3:    #18181b;
  --line:    rgba(255, 255, 255, 0.09);
  --line-2:  rgba(255, 255, 255, 0.16);
  --ink:     #f5f5f4;
  --mute:    #9b9ba0;
  --mute-2:  #6b6b70;
  --accent:  #3cc8f0;
  --accent-2:#6fe3ff;
  --g1: #1fb6e8;
  --g2: #3a5bff;
  --g3: #7b3cff;

  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #001018; }

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

/* film grain — very subtle texture over everything */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--f-sans); letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #001018; box-shadow: 0 10px 40px -10px rgba(60, 200, 240, .6); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .14em; color: var(--mute); }
.nav-logo b, .footer-brand b { color: var(--ink); font-weight: 700; }
.nav-logo img { transition: transform .6s var(--ease); }
.nav-logo:hover img { transform: rotate(-12deg) scale(1.06); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--mute); position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; }

/* ---------- Layout ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; position: relative; }
.label { font: 400 13px/1 var(--f-mono); color: var(--mute); letter-spacing: .04em; margin: 0 0 28px; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-title {
  font-size: clamp(2.6rem, 8.5vw, 7.5rem); font-weight: 600; line-height: .92; letter-spacing: -.045em; margin: 0;
}
.section-sub { color: var(--mute); max-width: 52ch; margin: 28px 0 0; font-size: 18px; }

/* Massive type with hover invert */
.invert { display: inline-block; padding: 0 .08em; margin-left: -.08em; border-radius: .08em; transition: background .45s var(--ease), color .45s var(--ease); cursor: default; }
.invert:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--pad) clamp(48px, 8vh, 96px);
  overflow: clip; isolation: isolate;
}
.hero-gradient {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(circle min(46vw, 620px) at var(--mx, 70%) var(--my, 35%), var(--g1) 0%, transparent 60%),
    radial-gradient(circle min(56vw, 760px) at calc(var(--mx, 70%) + 14%) calc(var(--my, 35%) + 18%), var(--g2) 0%, transparent 60%),
    radial-gradient(circle min(40vw, 520px) at calc(100% - var(--mx, 70%)) calc(var(--my, 35%) + 30%), var(--g3) 0%, transparent 60%);
  filter: blur(70px) saturate(130%);
  opacity: .5;
  animation: gradIn 2.2s var(--ease) both;
}
@keyframes gradIn { from { opacity: 0; transform: scale(1.1); } to { opacity: .5; transform: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,.2) 0%, rgba(10,10,11,0) 40%, var(--bg) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1 var(--f-mono); color: var(--mute); letter-spacing: .04em; margin: 0 0 32px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(60,200,240,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60,200,240,.55); } 70% { box-shadow: 0 0 0 10px rgba(60,200,240,0); } 100% { box-shadow: 0 0 0 0 rgba(60,200,240,0); } }

.hero-title {
  margin: 0; font-weight: 600;
  font-size: clamp(3.3rem, 11.2vw, 11rem);
  line-height: .9; letter-spacing: -.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; animation: rise 1.15s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-title .grad {
  background: linear-gradient(90deg, var(--accent-2), var(--g2) 55%, var(--g3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .04em .2em 0; margin-bottom: -.2em;
}
.hero-title .thin { font-weight: 300; color: var(--mute); }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(36px, 6vh, 64px); flex-wrap: wrap; }
.hero-sub { max-width: 44ch; color: var(--mute); font-size: clamp(16px, 1.4vw, 19px); margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: .9em; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto-text {
  font-size: clamp(1.6rem, 3.6vw, 3.25rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 400;
  max-width: 24ch; margin: 0; max-width: 30ch;
}
.manifesto-text em { font-style: normal; color: var(--accent-2); }

/* ---------- Services (accordion rows) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 70px 1fr auto 44px; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 34px) 0;
  transition: padding .45s var(--ease), color .3s;
}
.svc summary::-webkit-details-marker { display: none; }
.svc-num { font: 400 13px/1 var(--f-mono); color: var(--mute-2); }
.svc-name { font-size: clamp(1.7rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; transition: transform .45s var(--ease), color .3s; }
.svc-tag { font: 400 13px/1 var(--f-mono); color: var(--mute); }
.svc-plus { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .3s, border-color .3s, transform .45s var(--ease); }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .45s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc summary:hover .svc-name { transform: translateX(14px); color: var(--accent-2); }
.svc summary:hover .svc-plus { border-color: var(--ink); }
.svc[open] .svc-plus { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(180deg); }
.svc[open] .svc-plus::after { transform: rotate(0deg); }
.svc[open] .svc-name { color: var(--accent-2); }
.svc-body { padding: 0 0 34px 90px; max-width: 760px; }
.svc-body p { margin: 0; color: var(--mute); font-size: clamp(16px, 1.4vw, 19px); }
.svc[open] .svc-body { animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Pricing ---------- */
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; }
.group-title small { font: 400 13px/1 var(--f-mono); color: var(--accent); letter-spacing: .02em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 72px; }
.cards:last-child { margin-bottom: 0; }

.card {
  --x: 50%; --y: 0%;
  position: relative; display: flex; flex-direction: column; gap: 24px;
  padding: 32px 28px 28px; border-radius: 22px;
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color .35s var(--ease), transform .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(60, 200, 240, .14), transparent 60%);
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-feature { background: linear-gradient(160deg, #13202a 0%, var(--bg-2) 55%); border-color: rgba(60, 200, 240, .28); }
.card-quiet { background: transparent; border-style: dashed; }
.card-kicker { font: 400 12px/1 var(--f-mono); color: var(--mute-2); margin: 0 0 18px; letter-spacing: .04em; }
.card-name { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.1; }
.card-desc { margin: 0; color: var(--mute); font-size: 15.5px; line-height: 1.5; }
.price { margin: 0; font-size: clamp(2.4rem, 3.6vw, 3.1rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.price .cur { font-size: .5em; font-weight: 400; color: var(--mute); margin-right: 2px; align-self: flex-start; margin-top: .25em; }
.price small { flex-basis: 100%; font: 400 12px/1.4 var(--f-mono); letter-spacing: .03em; color: var(--mute); margin-top: 8px; }
.price-quote { color: var(--mute); font-weight: 400; }
.feats { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 11px; flex: 1; }
.feats li { position: relative; padding-left: 26px; font-size: 15px; color: #d4d4d6; line-height: 1.4; }
.feats li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 8px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) scale(.8); transform-origin: left top; top: .7em; }
.card-ctas { display: grid; gap: 14px; justify-items: center; }
.link-consult { font-size: 14px; color: var(--mute); transition: color .25s; }
.link-consult:hover { color: var(--ink); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 32px 0 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-num { display: block; font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--mute-2); margin-bottom: 28px; transition: color .4s, -webkit-text-stroke-color .4s; }
.step:hover .step-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 10px; }
.step p { color: var(--mute); margin: 0; max-width: 34ch; }

/* ---------- Contact ---------- */
.contact { text-align: left; overflow: clip; isolation: isolate; padding-bottom: clamp(120px, 16vw, 220px); }
.contact-gradient { --mx: 30%; --my: 70%; inset: 0; opacity: .3; animation: none; }
.contact-big { display: inline-flex; align-items: flex-start; gap: .1em; font-size: clamp(4rem, 17vw, 16rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; }
.contact-big .u { position: relative; padding-bottom: .04em; }
.contact-big .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .04em; min-height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.contact-big:hover .u::after { transform: scaleX(1); transform-origin: left; }
.contact-big .arrow { font-size: .38em; margin-top: .1em; color: var(--accent); transition: transform .5s var(--ease); }
.contact-big:hover .arrow { transform: translate(.15em, -.15em); }
.contact-sub { color: var(--mute); font-size: clamp(16px, 1.5vw, 20px); margin: 30px 0 0; }

/* ---------- Footer ---------- */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px var(--pad) 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.footer p { margin: 0; font-family: var(--f-mono); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; letter-spacing: .14em; font-size: 13px; }
.footer-top:hover { color: var(--ink); }

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  height: 60px; padding: 0 18px; border-radius: 999px;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 36px -8px rgba(37, 211, 102, .55), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .4s var(--ease), gap .4s var(--ease), box-shadow .3s;
  animation: waIn .8s var(--ease) 1s both;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 15px; transition: max-width .45s var(--ease); }
.wa-float:hover { gap: 10px; transform: translateY(-3px); box-shadow: 0 16px 44px -8px rgba(37, 211, 102, .7); }
.wa-float:hover .wa-label { max-width: 120px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ring 2.8s ease-out 2s infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Defensive: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .nav-burger {
    display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
  .nav.is-open .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad);
    background: rgba(10,10,11,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-links a { font-size: 44px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); padding: 6px 0; }
  .nav-links a::after { display: none; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; }

  .hero { align-items: flex-end; padding-top: 120px; }
  .hero-title { font-size: clamp(3rem, 15vw, 6rem); }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }

  .svc summary { grid-template-columns: 34px 1fr 40px; gap: 12px; }
  .svc-tag { display: none; }
  .svc-plus { width: 40px; height: 40px; }
  .svc-body { padding-left: 46px; }

  .cards { grid-template-columns: 1fr; margin-bottom: 56px; }
  .card:hover { transform: none; }

  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 76px 1fr; column-gap: 8px; }
  .step-num { grid-row: span 2; font-size: 3.2rem; margin: 0; }

  .wa-float { right: 16px; bottom: 16px; height: 56px; padding: 0 15px; }
  .footer { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
}

/* Only truly intrusive motion is reduced — micro-interactions stay */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 80s; }
  .contact-gradient { animation: none; }
  .wa-float::before { animation: none; }
}
