/* ============ TOKENS ============ */
:root {
  --bg: #0b0a10;
  --bg-soft: #131219;
  --surface: #16151d;
  --border: rgba(255,255,255,0.09);
  --text: #f6f5f2;
  --text-dim: #a7a5b3;
  --amber: #ffb020;
  --coral: #ff5b4a;
  --violet: #9b6bff;
  --mint: #2fd9a8;
  --grad-primary: linear-gradient(135deg, var(--amber), var(--coral));
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.16,1,.3,1);
  --font-heading: 'Arial Black', Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent: var(--amber);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ PRELOADER ============ */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .6s var(--ease), visibility .6s var(--ease); }
.preloader-mark { font-family: var(--font-heading); font-size: 3rem; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; animation: mark-pulse 1s var(--ease) infinite alternate; }
@keyframes mark-pulse { from { opacity: .4; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
body.loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ CUSTOM CURSOR ============ */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); }
.cursor-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: background .25s var(--ease); }
.cursor-ring { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); transition: border-color .25s var(--ease), width .25s var(--ease), height .25s var(--ease), background .25s var(--ease); }
.cursor-ring.pointer { width: 54px; height: 54px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cursor-ring.press { width: 28px; height: 28px; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ BUTTONS / BADGE ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem; border: none; cursor: pointer; transition: transform .08s linear, box-shadow .3s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--grad-primary); color: #14100a; box-shadow: 0 8px 26px -8px rgba(255,91,74,.55); }
.btn-primary:hover { box-shadow: 0 12px 30px -6px rgba(255,91,74,.7); }
.full-width { width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: .76rem; font-weight: 600; color: var(--text-dim); margin-bottom: 18px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.badge-live { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 40%, var(--border)); margin: 0; }

/* ============ LAYOUT: SPLIT SIDEBAR + BENTO ============ */
.layout { display: grid; grid-template-columns: 320px 1fr; align-items: start; }

.side-panel { position: sticky; top: 0; height: 100vh; padding: 34px 30px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border); }
.mark { font-family: var(--font-heading); font-size: 1.1rem; }
.mark span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.side-name { font-family: var(--font-heading); font-size: 1.9rem; line-height: 1.08; letter-spacing: -.01em; margin: 30px 0 10px; }
.side-role { color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: 14px; min-height: 1.4em; transition: color .3s; }
.typed-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.side-pitch { color: var(--text-dim); font-size: .88rem; margin-bottom: 30px; }

.side-nav { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 14px; }
.side-nav-indicator { position: absolute; left: 0; top: 0; width: 2px; height: 30px; background: var(--accent); border-radius: 2px; transition: transform .35s var(--ease), background .3s; }
.side-nav-link { padding: 6px 0; font-size: .86rem; font-weight: 600; color: var(--text-dim); transition: color .2s; }
.side-nav-link.active, .side-nav-link:hover { color: var(--text); }

.side-bottom { display: flex; flex-direction: column; gap: 16px; }
.side-social { display: flex; gap: 16px; }
.side-social a { color: var(--text-dim); transition: color .2s; }
.side-social a:hover { color: var(--accent); }
.side-copy { color: var(--text-dim); font-size: .74rem; }

/* ============ BENTO GRID ============ */
.bento { padding: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-rows: auto; }
.span-4 { grid-column: span 4; }
.span-2 { grid-column: span 2; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 16px 40px -20px color-mix(in srgb, var(--accent) 50%, transparent); }
.card::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 60%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.card:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .card::after { display: none; } }
.card-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scroll-hint { font-size: .68rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-dim); opacity: .7; }

.intro-card { position: relative; }
/* Static by default — the animated blur+transform version below is heavy on the GPU and,
   stacked with the particle canvas, is what made the whole card look like it was vibrating
   on phones/low-power devices. Only capable desktops with motion allowed get the drift. */
