/* ============================================================
   NEXO DIGITAL — Stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --cyan: #1FC8E3;
  --cyan-light: #36D7F0;
  --blue: #2563EB;
  --blue-deep: #1E40AF;
  --purple: #7C2FE0;
  --navy: #122A4F;
  --navy-deep: #0a1228;

  --ink: #0f1b2d;
  --muted: #5a6678;
  --line: #e6eaf1;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --white: #ffffff;

  --grad: linear-gradient(120deg, var(--cyan-light) 0%, var(--blue) 55%, var(--purple) 100%);
  --grad-soft: linear-gradient(120deg, rgba(54,215,240,.14), rgba(124,47,224,.14));

  --shadow-sm: 0 2px 10px rgba(18, 42, 79, .06);
  --shadow-md: 0 12px 32px rgba(18, 42, 79, .10);
  --shadow-lg: 0 26px 60px rgba(18, 42, 79, .16);
  --shadow-glow: 0 18px 50px rgba(37, 99, 235, .35);

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
svg { display: block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(1200px 600px at 80% -10%, #16335c 0, var(--navy-deep) 60%); color: #dfe7f5; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Section heads ---------- */
.section__head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow--light { color: var(--cyan-light); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.02em; }
.section--dark .section__title { color: #fff; }
.section__sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section--dark .section__sub { color: #9fb0cc; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; transition: all .3s var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); background-size: 160% 160%; }
.btn--primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 24px 60px rgba(37,99,235,.45); }
.btn--ghost { background: rgba(37,99,235,.06); color: var(--blue); border: 1.5px solid rgba(37,99,235,.18); }
.btn--ghost:hover { background: rgba(37,99,235,.12); transform: translateY(-3px); }
.section--dark .btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(37,99,235,.07); color: var(--blue); border: 1px solid rgba(37,99,235,.14);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(31,200,227,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(31,200,227,.2); } 50% { box-shadow: 0 0 0 8px rgba(31,200,227,0); } }

