/* ======================================================================
   Curtiu.tech — "BRUTALIST POP"
   Dark editorial + tipografia cinética + alma playful (o gesto de curtir)
   ====================================================================== */

:root {
  --acid:   #caff33;   /* primary */
  --violet: #6c4cff;
  --coral:  #ff5b6e;
  --sky:    #22b8ff;
  --accent: var(--acid);          /* tweakable primary */
  --accent-ink: #0b0b0c;

  --bg:   #0b0b0c;
  --bg-2: #notused;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --ink:   #f7f7f5;
  --ink-mute: #9a9a95;
  --ink-faint: #6a6a64;
  --line: #ffffff16;
  --line-2: #ffffff2a;

  --font-display: "Syne", sans-serif;
  --font-head: "Bricolage Grotesque", "Syne", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
}
#root { position: relative; z-index: 1; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ambient glow that trails the cursor */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 540px; height: 540px; border-radius: 50%;
  pointer-events: none; z-index: 0; will-change: transform;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 62%);
  filter: blur(46px); opacity: 0.5; mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; margin: 0; line-height: 0.94; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); display: inline-flex;
  align-items: center; gap: 12px;
}
.eyebrow::before { content: "✺"; }

.section { position: relative; padding: 130px 0; }
.section-head { margin-bottom: 60px; }
.s-title { font-size: clamp(38px, 5.2vw, 72px); letter-spacing: -0.022em; }
.s-sub { margin-top: 22px; color: var(--ink-mute); font-size: 19px; max-width: 56ch; line-height: 1.5; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--pop), background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 12px 0 -2px color-mix(in srgb, var(--accent) 55%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---- pills / tags ---- */
.pill {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 9px 17px; border-radius: 999px; border: 2px solid var(--line-2);
  background: transparent; color: var(--ink); transition: all 0.2s var(--ease); cursor: pointer;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink-mute); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  white-space: nowrap;
}

/* ---- marquee ---- */
.marquee { overflow: hidden; white-space: nowrap; width: 100%; }
.marquee > div { display: inline-block; animation: popMarquee 26s linear infinite; will-change: transform; }
.marquee.acid { background: var(--accent); color: var(--accent-ink); padding: 14px 0; }
.marquee .m-item { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }

/* ---- decorative shapes ---- */
.shape { position: absolute; pointer-events: none; z-index: 0; }

/* ---- idea droid: lightbulb grows on hover ---- */
.idea-droid {
  position: relative;
  width: 100%; max-width: 300px;
  aspect-ratio: 1 / 1;
  margin-top: 28px;
  animation: droidBob 7.5s var(--ease) infinite;
}
.idea-droid-base {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.5));
}
.idea-bulb-glow {
  position: absolute; left: 26.15%; top: 17.8%;
  width: 46%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,77,.6), transparent 62%);
  opacity: 0; pointer-events: none; z-index: 1;
  mix-blend-mode: screen;
  transition: opacity .45s var(--ease), transform .5s var(--pop);
}
.idea-bulb {
  position: absolute; left: 14.19%; top: 4.63%;
  width: 23.92%; height: auto;
  transform-origin: 50% 100%;
  z-index: 2;
  filter: drop-shadow(0 0 5px rgba(255,225,77,.3));
  transition: transform .5s var(--pop), filter .45s var(--ease);
}
.idea-droid:hover .idea-bulb {
  transform: scale(1.42);
  filter: drop-shadow(0 0 26px rgba(255,225,77,.95));
}
.idea-droid:hover .idea-bulb-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
}
@media (prefers-reduced-motion: reduce) { .idea-droid { animation: none; } }

/* ---- section mascots (decorative droids) ---- */
.sec-mascot {
  position: absolute; z-index: 1; pointer-events: none; height: auto;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.5));
  animation: droidBob 7s var(--ease) infinite;
}
.mascot-work { width: 210px; top: 56px; right: 34px; }
@media (prefers-reduced-motion: reduce) { .sec-mascot { animation: none; } }
@media (max-width: 1000px) { .mascot-work { width: 168px; right: 12px; } }
@media (max-width: 860px) { .sec-mascot { display: none; } }

/* ---- services header with presenting mascot ---- */
.svc-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 60px;
}
.svc-head-text { max-width: 720px; }
.svc-head-mascot {
  width: 240px; flex: none;
  margin-bottom: -36px; /* let the feet sit on the grid line */
  align-self: end;
}
.svc-head-mascot img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.5));
  animation: droidBob 7s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .svc-head-mascot img { animation: none; } }
@media (max-width: 860px) { .svc-head { grid-template-columns: 1fr; } .svc-head-mascot { display: none; } }

