/* =========================================================
   NEXORA DIGITAL — Premium Futuristic Agency Website
   Structure: 1 Tokens · 2 Base · 3 Components · 4 Sections
              5 Animations · 6 Responsive · 7 Reduced motion
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --bg: #080B16;
  --bg-2: #101629;
  --card: #131B30;
  --purple: #8B5CF6;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --text: #FFFFFF;
  --text-2: #A1A8B8;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(19, 27, 48, .62);
  --grad: linear-gradient(120deg, var(--purple) 0%, var(--blue) 55%, var(--cyan) 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,.22), rgba(34,211,238,.12));

  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow: 0 0 40px rgba(139, 92, 246, .35);
  --header-h: 76px;
  --section-pad: clamp(72px, 9vw, 130px);
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .55); color: #fff; }

.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27315a; border-radius: 10px; }

/* ---------- 3. COMPONENTS ---------- */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-light { background: linear-gradient(120deg, #fff, #BAE6FD); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { margin-bottom: clamp(40px, 5vw, 70px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
.lead { color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin-top: 18px; max-width: 62ch; }
.section-head.center .lead { margin-inline: auto; }
.sample-note { display: inline-block; font-size: .85rem; padding: 6px 14px; border: 1px dashed rgba(251, 191, 36, .55); color: #FBBF24; border-radius: 999px; background: rgba(251, 191, 36, .06); }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1;
  min-height: 48px; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn i { transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-paper-plane { transform: translateX(4px); }
.btn-sm { padding: 12px 22px; min-height: 44px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, .38); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--cyan), var(--purple)); opacity: 0; transition: opacity .4s; z-index: -1; }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(34, 211, 238, .35); transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); transform: translateY(-2px); }
.btn-white { background: #fff; color: #1a1040; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 255, 255, .28); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #06210f; margin-top: 8px; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(37, 211, 102, .4); }
.btn-whatsapp i { font-size: 1.25rem; }

/* cursor glow (fine pointers only; shown by JS) */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 380px; height: 380px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,.16), rgba(34,211,238,.05) 45%, transparent 70%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}
.cursor-glow.on { opacity: 1; }
main, .footer, .site-header { position: relative; z-index: 1; }

/* ---------- 4. SECTIONS ---------- */