/* ---------- Scroll progress + header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1000; transition: width .1s linear; }
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: all .35s var(--ease);
  background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header.scrolled { background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo-img { height: 40px; width: auto; }
.nav__menu { display: flex; gap: 6px; }
.nav__link {
  position: relative; font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; transition: color .25s, background .25s;
}
.nav__link::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--blue); }
.nav__link.active::after { width: 22px; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: all .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: 130px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero__blob--1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(54,215,240,.55), transparent 70%); top: -120px; right: -80px; }
.hero__blob--2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(124,47,224,.45), transparent 70%); bottom: -120px; left: -100px; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,42,79,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(18,42,79,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.03em; margin: 22px 0 18px; font-weight: 800; }
.hero__desc { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy); }
.hero__stat span { font-size: .88rem; color: var(--muted); }

/* hero mockup */
.hero__visual { position: relative; }
.mockup {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--line); transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
  animation: floaty 6s ease-in-out infinite; will-change: transform;
}
@keyframes floaty { 0%,100% { transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) translateY(-14px); } }
.mockup__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.mockup__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d4dae6; }
.mockup__bar > span:nth-child(1) { background: #ff5f57; }
.mockup__bar > span:nth-child(2) { background: #febc2e; }
.mockup__bar > span:nth-child(3) { background: #28c840; }
.mockup__url { margin-left: auto; font-size: .72rem; color: var(--muted); background: #fff; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); }
.mockup__screen { padding: 26px; }
.mockup__hero-line { height: 30px; width: 70%; border-radius: 8px; background: var(--grad); margin-bottom: 16px; }
.mockup__line { height: 12px; border-radius: 6px; background: #e9eef6; margin-bottom: 11px; }
.mockup__line.w-80 { width: 80%; } .mockup__line.w-60 { width: 55%; }
.mockup__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.mockup__card { height: 78px; border-radius: 12px; background: #f1f4fa; border: 1px solid var(--line); }
.mockup__card:nth-child(1) { background: var(--grad-soft); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); animation: floaty 5s ease-in-out infinite;
}
.float-card__icon { font-size: 1.3rem; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); }
.float-card span { font-size: .74rem; color: var(--muted); }
.float-card--perf { top: 10%; left: -38px; animation-delay: .6s; }
.float-card--seo { bottom: 8%; right: -30px; animation-delay: 1.2s; }

/* marquee */
.marquee { margin-top: clamp(50px, 7vw, 80px); }
.marquee__label { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee__track { display: flex; gap: 60px; align-items: center; animation: scroll-x 26s linear infinite; width: max-content; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #b8c2d4; white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

/* services */
.service { padding: 32px 28px; }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--blue); margin-bottom: 20px;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .96rem; }

/* promise / commitment cards */
.promise { padding: 30px 26px; }
.promise:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.promise__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--blue); margin-bottom: 18px; }
.promise__icon svg { width: 26px; height: 26px; }
.promise h3 { font-size: 1.12rem; margin-bottom: 8px; }
.promise p { color: var(--muted); font-size: .94rem; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.why__media { position: relative; }
.why__panel {
  border-radius: var(--radius-lg); padding: 30px; background: var(--grad);
  display: grid; place-items: center; box-shadow: var(--shadow-lg); aspect-ratio: 1/1;
}
.why__panel::before { content:''; position:absolute; inset:0; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); }
.why__logo { background: #fff; border-radius: 18px; padding: 22px; max-width: 78%; box-shadow: var(--shadow-md); }
.why__badge {
  position: absolute; bottom: -18px; right: -18px; background: #fff; border-radius: 18px;
  padding: 16px 22px; box-shadow: var(--shadow-md); text-align: center; border: 1px solid var(--line);
}
.why__badge strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--blue); }
.why__badge span { font-size: .78rem; color: var(--muted); }
.why__list { margin-top: 28px; display: grid; gap: 20px; }
.why__list li { display: flex; gap: 16px; }
.why__check {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-glow);
}
.why__list strong { font-family: var(--font-head); display: block; margin-bottom: 2px; }
.why__list p { color: var(--muted); font-size: .94rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: 9px 20px;
  border-radius: 999px; color: var(--muted); border: 1.5px solid var(--line); transition: all .25s var(--ease);
}
.filter:hover { color: var(--blue); border-color: rgba(37,99,235,.3); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.work { overflow: hidden; padding: 0; }
.work:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.work__thumb {
  position: relative; aspect-ratio: 16/11; background: linear-gradient(135deg, var(--a), var(--b));
  display: grid; place-items: center; overflow: hidden;
}
.work__thumb::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.25), transparent 50%); }
.work__thumb span { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: rgba(255,255,255,.95); letter-spacing: -.02em; position: relative; z-index: 1; }
.work__body { padding: 20px 22px; }
.work__body h3 { font-size: 1.12rem; }
.work__body p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.work.hide { display: none; }

