:root {
  --bg: #0b0b1a;
  --bg-alt: #10102a;
  --surface: #161636;
  --border: rgba(255, 255, 255, .09);
  --text: #f3f4ff;
  --muted: #a3a6c8;
  --coral: #ff6b6b;
  --sun: #ffd166;
  --mint: #06d6a0;
  --violet: #7c5cff;
  --grad: linear-gradient(120deg, var(--coral), var(--sun) 50%, var(--mint));
  --radius: 20px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.8rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem var(--font-body); color: #0b0b1a;
  background: var(--grad); background-size: 200% 100%;
  transition: transform .25s, box-shadow .25s, background-position .4s;
  box-shadow: 0 10px 30px -10px rgba(255, 107, 107, .6);
}
.btn:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 16px 36px -10px rgba(6, 214, 160, .55); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; }
.btn-full { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(11, 11, 26, .8); backdrop-filter: blur(14px); border-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.25rem var(--font-head); letter-spacing: -.02em; }
.logo-mark { width: 40px; height: 40px; flex: none; overflow: visible; }
.lm-bg { fill: var(--surface); stroke: rgba(255, 255, 255, .14); stroke-width: 1; transition: stroke .3s, transform .4s; transform-origin: center; transform-box: fill-box; }
.lm-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; animation: lm-draw 1.1s .3s ease-out backwards; }
.lm-dot { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); animation: lm-pop .5s ease-out backwards; }
.lm-dot:nth-of-type(1) { animation-delay: .1s; }
.lm-dot:nth-of-type(2) { animation-delay: .45s; }
.lm-dot:nth-of-type(3) { animation-delay: .85s; }
.logo:hover .lm-bg { stroke: rgba(255, 209, 102, .6); transform: rotate(-6deg); }
.logo:hover .lm-dot { transform: scale(1.3); }
.logo-text .o { display: inline-block; width: .5em; height: .5em; margin: 0 .03em; border-radius: 50%; background: var(--grad); vertical-align: baseline; }
@keyframes lm-draw { from { stroke-dashoffset: 50; } }
@keyframes lm-pop { from { transform: scale(0); } }
.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 700px; height: 700px; background: radial-gradient(circle, rgba(124, 92, 255, .38), transparent 68%); top: -260px; left: -260px; }
.hero::after { width: 640px; height: 640px; background: radial-gradient(circle, rgba(255, 107, 107, .28), transparent 68%); bottom: -260px; right: -220px; }
#dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--muted); background: rgba(255, 255, 255, .04); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 2s infinite; }
@keyframes ping { 70%, 100% { transform: scale(3); opacity: 0; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 1.4rem 0 1.2rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stats strong { display: block; font: 700 2.4rem var(--font-head); }
.hero-stats span { color: var(--muted); font-size: .92rem; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-alt); padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track span { font: 600 1.15rem var(--font-head); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.eyebrow { display: inline-block; font: 600 .85rem var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--mint); margin-bottom: .9rem; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, .22); box-shadow: 0 24px 50px -24px rgba(124, 92, 255, .6); }
.card h3 { font-size: 1.3rem; margin: 1.2rem 0 .6rem; }
.card p { color: var(--muted); }
.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c1 { background: rgba(255, 107, 107, .15); color: var(--coral); }
.c2 { background: rgba(255, 209, 102, .15); color: var(--sun); }
.c3 { background: rgba(6, 214, 160, .15); color: var(--mint); }
.c4 { background: rgba(124, 92, 255, .18); color: #a590ff; }
.c5 { background: rgba(255, 107, 107, .15); color: var(--coral); }
.c6 { background: rgba(6, 214, 160, .15); color: var(--mint); }

.card-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.8rem; background: linear-gradient(120deg, rgba(124, 92, 255, .22), rgba(6, 214, 160, .12)), var(--surface); }
.card-wide .icon { flex: none; width: 72px; height: 72px; border-radius: 20px; }
.card-wide .icon svg { width: 34px; height: 34px; }
.card-wide h3 { margin-top: 0; }
.card-wide p { max-width: 680px; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.tags li { padding: .3rem .85rem; border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; color: var(--text); background: rgba(255, 255, 255, .05); }
@media (max-width: 640px) { .card-wide { flex-direction: column; align-items: flex-start; } }

/* Projects */
.project { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; }
.project:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.thumb { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; }
.thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1.5px, transparent 1.5px); background-size: 22px 22px; transition: transform .6s; }
.project:hover .thumb::before { transform: scale(1.15) rotate(2deg); }
.thumb span { position: relative; font: 700 1.5rem var(--font-head); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.t1 { background: linear-gradient(135deg, #ff6b6b, #c44569); }
.t2 { background: linear-gradient(135deg, #06d6a0, #118ab2); }
.t3 { background: linear-gradient(135deg, #7c5cff, #3a2bb5); }
.t4 { background: linear-gradient(135deg, #118ab2, #073b4c); }
.t5 { background: linear-gradient(135deg, #ffd166, #ef476f); }
.t6 { background: linear-gradient(135deg, #3ddc97, #7c5cff); }
.meta { padding: 1.4rem 1.6rem 1.7rem; }
.meta h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.meta p { color: var(--muted); font-size: .92rem; }
.note { margin-top: 2rem; text-align: center; color: var(--muted); font-size: .85rem; opacity: .7; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 1.8rem 1.5rem 0 0; border-top: 2px solid var(--border); }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px var(--bg); }
.num { font: 700 .95rem var(--font-head); color: var(--sun); }
.steps h3 { font-size: 1.4rem; margin: .4rem 0 .6rem; }
.steps p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); display: grid; place-items: center; background: radial-gradient(circle, rgba(124, 92, 255, .25), transparent 65%); }
.orbit::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .15); }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dot { position: absolute; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 40px currentColor; animation: float 5s ease-in-out infinite; }
.d1 { background: var(--coral); color: var(--coral); left: 14%; top: 66%; }
.d2 { background: var(--sun); color: var(--sun); left: 46%; top: 17%; animation-delay: -1.5s; }
.d3 { background: var(--mint); color: var(--mint); left: 78%; top: 62%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px); } }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.checks { margin-top: 1.5rem; display: grid; gap: .7rem; }
.checks li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.checks li::before { content: "✓"; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 214, 160, .18); color: var(--mint); font-size: .8rem; }

/* Testimonials */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; }
.quote p { font-size: 1.05rem; }
.quote p::before { content: "“"; display: block; font: 700 3rem/0.6 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .4rem; }
.quote footer { display: flex; align-items: center; gap: .9rem; }
.quote small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--font-head); color: #0b0b1a; background: var(--grad); }

/* Contact */
.contact { background: radial-gradient(900px 400px at 85% 0%, rgba(124, 92, 255, .22), transparent), var(--bg-alt); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info p { color: var(--muted); font-size: 1.1rem; }
.contact-list { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a, .contact-list span:not(.ci) { font: 600 1.15rem var(--font-head); }
.contact-list a:hover { color: var(--sun); }
.ci { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--sun); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .4rem; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 166, 200, .5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(6, 214, 160, .15); }
.field.invalid input, .field.invalid textarea { border-color: var(--coral); }
.form-status { min-height: 1.4em; text-align: center; font-size: .92rem; color: var(--mint); }
.form-status.error { color: var(--coral); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 3rem 0; text-align: center; color: var(--muted); }
.footer-inner { display: grid; gap: .6rem; justify-items: center; }
.footer a:not(.logo):hover { color: var(--sun); }
.footer .logo { color: var(--text); margin-bottom: .4rem; }

/* WhatsApp */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6); transition: transform .25s; }
.wa:hover { transform: scale(1.1); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .about, .contact-wrap { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 1.4rem; padding: 2rem 0 2.4rem;
    background: rgba(11, 11, 26, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .hero { min-height: auto; padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