/* ===== Header ===== */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto 0; height: var(--header-h); display: flex; align-items: center; transition: background .4s, backdrop-filter .4s, box-shadow .4s, height .4s; }
.site-header.scrolled { --header-h: 66px; height: 66px; background: rgba(8, 11, 22, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0,0,0,.35); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.logo b { font-weight: 700; margin-left: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: .95rem; font-weight: 500; color: #D5D9E6; border-radius: 10px; transition: color .25s; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); border-radius: 2px; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta-item { margin-left: 12px; }
.dropdown-toggle i { font-size: .65rem; transition: transform .3s var(--ease); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 10px;
  background: rgba(16, 22, 41, .94); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: top left;
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover .dropdown-toggle i, .has-dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: .95rem; color: #D5D9E6; transition: background .25s, color .25s, transform .25s; }
.dropdown a i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--grad-soft); color: var(--cyan); font-size: .85rem; }
.dropdown a:hover { background: rgba(139, 92, 246, .14); color: #fff; transform: translateX(4px); }
.dropdown .dd-all a { justify-content: space-between; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; color: var(--cyan); }
.dropdown .dd-all a i { width: auto; height: auto; background: none; }

.menu-toggle { display: none; position: relative; z-index: 130; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 22px; } .menu-toggle span:nth-child(3) { top: 29px; }
.nav-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 50px) 0 90px; overflow: hidden; isolation: isolate; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 50% 0%, #121A3A 0%, var(--bg) 62%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.b-purple { width: 520px; height: 520px; background: var(--purple); top: -140px; left: -120px; }
.b-blue { width: 460px; height: 460px; background: var(--blue); right: -100px; top: 22%; animation-delay: -6s; opacity: .38; }
.b-cyan { width: 380px; height: 380px; background: var(--cyan); bottom: -160px; left: 38%; animation-delay: -11s; opacity: .22; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero-copy .eyebrow { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); letter-spacing: .1em; margin-bottom: 26px; }
.hero-copy .eyebrow::before { display: none; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(2.4rem, 4.9vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line-inner { display: inline-block; }
.hero-lead { margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 40px; color: var(--text-2); font-size: .92rem; }
.hero-badges i { color: var(--cyan); margin-right: 6px; }

.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; }
.orb-wrap { position: absolute; inset: 0; animation: floatY 7s ease-in-out infinite; }
.orb { width: 100%; height: 100%; overflow: visible; }
.ring-a, .ring-c { transform-origin: 260px 260px; animation: spin 24s linear infinite; }
.ring-c { animation-duration: 32s; animation-direction: reverse; }
.ring-b { transform-origin: 260px 260px; animation: spin 60s linear infinite; }
.sphere-mesh { animation: meshShift 9s ease-in-out infinite alternate; transform-origin: 260px 260px; }
.sat { animation: twinkle 3s ease-in-out infinite; filter: drop-shadow(0 0 8px currentColor); }
.sat.s2 { animation-delay: -1.4s; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); animation: floatY 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: .92rem; font-family: var(--font-head); line-height: 1.2; }
.float-card small { color: var(--text-2); font-size: .78rem; }
.fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ic-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); } .ic-cyan { background: linear-gradient(135deg, #22D3EE, #0891B2); } .ic-blue { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.fc-1 { top: 8%; left: -4%; animation-delay: -1s; } .fc-2 { top: 46%; right: -6%; animation-delay: -3s; } .fc-3 { bottom: 8%; left: 6%; animation-delay: -5s; }
.float-ico { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); backdrop-filter: blur(8px); color: var(--cyan); animation: floatY 5s ease-in-out infinite; }
.fi-1 { top: 2%; right: 18%; } .fi-2 { top: 30%; left: -8%; color: var(--purple); animation-delay: -2s; } .fi-3 { bottom: 24%; right: 0; color: var(--blue); animation-delay: -3s; } .fi-4 { bottom: 0; right: 28%; animation-delay: -4s; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.28); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--cyan); animation: scrollDot 1.8s infinite; }

/* ===== Partners marquee ===== */
.partners { padding: 44px 0 52px; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(16,22,41,.6), rgba(8,11,22,.2)); }
.partners-title { text-align: center; color: var(--text-2); font-size: .95rem; margin-bottom: 28px; }
.partners-title small { display: block; margin-top: 4px; font-size: .78rem; opacity: .7; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; gap: 18px; padding-right: 18px; }
.marquee-group li { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #C9CEDC; white-space: nowrap; transition: border-color .3s, color .3s; }
.marquee-group li i { color: var(--purple); font-size: 1.15rem; }
.marquee-group li:hover { border-color: var(--cyan); color: #fff; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; }
.about-art { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow), var(--glow); }
.about-art svg { width: 100%; height: auto; }
.about-float.a1 { animation: floatY 6s ease-in-out infinite; } .about-float.a2 { animation: floatY 7s ease-in-out -2s infinite; }
.about-chip { position: absolute; right: -14px; bottom: 30px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); }
.about-chip i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); }
.about-chip strong { display: block; font-family: var(--font-head); font-size: .95rem; } .about-chip small { color: var(--text-2); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.mv-card { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.mv-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .5); }
.mv-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--grad-soft); color: var(--cyan); margin-bottom: 14px; }
.mv-card h3 { font-size: 1.15rem; margin-bottom: 8px; } .mv-card p { color: var(--text-2); font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(50px, 7vw, 90px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(34,211,238,.06)); overflow: hidden; }
.stats li { padding: 36px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 10px; color: var(--text-2); font-size: .95rem; }