/* ---- service cards: neo-brutalist hard shadow ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card {
  position: relative; padding: 40px 34px 36px; background: var(--bg);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease); cursor: default; overflow: hidden;
}
.svc-card .svc-fill {
  position: absolute; inset: 0; background: var(--ca, var(--acid)); transform: translateY(101%);
  transition: transform 0.45s var(--ease); z-index: 0;
}
.svc-card:hover .svc-fill { transform: translateY(0); }
.svc-card > * { position: relative; z-index: 1; transition: color 0.35s var(--ease); }
.svc-card:hover, .svc-card:hover h3, .svc-card:hover .svc-k, .svc-card:hover p { color: #0b0b0c; }
.svc-card:hover .tag { border-color: #0b0b0c55; color: #0b0b0c; }
.svc-card:hover .svc-ic svg { stroke: #0b0b0c; }
.svc-ic { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 12px; margin-bottom: 26px; }
.svc-k { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); position: absolute; top: 22px; right: 28px; }
.svc-card h3 { font-size: 27px; }
.svc-card p { color: var(--ink-mute); }
.svc-card:hover p { color: #0b0b0c; }
.svc-card .svc-go { position: absolute; right: 28px; bottom: 30px; font-size: 22px; opacity: 0; transform: translate(-8px, 8px); transition: all 0.3s var(--ease); }
.svc-card:hover .svc-go { opacity: 1; transform: none; }

/* ---- portfolio carousel ---- */
.wk-arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line-2);
  background: transparent; color: var(--ink); font-size: 20px; cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s var(--ease); flex: none;
}
.wk-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.wk-arrow:active { transform: translateY(0) scale(0.95); }
.wk-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 0 18px; margin-top: 56px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-padding-left: max(40px, calc((100vw - var(--maxw)) / 2 + 40px));
  padding-left: max(40px, calc((100vw - var(--maxw)) / 2 + 40px));
}
.wk-track::-webkit-scrollbar { display: none; }
.wk-card {
  flex: 0 0 auto; width: 380px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  background: var(--panel); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.wk-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.wk-pad { flex: 0 0 1px; }
@media (max-width: 560px) { .wk-card { width: 80vw; } }

/* ---- placeholder ---- */
.placeholder {
  position: relative; border: 1px solid var(--line); background-color: var(--panel);
  background-image: repeating-linear-gradient(-45deg, #ffffff0c 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ph-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); background: var(--bg); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* ---- inputs ---- */
.fld {
  width: 100%; background: var(--panel); color: var(--ink); border: 2px solid var(--line-2);
  border-radius: 12px; padding: 14px 16px; font-family: var(--font-body); font-size: 16px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.fld:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.fld-l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 9px; }

/* ---- reveal (pure CSS scroll-driven) ---- */
@keyframes popReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes popMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes popBurst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; } }
@keyframes popSpin { to { transform: rotate(360deg); } }
@keyframes popSpinRev { to { transform: rotate(-360deg); } }
@keyframes popWordIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: popReveal linear both; animation-timeline: view(); animation-range: entry 2% entry 40%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
  .marquee > div { animation: none; }
  [style*="popSpin"] { animation: none !important; }
}

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

/* ---- nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #0b0b0ccc; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; gap: 8px; }
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 2px solid var(--line-2); border-radius: 999px; }
.lang button { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: none; background: transparent; color: var(--ink-faint); cursor: pointer; }
.lang button.on { background: var(--accent); color: var(--accent-ink); }

/* ---- responsive ---- */
@media (max-width: 520px) {
  .fld-2col { grid-template-columns: 1fr !important; }
}
/* ---- hero droid + projected orbit ---- */
.hero-droid {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
}
.hero-droid-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.55));
  animation: droidBob 6.5s var(--ease) infinite;
}
.hero-orbit-inner {
  position: absolute; left: 22%; top: 39%;
  transform: translate(-50%, -50%) scale(0.56);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 60%, transparent));
}
/* bright projection origin at the palm */
.hero-droid::after {
  content: "";
  position: absolute; left: 25%; top: 57%;
  width: 120px; height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 80%, transparent), transparent 65%);
  filter: blur(6px);
  opacity: 0.65;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: beamFlicker 3.4s ease-in-out infinite;
}
/* holographic projection cone from the palm up to the orbit */
.hero-beam {
  position: absolute;
  left: 23%; top: 37%;
  width: 165px; height: 21%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 85%, transparent), transparent 90%);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0);
  filter: blur(6px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: beamFlicker 3.4s ease-in-out infinite;
}
@keyframes droidBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes beamFlicker { 0%,100% { opacity: 0.42; } 45% { opacity: 0.6; } 70% { opacity: 0.36; } }
@media (prefers-reduced-motion: reduce) {
  .hero-droid-img { animation: none; }
  .hero-beam { animation: none; }
}

.no-shapes .shape { display: none !important; }
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #contact-card { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .section { padding: 88px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
  .shape { display: none !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
}
.nav-cta-sm { display: none; }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .nav-logo { transform: scale(0.8); transform-origin: left center; }
  .nav-actions { gap: 8px !important; }
  .nav-cta-lg { display: none; }
  .nav-cta-sm { display: inline; }
  .nav .btn-primary { padding: 8px 13px !important; font-size: 13px !important; }
  .lang button { padding: 5px 8px; }
  .lang { padding: 2px; }
  .foot-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  header.section .wrap[style] { grid-template-columns: 1fr !important; }
}