/* featured project */
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.featured__visual {
  background: linear-gradient(135deg, var(--a), var(--b)); padding: 30px; display: grid; place-items: center;
}
.featured__mock { width: 100%; max-width: 440px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
.featured__visual:hover .featured__mock { transform: translateY(-6px); }
.featured__screen {
  aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, rgba(31,200,227,.12), rgba(124,47,224,.12)); text-align: center; padding: 20px;
}
.featured__brand { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: -.02em; }
.featured__slogan { color: var(--muted); font-size: .9rem; font-style: italic; }
.featured__open { margin-top: 6px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--blue); }
.featured__body { padding: 40px clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.featured__cat { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.featured__body h3 { font-size: 1.7rem; margin: 10px 0 14px; }
.featured__body p { color: var(--muted); font-size: 1rem; }
.featured__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.featured__tags li { font-size: .8rem; font-weight: 600; color: #3a475a; background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }

/* next-project CTA card */
.next-cta {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 30px clamp(26px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1.5px dashed rgba(37,99,235,.3);
}
.next-cta h3 { font-size: 1.25rem; }
.next-cta p { color: var(--muted); font-size: .96rem; margin-top: 6px; max-width: 560px; }

@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .next-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Process ---------- */
.steps { counter-reset: step; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: all .35s var(--ease);
}
.step:hover { background: rgba(255,255,255,.07); transform: translateY(-6px); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: #9fb0cc; font-size: .94rem; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad); background-size: 200% 200%; animation: gradShift 10s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.stats { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; letter-spacing: -.01em; }
.stat span { color: rgba(255,255,255,.85); font-weight: 500; }

/* ---------- Testimonials ---------- */
.slider { max-width: 760px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform .55s var(--ease); }
.testi { flex: 0 0 100%; padding: 40px; text-align: center; }
.testi__stars { color: #ffb547; letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 18px; }
.testi blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem, 2.3vw, 1.45rem); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.testi figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.testi__avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testi figcaption strong { display: block; font-family: var(--font-head); }
.testi figcaption span { font-size: .85rem; color: var(--muted); }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.slider__btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 1.4rem; color: var(--blue); transition: all .25s var(--ease); display: grid; place-items: center; }
.slider__btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 9px; height: 9px; border-radius: 999px; background: #cdd6e6; transition: all .3s var(--ease); }
.slider__dots button.active { width: 26px; background: var(--grad); }

/* ---------- Pricing ---------- */
.price { padding: 36px 30px; display: flex; flex-direction: column; position: relative; }
.price:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.price--featured { border: 1.5px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.price__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .76rem; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-glow); white-space: nowrap; }
.price__name { font-size: 1.3rem; }
.price__desc { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.price__amount { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; color: var(--navy); margin: 20px 0; display: flex; align-items: baseline; gap: 3px; }
.price__amount--text { font-size: 2.2rem; }
.price__cur { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.price__per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price__list { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.price__list li { position: relative; padding-left: 28px; color: #3a475a; font-size: .94rem; }
.price__list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; font-size: .7rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq__icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s var(--ease); }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__list { display: grid; gap: 20px; margin-top: 32px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; }
.contact__list strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.contact__list a, .contact__list span { color: var(--muted); font-size: .94rem; }
.contact__list a:hover { color: var(--blue); }
.contact__form { padding: 34px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .96rem; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-alt); color: var(--ink); transition: all .25s var(--ease); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; background: #fef2f2; }
.field__error { color: #ef4444; font-size: .8rem; min-height: 0; }
.field.invalid .field__error { min-height: 1em; }
.form__success { background: rgba(40,200,64,.1); color: #1b8a32; border: 1px solid rgba(40,200,64,.3); padding: 13px 16px; border-radius: 12px; font-size: .92rem; font-weight: 500; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b6c4dd; padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__mark { background: rgba(255,255,255,.04); border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.footer__name { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: .04em; color: #cdd9ee; }
.footer__name strong { color: #fff; }
.footer__brand p { font-size: .94rem; max-width: 340px; color: #8194b3; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: #cdd9ee; transition: all .25s var(--ease); }
.footer__social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: .92rem; color: #8194b3; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--cyan-light); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #6f82a3; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 26px; right: 26px; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-glow); z-index: 800; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

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

/* ---------- Mobile nav panel ---------- */
@media (max-width: 900px) {
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px); padding: 18px 22px 26px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .4s var(--ease);
    border-bottom: 1px solid var(--line);
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { display: block; padding: 13px 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav__link.active { background: var(--grad-soft); }
  .nav__toggle { display: flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__desc { margin-inline: auto; }
  .hero__stats { justify-content: center; }
  .hero__visual { margin-top: 30px; max-width: 480px; margin-inline: auto; width: 100%; }
  .float-card--perf { left: 0; } .float-card--seo { right: 0; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why__media { max-width: 360px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .nav__actions .btn { display: none; }
  .hero__stats { gap: 24px; }
  .float-card { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 18px; }
  .section__sub { font-size: 1rem; }
}

/* ============================================================
   EXTREME UI FX  (desktop + motion-allowed only; JS-gated)
   ============================================================ */

/* custom trailing cursor glow */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(54,215,240,.22), rgba(124,47,224,.13) 45%, transparent 70%);
  transform: translate3d(-50%, -50%, 0); pointer-events: none; z-index: 600; opacity: 0;
  transition: opacity .5s ease, width .35s var(--ease), height .35s var(--ease), background .35s;
  mix-blend-mode: screen; filter: blur(8px); will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
.cursor-glow.is-hot {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(124,47,224,.28), rgba(37,99,235,.16) 45%, transparent 70%);
}

/* tilt: JS sets inline transform, this just smooths the return */
[data-tilt] { transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
body.fx-on .hero__blob, body.fx-on .hero__grid, body.fx-on .float-card { will-change: transform; }

/* hide custom cursor visuals on touch / no-hover devices */
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