/* ===== Services ===== */
.services { background: linear-gradient(180deg, transparent, rgba(16,22,41,.55) 20%, rgba(16,22,41,.55) 80%, transparent); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card, .why-card, .ai-card, .price-card, .tech-card, .tl-card {
  --mx: 50%; --my: 0%;
}
.service-card { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--card); isolation: isolate; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.service-card::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: background .4s; z-index: 2; pointer-events: none; }
.service-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(139,92,246,.22), transparent 70%); opacity: 0; transition: opacity .4s; z-index: -1; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px rgba(139,92,246,.2); }
.service-card:hover::before { background: var(--grad); }
.service-card:hover::after { opacity: 1; }
.svc-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; font-size: 1.35rem; color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(99,102,241,.4); margin-bottom: 22px; transition: transform .5s var(--ease); }
.service-card:hover .svc-ico { transform: rotate(-8deg) scale(1.1); }
.featured-svc .svc-ico { background: linear-gradient(135deg, var(--cyan), var(--purple)); box-shadow: 0 10px 28px rgba(34,211,238,.35); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-2); font-size: .96rem; flex: 1; }
.learn-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: .95rem; color: var(--cyan); }
.learn-more i { transition: transform .3s var(--ease); font-size: .8rem; }
.learn-more:hover i, .service-card:hover .learn-more i { transform: translateX(6px); }