.intro-card::before { content: ''; position: absolute; inset: -30%; background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--amber) 26%, transparent), transparent 55%), radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--coral) 20%, transparent), transparent 55%); filter: blur(50px); z-index: 0; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .intro-card::before { animation: mesh-drift 16s ease-in-out infinite alternate; }
}
.intro-particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.intro-card > *:not(.intro-particles) { position: relative; z-index: 1; }
@keyframes mesh-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-3%,3%) scale(1.06); } }
.scramble { font-family: var(--font-heading); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.01em; max-width: 780px; }

.stats-card .stat-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.stats-card .stat-row:last-child { border-bottom: none; }
.stat-number, .stat-plus { font-family: var(--font-heading); font-size: 1.5rem; }
.stat-plus { color: var(--accent); }
.stats-card small { color: var(--text-dim); font-size: .8rem; margin-left: auto; }

.approach-card p { color: var(--text-dim); font-size: .92rem; }

/* ---- services horizontal scroll strip ---- */
.service-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.service-scroll::-webkit-scrollbar { display: none; }
.service-tile { flex: 0 0 190px; scroll-snap-align: start; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; color: var(--accent); }
.service-tile h4 { color: var(--text); font-size: .95rem; margin: 10px 0 6px; }
.service-tile p { color: var(--text-dim); font-size: .8rem; }

/* ---- process stepper ---- */
.stepper { display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-heading); color: var(--accent); font-size: 1rem; width: 30px; flex-shrink: 0; }
.step h4 { font-size: .92rem; margin-bottom: 2px; }
.step p { color: var(--text-dim); font-size: .78rem; }

/* ---- vertical marquee testimonials ---- */
.v-marquee { height: 280px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent); mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent); }
.v-marquee-track { display: flex; flex-direction: column; gap: 12px; animation: vmarquee 16s linear infinite; }
.v-marquee:hover .v-marquee-track { animation-play-state: paused; }
@keyframes vmarquee { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.mini-review { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.review-stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 8px; }
.mini-review p { font-size: .8rem; margin-bottom: 8px; }
.mini-review span { color: var(--text-dim); font-size: .72rem; }

/* ---- work cards ---- */
.work-feature { display: block; background: linear-gradient(135deg, var(--surface), var(--bg-soft)); }
.work-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.work-tag { font-size: .74rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.work-feature h3 { font-family: var(--font-heading); font-size: 1.7rem; margin-bottom: 10px; }
.work-feature p { color: var(--text-dim); font-size: .95rem; max-width: 560px; margin-bottom: 18px; }
.work-link { color: var(--accent); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.work-feature-compact h3 { font-size: 1.3rem; }
.work-feature-compact p { font-size: .88rem; }
.work-placeholder { opacity: .55; }
.work-placeholder h3 { font-family: var(--font-heading); font-size: 1.2rem; margin: 10px 0 6px; }
.work-placeholder p { color: var(--text-dim); font-size: .85rem; }

/* ---- contact card ---- */
.contact-lede { color: var(--text-dim); font-size: .88rem; margin-bottom: 20px; max-width: 480px; }
.wa-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wa-form label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--text-dim); }
.wa-form input, .wa-form select, .wa-form textarea { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px; color: var(--text); font-family: var(--font-body); font-size: .9rem; font-weight: 400; outline: none; transition: border-color .2s; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { border-color: var(--accent); }
.wa-form textarea { resize: vertical; }

/* ============ WHATSAPP FLOAT + BACK TO TOP ============ */
.whatsapp-float { position: fixed; bottom: 26px; right: 26px; z-index: 500; width: 54px; height: 54px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; color: #14100a; box-shadow: 0 8px 26px -6px rgba(255,91,74,.6); animation: wa-bob 3s ease-in-out infinite; }
.whatsapp-float:hover { animation-play-state: paused; transform: scale(1.08); }
.whatsapp-float::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--coral); animation: wa-pulse 2s ease-out infinite; }
@keyframes wa-pulse { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes wa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }
.back-to-top { position: fixed; bottom: 26px; right: 90px; z-index: 500; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ============ REVEAL ============ */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-4 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side-panel { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 14px; padding-left: 0; }
  .side-nav-indicator { display: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; padding: 24px; gap: 14px; }
  .span-4, .span-2 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .back-to-top { right: 26px; bottom: 90px; }
}
