:root {
  --primary: #3b5bff;
  --accent: #9b5cff;
  --bg: #07080d;
  --bg-2: #0d0f18;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f7;
  --muted: #9298ad;
  --grad: linear-gradient(120deg, var(--primary), var(--accent));
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .btn, .label, .eyebrow { font-family: 'Outfit', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 90%); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden-section { display: none !important; }

.cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%);
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  transition: opacity .3s; left: -999px; top: -999px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.4rem 5%;
  transition: all .4s var(--ease);
}
.nav.scrolled {
  padding: .9rem 5%;
  background: rgba(7, 8, 13, .72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; }
.brand img { width: 150px; height: auto; max-height: 90px; object-fit: contain; }
.brand .logo-mark {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand small { font-weight: 300; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a { font-size: .92rem; color: var(--muted); position: relative; transition: color .3s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; width: 34px; height: 24px; position: relative; cursor: pointer; margin-left: auto; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--text); transition: .3s; }
.burger span:first-child { top: 6px; } .burger span:last-child { bottom: 6px; }
.burger.open span:first-child { top: 11px; transform: rotate(45deg); }
.burger.open span:last-child { bottom: 11px; transform: rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem; border-radius: 100px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 40px -10px var(--primary);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.btn::after { content: '→'; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -10px var(--accent); }
.btn:hover::after { transform: translateX(5px); }
.btn-sm { padding: .7rem 1.4rem; font-size: .9rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; margin-top: 1.5rem; }
.btn-ghost:hover { border-color: var(--primary); box-shadow: 0 10px 40px -15px var(--primary); }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); animation: heroZoom 20s ease-in-out infinite alternate; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 10%, rgba(7, 8, 13, .55) 55%, rgba(7, 8, 13, .2)), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero-inner { position: relative; z-index: 2; padding: 8rem 0 5rem; max-width: 1200px; }
.eyebrow {
  display: inline-block; padding: .45rem 1rem; border-radius: 100px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--card); backdrop-filter: blur(10px); margin-bottom: 1.8rem;
}
.hero-title { font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: 1.02; font-weight: 700; max-width: 14ch; letter-spacing: -.03em; }
.hero-title .grad, h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-family: 'Outfit'; font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 1.6rem 0 .8rem; color: #cfd3e4; }
.hero-text { max-width: 52ch; color: var(--muted); margin-bottom: 2.4rem; font-size: 1.05rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; translate: -50%; width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 20px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--text); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { to { transform: translateY(14px); opacity: 0; } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; z-index: 1; }
.label { font-size: .82rem; letter-spacing: .25em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: .8rem; }
.label::before { content: ''; width: 34px; height: 1px; background: var(--grad); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin-bottom: 1.4rem; }
.lead { font-size: 1.1rem; color: #c4c8d8; max-width: 60ch; }
.lead + .lead { margin-top: .8rem; }
.section-head { margin-bottom: 4rem; max-width: 820px; }
.section-head.center { margin: 0 auto 3.5rem; text-align: center; }
.section-head.center .label { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about-media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border); background: linear-gradient(0deg, color-mix(in srgb, var(--primary) 30%, transparent), transparent 50%); }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover img { transform: scale(1.05); }
#about-paragraphs p { color: #c4c8d8; margin-bottom: 1rem; }
.highlight { font-family: 'Outfit'; font-size: 1.35rem; font-weight: 500; margin: 2rem 0; padding-left: 1.4rem; border-left: 3px solid; border-image: var(--grad) 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.stat { padding: 1.4rem; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.stat strong { display: block; font-family: 'Outfit'; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* Solutions */
.solutions { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; padding: 2.4rem 2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  overflow: hidden; transition: transform .5s var(--ease), border-color .5s; min-height: 320px; display: flex; flex-direction: column;
}
.card::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .5s; z-index: -1; }
.card:hover { transform: translateY(-8px); border-color: transparent; }
.card:hover::before { opacity: .14; }
.card .num { font-family: 'Outfit'; font-size: .85rem; color: var(--muted); }
.card h3 { font-size: 1.7rem; letter-spacing: .06em; margin: auto 0 .3rem; padding-top: 3rem; }
.card .tag { color: var(--primary); font-weight: 500; margin-bottom: .8rem; font-family: 'Outfit'; }
.card p { color: var(--muted); font-size: .95rem; }
.card .orb { position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--grad); filter: blur(50px); opacity: .35; transition: .6s var(--ease); }
.card:hover .orb { transform: scale(1.6); opacity: .55; }

/* Method */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; counter-reset: s; position: relative; }
.step { padding: 2rem 2rem 2rem 0; border-top: 1px solid var(--border); position: relative; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.step.in::before { width: 100%; }
.step .n { font-family: 'Outfit'; font-size: 3.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25); margin-bottom: 1.2rem; transition: .4s; }
.step:hover .n { -webkit-text-stroke: 1px var(--primary); }
.step h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Clients */
.clients { background: var(--bg-2); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item {
  width: 210px; height: 110px; display: grid; place-items: center; padding: 1.4rem; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted); font-family: 'Outfit'; font-weight: 600; letter-spacing: .1em;
  transition: .4s var(--ease);
}
.logo-item img { max-height: 60px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .7; transition: .4s; }
.logo-item:hover { border-color: var(--primary); color: var(--text); }
.logo-item:hover img { filter: none; opacity: 1; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.project { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/5; background: var(--card); border: 1px solid var(--border); display: block; }
.project .thumb { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease); }
.project .thumb.empty { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 55%), radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 55%), var(--bg-2); }
.project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,13,.95), transparent 60%); }
.project .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; z-index: 2; transition: transform .5s var(--ease); }
.project .cat { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 100px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.project h3 { font-size: 1.6rem; margin: .9rem 0 .4rem; }
.project p { color: var(--muted); font-size: .92rem; max-height: 0; opacity: 0; overflow: hidden; transition: .5s var(--ease); }
.project:hover .thumb { transform: scale(1.08); }
.project:hover p { max-height: 120px; opacity: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--grad); filter: blur(160px); opacity: .18; right: -200px; top: 10%; z-index: -1; }
.contact-info { list-style: none; margin-top: 2.4rem; display: grid; gap: .9rem; }
.contact-info li { display: flex; gap: .9rem; align-items: center; color: #c4c8d8; }
.contact-info .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); flex-shrink: 0; }
.contact-form { padding: 2.4rem; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid var(--border); backdrop-filter: blur(20px); display: grid; gap: 1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(0,0,0,.25);
  color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: #5ee6a8; } .form-status.err { color: #ff7a8a; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.footer-title { font-family: 'Outfit'; letter-spacing: .2em; margin-top: 1.2rem; font-weight: 600; }
.socials { display: flex; gap: .8rem; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); transition: .35s var(--ease); }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-4px); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-link { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 100px; border: 1px solid var(--border); color: var(--muted); font-size: .82rem; transition: .3s var(--ease); }
.admin-link:hover { color: var(--text); border-color: var(--primary); box-shadow: 0 6px 24px -10px var(--primary); }

.whats { position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -5px rgba(37,211,102,.6); transition: transform .3s; }
.whats:hover { transform: scale(1.1) rotate(-6deg); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; background: rgba(7,8,13,.97); backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transition: .4s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.5rem; color: var(--text); }
  .burger { display: block; z-index: 2; }
  .nav-cta { display: none; }
  .about-grid, .contact-grid, .section-head.split { grid-template-columns: 1fr; gap: 3rem; }
  .about-media { aspect-ratio: 16/11; }
  .cursor-glow { display: none; }
}
@media (max-width: 560px) {
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.6rem; }
}