/* ===== AI Automation ===== */
.ai { overflow: hidden; }
.ai-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 30%, rgba(139,92,246,.2), transparent 70%), radial-gradient(40% 40% at 85% 80%, rgba(34,211,238,.12), transparent 70%); }
.workflow { position: relative; margin: 0 auto; max-width: 1020px; padding: clamp(10px, 3vw, 30px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(19,27,48,.85), rgba(8,11,22,.8)); box-shadow: var(--shadow), var(--glow); overflow: hidden; }
.workflow::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.workflow svg { position: relative; width: 100%; height: auto; overflow: visible; }
.wf-line { stroke-dasharray: 7 9; animation: dash 1.4s linear infinite; opacity: .85; transition: opacity .3s, stroke-width .3s; }
.wf-line.dim { opacity: .14; } .wf-line.hot { opacity: 1; stroke-width: 4; }
.wf-node { cursor: default; }
.node-box { fill: #131B30; stroke: rgba(139,92,246,.55); stroke-width: 1.5; }
.agent-box { fill: url(#agentG); stroke: rgba(255,255,255,.5); }
.out-box { stroke: rgba(34,211,238,.8); }
.node-in { width: 100%; height: 100%; display: grid; place-items: center; font-size: 26px; color: var(--cyan); }
.agent-in { color: #fff; font-size: 32px; } .wf-node.out .node-in { color: #34D399; }
.wf-node { transition: transform .4s var(--ease); }
.node-label { fill: #C9CEDC; font-size: 15px; font-family: var(--font-head); text-anchor: middle; font-weight: 500; }
.node-label.strong { fill: #fff; font-weight: 700; font-size: 17px; }
.agent-pulse { transform-origin: 450px 260px; animation: nodePulse 2.6s ease-out infinite; }
.wf-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: .82rem; font-weight: 500; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); animation: floatY 5.5s ease-in-out infinite; }
.wf-float i { color: var(--cyan); }
.wf1 { top: 7%; left: 3%; } .wf2 { top: 8%; right: 4%; animation-delay: -2s; } .wf3 { bottom: 7%; left: 40%; animation-delay: -4s; }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.ai-card { position: relative; padding: 26px 24px; border-radius: 18px; background: rgba(19,27,48,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.ai-card > i { font-size: 1.5rem; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-card h3 { font-size: 1.05rem; margin-bottom: 8px; } .ai-card p { color: var(--text-2); font-size: .92rem; }
.ai-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.55); box-shadow: 0 0 36px rgba(34,211,238,.14); }

/* ===== Portfolio ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn { padding: 11px 22px; min-height: 44px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--text-2); border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: all .3s var(--ease); }
.filter-btn:hover { color: #fff; border-color: rgba(139,92,246,.6); }
.filter-btn.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .4s; }
.project-card[hidden] { display: none; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(139,92,246,.5); box-shadow: 0 28px 70px rgba(0,0,0,.5), 0 0 40px rgba(139,92,246,.18); }
.project-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.project-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 55%); }
.project-media > * { transition: transform .8s var(--ease); }
.project-card:hover .project-media > * { transform: scale(1.08); }
.p1 { --c1: #6D28D9; --c2: #0EA5E9; } .p2 { --c1: #1D4ED8; --c2: #22D3EE; } .p3 { --c1: #DB2777; --c2: #8B5CF6; }
.p4 { --c1: #7C3AED; --c2: #F472B6; } .p5 { --c1: #0891B2; --c2: #4F46E5; } .p6 { --c1: #059669; --c2: #3B82F6; }
.p7 { --c1: #4338CA; --c2: #A855F7; } .p8 { --c1: #2563EB; --c2: #8B5CF6; } .p9 { --c1: #EA580C; --c2: #DB2777; }
.project-info { padding: 22px 24px 26px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.project-info h3 { font-size: 1.3rem; margin-bottom: 8px; } .project-info p { color: var(--text-2); font-size: .94rem; }
.view-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: .92rem; transition: color .3s, gap .3s; }
.view-link:hover { color: var(--cyan); gap: 12px; } .view-link i { font-size: .75rem; }

/* browser mockup */
.browser { position: relative; width: 80%; border-radius: 12px; overflow: hidden; background: #0B1020; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #151C36; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #F87171; } .browser-bar i:nth-child(2) { background: #FBBF24; } .browser-bar i:nth-child(3) { background: #34D399; }
.browser-bar span { flex: 1; height: 9px; margin-left: 8px; border-radius: 6px; background: rgba(255,255,255,.08); }
.browser-body { padding: 10px; display: grid; gap: 8px; min-height: 130px; }
.m-nav { display: block; height: 7px; width: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.25) 0 20%, transparent 20% 36%, rgba(255,255,255,.12) 36% 48%, transparent 48% 52%, rgba(255,255,255,.12) 52% 64%, transparent 64%); }
.m-hero { position: relative; height: 64px; border-radius: 8px; background: linear-gradient(120deg, var(--c1), var(--c2)); padding: 10px; display: grid; align-content: center; gap: 5px; }
.m-hero.small { height: 52px; }
.m-hero em { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.85); width: 55%; } .m-hero em + em { width: 38%; opacity: .6; }
.m-hero u { display: block; width: 32px; height: 9px; border-radius: 6px; background: #fff; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .m-cards.two { grid-template-columns: repeat(2, 1fr); }
.m-cards s, .m-shop s { display: block; height: 34px; border-radius: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); }
.m-dash { display: grid; grid-template-columns: 22% 1fr; gap: 8px; } .m-side { border-radius: 7px; background: rgba(255,255,255,.08); min-height: 98px; }
.m-main { display: grid; gap: 8px; }
.m-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; padding: 6px; border-radius: 7px; background: rgba(255,255,255,.06); }
.m-bars s { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan), var(--purple)); }
.m-bars s:nth-child(1) { height: 40%; } .m-bars s:nth-child(2) { height: 70%; } .m-bars s:nth-child(3) { height: 52%; } .m-bars s:nth-child(4) { height: 90%; } .m-bars s:nth-child(5) { height: 66%; }
.m-nodes { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 7px; background: rgba(255,255,255,.06); position: relative; }
.m-nodes::before { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.m-nodes i { position: relative; width: 14px; height: 14px; border-radius: 5px; background: #fff; box-shadow: 0 0 10px var(--cyan); }
.m-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .m-shop s { height: 44px; }
.m-shop s:nth-child(odd) { background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); }
.m-chat { display: grid; gap: 7px; }
.m-chat p { height: 16px; border-radius: 10px; width: 62%; background: rgba(255,255,255,.12); }
.m-chat p.c-out { justify-self: end; background: linear-gradient(120deg, var(--purple), var(--blue)); width: 70%; }
.m-chat p.short { width: 40%; height: 14px; } .m-chat p.c-out.short { width: 46%; }

/* phone mockups */
.phones { display: flex; align-items: center; justify-content: center; gap: 14px; height: 86%; }
.phone { position: relative; width: 28%; max-width: 118px; aspect-ratio: 9 / 18.5; border-radius: 20px; border: 3px solid #0A0F1F; background: #0B1020; box-shadow: 0 0 0 1.5px rgba(255,255,255,.25), 0 24px 40px rgba(0,0,0,.5); overflow: hidden; }
.ph-b { transform: translateY(14px); }
.notch { position: absolute; top: 5px; left: 50%; width: 34%; height: 7px; background: #000; border-radius: 6px; transform: translateX(-50%); z-index: 2; }
.ph-screen { position: absolute; inset: 0; padding: 22px 8px 8px; display: grid; align-content: start; gap: 6px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); }
.ph-screen s, .ph-screen b { display: block; height: 16px; border-radius: 6px; background: rgba(255,255,255,.14); } .ph-screen b { height: 30px; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.ph-ring { justify-self: center; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--c2) 0 70%, rgba(255,255,255,.15) 0); -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%); mask: radial-gradient(circle, transparent 56%, #000 58%); }
.ph-card { height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); }

/* brand board */
.brand-board { width: 82%; padding: 16px; border-radius: 14px; background: rgba(8, 11, 22, .55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); display: grid; gap: 12px; }
.bb-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.bb-sw { display: flex; gap: 8px; } .bb-sw i { flex: 1; height: 28px; border-radius: 8px; background: #8B5CF6; } .bb-sw i:nth-child(2) { background: #F472B6; } .bb-sw i:nth-child(3) { background: #fff; } .bb-sw i:nth-child(4) { background: #1E1B4B; }
.bb-type { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; } .bb-type small { font-size: .75rem; font-weight: 400; margin-left: 8px; opacity: .8; font-family: var(--font-body); }

/* ===== Technologies ===== */
.tech { background: linear-gradient(180deg, rgba(16,22,41,.5), transparent); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; animation: floatY 6s ease-in-out infinite; }
.tech-card:nth-child(3n) { animation-delay: -2s; } .tech-card:nth-child(3n+1) { animation-delay: -4s; } .tech-card:nth-child(2n) { animation-duration: 7.5s; }
.tech-card > i, .tech-card .mono { font-size: 2.3rem; color: var(--tc, #fff); line-height: 1; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--tc, #fff) 45%, transparent)); transition: transform .45s var(--ease); }
.tech-card .mono { font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 2.5px solid #fff; border-radius: 50%; font-size: 1.3rem; filter: none; }
.tech-card span { font-size: .95rem; font-weight: 500; color: #D5D9E6; }
.tech-card:hover { animation-play-state: paused; transform: translateY(-8px); border-color: color-mix(in srgb, var(--tc, #8B5CF6) 60%, transparent); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.tech-card:hover > i, .tech-card:hover .mono { transform: scale(1.18) rotate(-4deg); }

/* ===== Why choose us ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; }
.why-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: var(--grad); opacity: .0; filter: blur(50px); transition: opacity .5s; }
.why-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.5); } .why-card:hover::after { opacity: .35; }
.why-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); color: var(--cyan); font-size: 1.15rem; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.08); }
.why-card h3 { font-size: 1.12rem; margin-bottom: 8px; } .why-card p { color: var(--text-2); font-size: .94rem; }
.why-card.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; min-height: 340px; background: linear-gradient(160deg, rgba(139,92,246,.28), rgba(59,130,246,.14) 55%, var(--card)); }
.why-card.big .why-ico { width: 64px; height: 64px; font-size: 1.6rem; background: var(--grad); color: #fff; margin-bottom: 26px; }
.why-card.big h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; } .why-card.big p { font-size: 1.05rem; max-width: 44ch; }
.why-card:last-child { grid-column: span 2; }

/* ===== Process timeline ===== */
.timeline { --p: 0; position: relative; max-width: 980px; margin-inline: auto; padding-block: 10px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.timeline::before { background: rgba(255,255,255,.1); }
.timeline::after { background: linear-gradient(180deg, var(--purple), var(--blue), var(--cyan)); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 18px rgba(34,211,238,.6); }
.tl-step { position: relative; width: 50%; padding: 0 56px 56px 0; text-align: right; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step:nth-child(even) { margin-left: 50%; padding: 0 0 56px 56px; text-align: left; }
.tl-step:nth-child(even):last-child { padding-bottom: 0; }
.tl-node { position: absolute; top: 14px; right: -26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid rgba(139,92,246,.7); color: var(--cyan); font-size: 1.1rem; z-index: 2; box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(139,92,246,.45); transition: background .4s, color .4s, transform .4s var(--ease); }
.tl-step:nth-child(even) .tl-node { right: auto; left: -26px; }
.tl-step.reached .tl-node { background: var(--grad); color: #fff; transform: scale(1.1); border-color: transparent; }
.tl-card { position: relative; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.tl-card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.5); }
.tl-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.tl-card h3 { font-size: 1.25rem; margin-bottom: 8px; } .tl-card p { color: var(--text-2); font-size: .96rem; }

/* ===== Testimonials ===== */
.testimonials { background: linear-gradient(180deg, transparent, rgba(16,22,41,.6) 25%, rgba(16,22,41,.6) 75%, transparent); }
.slider { position: relative; max-width: 860px; margin-inline: auto; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; padding: clamp(28px, 5vw, 56px); border-radius: 28px; text-align: center; background: var(--glass); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow), var(--glow); opacity: 0; visibility: hidden; transform: translateX(40px) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--ease), visibility .6s; position: relative; }
.slide::before { content: "\201C"; position: absolute; top: -8px; left: 28px; font-family: var(--font-head); font-size: 7rem; line-height: 1; color: var(--purple); opacity: .35; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide.is-prev { transform: translateX(-40px) scale(.97); }
.stars { color: #FBBF24; display: flex; justify-content: center; gap: 5px; margin-bottom: 22px; font-size: 1.05rem; }
blockquote { font-family: var(--font-head); font-size: clamp(1.1rem, 2.1vw, 1.5rem); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; text-align: left; }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); font-size: 1.2rem; box-shadow: 0 0 0 4px rgba(139,92,246,.25); }
figcaption strong { display: block; font-family: var(--font-head); } figcaption small { color: var(--text-2); }
.slider-ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 32px; }
.sl-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); display: grid; place-items: center; transition: all .3s var(--ease); }
.sl-btn:hover { background: var(--grad); border-color: transparent; transform: scale(1.08); }
.dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 10px; background: rgba(255,255,255,.22); transition: width .4s var(--ease), background .3s; padding: 0; position: relative; }
.dot::after { content: ""; position: absolute; inset: -14px -4px; }
.dot.is-active { width: 32px; background: var(--grad); }

/* ===== Pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 38px 32px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-10px); border-color: rgba(139,92,246,.55); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.price-card.recommended { background: linear-gradient(170deg, rgba(139,92,246,.28), var(--card) 55%); border-color: transparent; box-shadow: 0 0 0 1.5px var(--purple), 0 30px 80px rgba(139,92,246,.3); transform: scale(1.04); }
.price-card.recommended:hover { transform: scale(1.04) translateY(-10px); }
.ribbon { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); padding: 7px 18px; border-radius: 999px; background: var(--grad); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 8px 24px rgba(99,102,241,.5); }
.price-card h3 { font-size: 1.4rem; margin-bottom: 8px; } .price-desc { color: var(--text-2); font-size: .95rem; min-height: 3.2em; }
.price { margin: 22px 0 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.price-from { color: var(--text-2); font-size: .9rem; } .price-amount { font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1; }
.features { display: grid; gap: 14px; margin-bottom: 32px; flex: 1; }
.features li { display: flex; gap: 12px; color: #D5D9E6; font-size: .96rem; } .features i { color: var(--cyan); margin-top: 5px; font-size: .8rem; }
.price-note { text-align: center; margin-top: 36px; color: var(--text-2); } .price-note a { color: var(--cyan); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 860px; }
.accordion { display: grid; gap: 14px; }
.acc-item { border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.acc-item.open { border-color: rgba(139,92,246,.6); background: linear-gradient(135deg, rgba(139,92,246,.12), var(--card)); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; text-align: left; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; min-height: 48px; }
.acc-btn i { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--cyan); font-size: .85rem; transition: transform .45s var(--ease), background .3s; }
.acc-item.open .acc-btn i { transform: rotate(135deg); background: var(--grad); color: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding: 0 26px 24px; color: var(--text-2); }

/* ===== CTA ===== */
.cta { position: relative; padding: clamp(80px, 11vw, 150px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #5B21B6, #2563EB, #0891B2, #6D28D9); background-size: 300% 300%; animation: gradMove 14s ease infinite; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.cta-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,.05) 60%); filter: blur(2px); animation: floatY 8s ease-in-out infinite; }
.cta-orb.o1 { width: 180px; height: 180px; left: 8%; top: 18%; } .cta-orb.o2 { width: 120px; height: 120px; right: 10%; bottom: 16%; animation-delay: -4s; }
.cta-inner .section-title { font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 18ch; margin-inline: auto; }
.cta-inner .lead { margin-inline: auto; color: rgba(255,255,255,.88); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 34px 0 28px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--grad-soft); border: 1px solid rgba(255,255,255,.1); color: var(--cyan); }
.contact-list small { display: block; color: var(--text-2); font-size: .82rem; } .contact-list a, .contact-list span { font-weight: 500; transition: color .3s; } .contact-list a:hover { color: var(--cyan); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: all .35s var(--ease); }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-4px); }
.contact-form { padding: clamp(24px, 4vw, 42px); border-radius: 26px; background: var(--glass); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; } .field label { font-size: .88rem; font-weight: 500; color: #D5D9E6; } .field label span { color: var(--cyan); }
.field input, .field select, .field textarea, .news-form input { width: 100%; padding: 14px 16px; min-height: 50px; border-radius: 13px; background: rgba(8,11,22,.65); border: 1px solid var(--line); color: #fff; transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23A1A8B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field select option { background: #101629; color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .news-form input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139,92,246,.22); }
.field input::placeholder, .news-form input::placeholder { color: #6C7490; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #F87171; box-shadow: 0 0 0 4px rgba(248,113,113,.14); }
.err { color: #FCA5A5; font-size: .82rem; min-height: 0; }
.form-status { font-size: .95rem; padding: 0; border-radius: 12px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s, padding .4s; }
.form-status.show { max-height: 160px; opacity: 1; padding: 14px 16px; }
.form-status.success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #6EE7B7; }
.form-status.error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #FCA5A5; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* ===== Newsletter ===== */
.newsletter { padding: 20px 0 clamp(70px, 8vw, 110px); }
.news-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 30px; background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(34,211,238,.1)); border: 1px solid rgba(255,255,255,.14); position: relative; overflow: hidden; }
.news-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: var(--purple); filter: blur(90px); opacity: .35; }
.news-copy { position: relative; } .news-copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; } .news-copy p { color: var(--text-2); }
.news-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.news-form .form-status { grid-column: 1 / -1; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #05070E); padding-top: clamp(56px, 7vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: clamp(26px, 4vw, 50px); }
.f-brand p { color: var(--text-2); margin: 18px 0 22px; max-width: 34ch; font-size: .95rem; }
.f-col h3 { font-size: 1rem; margin-bottom: 20px; letter-spacing: 0; }
.f-col ul { display: grid; gap: 12px; } .f-col a, .f-col span { color: var(--text-2); font-size: .95rem; transition: color .3s, padding .3s; } .f-col a:hover { color: var(--cyan); padding-left: 4px; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; } .f-contact i { color: var(--cyan); margin-top: 5px; width: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 56px; padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9rem; }
.legal { display: flex; gap: 22px; } .legal a:hover { color: var(--cyan); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); box-shadow: 0 12px 32px rgba(99,102,241,.5); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; } .to-top:hover { transform: translateY(-4px); }
.legal-dialog { max-width: 440px; width: calc(100% - 36px); padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; box-shadow: var(--shadow); }
.legal-dialog::backdrop { background: rgba(3, 5, 12, .7); backdrop-filter: blur(6px); }
.legal-dialog h2 { font-size: 1.5rem; margin-bottom: 12px; } .legal-dialog p { color: var(--text-2); margin-bottom: 22px; }

/* ---------- 5. ANIMATION STATES / KEYFRAMES ---------- */
/* Hidden start states ONLY when GSAP is confirmed loaded (no-JS / CDN-failure safe) */
.gsap-ready .reveal, .gsap-ready .hero-in { opacity: 0; }
.gsap-ready .hero-title .line-inner { transform: translateY(110%); }
.gsap-ready .service-card, .gsap-ready .why-card, .gsap-ready .ai-card, .gsap-ready .price-card, .gsap-ready .project-card, .gsap-ready .tl-step, .gsap-ready .acc-item { opacity: 0; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(60px, 50px) scale(1.12); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
@keyframes meshShift { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.7); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes nodePulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes gradMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- 6. RESPONSIVE (mobile-first overrides via max-width) ---------- */
@media (min-width: 1600px) {
  .container { width: min(1360px, 100% - var(--gutter) * 2); }
  html { font-size: 17px; }
}

@media (max-width: 1100px) {
  .service-grid, .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .f-brand { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  /* mobile navigation */
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; z-index: 120; inset: 0 0 0 auto; width: min(380px, 88vw); padding: calc(var(--header-h) + 24px) 24px 32px; background: rgba(10, 14, 28, .96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0,0,0,.6); transform: translateX(105%); visibility: hidden; transition: transform .55s var(--ease), visibility .55s; overflow-y: auto; }
  .nav-open .primary-nav { transform: none; visibility: visible; }
  .nav-open::after { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(3,5,12,.6); backdrop-filter: blur(3px); }
  .nav-open .nav-wrap { position: relative; z-index: 130; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list > li { opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav-open .nav-list > li { opacity: 1; transform: none; }
  .nav-open .nav-list > li:nth-child(1) { transition-delay: .12s; } .nav-open .nav-list > li:nth-child(2) { transition-delay: .17s; } .nav-open .nav-list > li:nth-child(3) { transition-delay: .22s; }
  .nav-open .nav-list > li:nth-child(4) { transition-delay: .27s; } .nav-open .nav-list > li:nth-child(5) { transition-delay: .32s; } .nav-open .nav-list > li:nth-child(6) { transition-delay: .37s; }
  .nav-open .nav-list > li:nth-child(7) { transition-delay: .42s; } .nav-open .nav-list > li:nth-child(8) { transition-delay: .47s; }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 14px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .dropdown { position: static; min-width: 0; margin: 0; padding: 0 0 0 8px; background: none; border: 0; box-shadow: none; backdrop-filter: none; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
  .has-dropdown:hover .dropdown { max-height: 0; }
  .has-dropdown.open .dropdown { max-height: 520px; }
  .has-dropdown:hover .dropdown-toggle i { transform: none; } .has-dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
  .nav-cta-item { margin: 18px 0 0; } .nav-cta-item .btn { width: 100%; }

  .hero { text-align: center; padding-top: calc(var(--header-h) + 36px); }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-lead { margin-inline: auto; } .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { width: min(100%, 440px); }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .about-grid, .contact-grid, .news-card { grid-template-columns: 1fr; }
  .about-chip { right: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); } .stats li:nth-child(2) { border-right: 0; } .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .price-card.recommended, .price-card.recommended:hover { transform: none; } .price-card.recommended { order: -1; margin-top: 10px; }

  /* timeline becomes single-column */
  .timeline::before, .timeline::after { left: 26px; margin-left: -1.5px; }
  .tl-step, .tl-step:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 74px; text-align: left; }
  .tl-node, .tl-step:nth-child(even) .tl-node { left: 0; right: auto; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .service-grid, .ai-grid, .project-grid, .why-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-card.big, .why-card:last-child { grid-column: auto; grid-row: auto; } .why-card.big { min-height: 0; padding: 30px 26px; }
  .mv-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .f-contact { grid-column: 1 / -1; }
  .news-form { grid-template-columns: 1fr; } .news-form .btn { width: 100%; }
  .btn { width: 100%; } .hero-actions .btn, .cta-actions .btn { max-width: 380px; }
  .btn-sm { width: auto; }
  .float-card { padding: 9px 12px 9px 9px; } .fc-ico { width: 34px; height: 34px; } .float-card small { display: none; }
  .fc-1 { top: 2%; } .fc-2 { top: 50%; } .fc-3 { bottom: 4%; left: 2%; } .float-ico { width: 40px; height: 40px; }
  .wf-float { display: none; }
  .node-label { font-size: 17px; }
  .legal { gap: 16px; } .footer-bottom { flex-direction: column; text-align: center; }
  .slide::before { font-size: 5rem; left: 18px; }
  .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 2rem; } .stats li { padding: 26px 10px; }
  .filter-btn { padding: 10px 16px; font-size: .88rem; }
  .acc-btn { padding: 18px 18px; font-size: 1rem; } .acc-panel p { padding: 0 18px 20px; }
}

/* ---------- 7. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; } .marquee { overflow-x: auto; }
  .gsap-ready .reveal, .gsap-ready .hero-in, .gsap-ready .service-card, .gsap-ready .why-card, .gsap-ready .ai-card, .gsap-ready .price-card, .gsap-ready .project-card, .gsap-ready .tl-step, .gsap-ready .acc-item { opacity: 1; }
  .gsap-ready .hero-title .line-inner { transform: none; }
  .cursor-glow { display: none; }
}
