/* ==========================================================================
   VIYANWEB — PREMIUM AGENCY SITE
   Tokens: Void Background / Primary Blue / Electric Cyan / Royal Purple
   Signature: the "trajectory" motif from the VIYANWEB mark — a climbing
   line that resolves into an orbit — threads through the hero draw-on
   animation and the left-edge scroll spine that runs the whole page.
   ========================================================================== */

:root {
  /* -- Brief-specified palette -- */
  --bg:          #050816;
  --blue:        #2563EB;
  --cyan:        #00E5FF;
  --purple:      #7C3AED;
  --white:       #FFFFFF;
  --grey:        #94A3B8;

  /* -- Derived surfaces / neutrals -- */
  --bg-2:        #080C20;
  --panel:       #0B1128;
  --panel-2:     #0E1530;
  --line:        rgba(148,163,184,0.14);
  --line-bright: rgba(148,163,184,0.28);
  --glass:       rgba(13,19,48,0.55);
  --glass-soft:  rgba(255,255,255,0.04);
  --text-dim:    #64708A;

  /* -- Type -- */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* -- Layout -- */
  --max-w: 1280px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-glow-blue: 0 20px 60px -20px rgba(37,99,235,0.45);
  --shadow-glow-cyan: 0 20px 60px -20px rgba(0,229,255,0.35);
  --shadow-card: 0 30px 80px -40px rgba(0,0,0,0.7);
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
p { margin: 0; line-height: 1.75; color: var(--grey); }
section { position: relative; }
input, textarea, select { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); color: var(--bg);
  padding: 12px 20px; z-index: 9999; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

::selection { background: var(--purple); color: var(--white); }

/* ---------------------------------- Utility ---------------------------------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; position: relative; }
.section-pad { padding: 160px 0; }
@media (max-width: 980px) { .section-pad { padding: 100px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.section-head { max-width: 680px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 20px; line-height: 1.08; }
.section-head h2 .accent { background: linear-gradient(120deg, var(--cyan), var(--blue) 60%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p.lede { margin-top: 22px; font-size: 17px; color: var(--grey); max-width: 560px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.tag { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  font-family: var(--font-mono); background: var(--glass-soft); border: 1px solid var(--line); color: var(--grey); }

/* gradient text helper */
.grad-text { background: linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.01em; white-space: nowrap; font-family: var(--font-body);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  isolation: isolate;
}
.btn-solid {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  color: var(--white); box-shadow: var(--shadow-glow-blue);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 26px 70px -20px rgba(37,99,235,0.65); }

.btn-glass {
  background: var(--glass-soft); color: var(--white); border: 1px solid var(--line-bright); backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

/* ---------------------------------- Loading screen ---------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.3em; color: var(--white); }
.loader__bar { width: 220px; height: 2px; background: rgba(148,163,184,0.18); border-radius: 2px; overflow: hidden; position: relative; }
.loader__bar-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple)); transition: width 1.4s var(--ease); }
.loader__pct { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }

/* ---------------------------------- Custom cursor ---------------------------------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(0,229,255,0.5); transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease); }
.cursor-ring.is-active { width: 64px; height: 64px; background: rgba(0,229,255,0.08); border-color: var(--cyan); }
.cursor-ring.is-view::after { content: "VIEW"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--cyan); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------------------------------- Aurora background ---------------------------------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.aurora__blob--1 { width: 640px; height: 640px; top: -220px; left: -120px; background: radial-gradient(circle, var(--blue), transparent 70%); animation: auroraFloat1 22s ease-in-out infinite; }
.aurora__blob--2 { width: 560px; height: 560px; top: 10%; right: -180px; background: radial-gradient(circle, var(--purple), transparent 70%); animation: auroraFloat2 26s ease-in-out infinite; }
.aurora__blob--3 { width: 480px; height: 480px; bottom: -200px; left: 30%; background: radial-gradient(circle, var(--cyan), transparent 70%); opacity: 0.35; animation: auroraFloat3 30s ease-in-out infinite; }
.aurora__grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
}
@keyframes auroraFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.1); } }
@keyframes auroraFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,40px) scale(1.08); } }
@keyframes auroraFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-60px) scale(1.12); } }

/* ---------------------------------- Scroll spine (signature) ---------------------------------- */
.spine { position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 0; }
.spine__track { position: relative; width: 1px; height: 300px; background: rgba(148,163,184,0.18); }
.spine__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 10px var(--cyan); transition: height 0.15s linear; }
.spine__nodes { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.spine__node {
  width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid rgba(148,163,184,0.4);
  transform: translateX(-4px); transition: all 0.4s var(--ease); position: relative;
}
.spine__node.is-active { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.spine__node .node-label {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-dim);
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: none;
}
.spine__node.is-active .node-label { opacity: 1; color: var(--cyan); transform: translateY(-50%) translateX(4px); }
@media (max-width: 1180px) { .spine { display: none; } }

/* ---------------------------------- Header / Nav ---------------------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 22px 0; transition: all 0.5s var(--ease); }
.site-header .bar {
  max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 12px 26px; border-radius: 999px; background: rgba(8,12,32,0.4); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: all 0.5s var(--ease);
}
.site-header.is-scrolled .bar { background: rgba(8,12,32,0.82); border-color: var(--line-bright); box-shadow: 0 20px 50px -30px rgba(0,0,0,0.8); }
.site-header .wrap { padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--grey); position: relative; padding: 4px 0; transition: color 0.3s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--cyan); transition: width 0.35s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 600; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s var(--ease); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 0; background: rgba(5,8,22,0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; color: var(--white); }
  .nav-cta .btn-sm.hide-mobile { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 140px; padding-bottom: 80px; }
.hero .wrap { z-index: 2; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.hero-content { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(42px, 7.2vw, 88px); line-height: 1.03; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .word { display: inline-block; transform: translateY(110%); opacity: 0; }
.hero p.sub { margin: 28px auto 0; font-size: 18px; color: var(--grey); max-width: 560px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }

.hero-trajectory { position: relative; max-width: 820px; margin: 64px auto 0; height: 140px; }
.hero-trajectory svg { width: 100%; height: 100%; overflow: visible; }
.hero-trajectory .path-line { fill: none; stroke: url(#trajGradient); stroke-width: 2; stroke-linecap: round; }
.hero-trajectory .path-dot { filter: drop-shadow(0 0 8px var(--cyan)); }

.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--white); }
.hero-stats .lbl { font-size: 12px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.04em; }

.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.floater {
  position: absolute; padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-bright);
  backdrop-filter: blur(16px); display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--white);
  box-shadow: var(--shadow-card); animation: floaterDrift 8s ease-in-out infinite;
}
.floater svg { width: 16px; height: 16px; }
.floater--1 { top: 18%; left: 6%; animation-delay: 0s; }
.floater--2 { top: 62%; left: 10%; animation-delay: 1.2s; }
.floater--3 { top: 24%; right: 7%; animation-delay: 0.6s; }
.floater--4 { top: 68%; right: 9%; animation-delay: 1.8s; }
@media (max-width: 1180px) { .floater { display: none; } }
@keyframes floaterDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-dim); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; z-index: 2; }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: scrollpulse 2.2s infinite var(--ease); }
@keyframes scrollpulse { 0% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.4); opacity: 0.4; } }

/* ---------------------------------- Reveal utility (JS-driven) ---------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.r-delay-1 { transition-delay: 0.08s; } .r-delay-2 { transition-delay: 0.16s; }
.r-delay-3 { transition-delay: 0.24s; } .r-delay-4 { transition-delay: 0.32s; }

/* ---------------------------------- Glass card base ---------------------------------- */
.glass-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-md);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(140deg, rgba(0,229,255,0.35), rgba(124,58,237,0.15) 50%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.6;
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); box-shadow: var(--shadow-card); }

/* ---------------------------------- About ---------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about-copy p { margin-top: 18px; font-size: 15.5px; }
.about-pillars { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 36px; }
.pillar { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--line); }
.pillar svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 2px; }
.pillar span { font-size: 13.5px; font-weight: 600; color: var(--white); }

.orbit-graphic { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid var(--line-bright); border-radius: 50%; }
.orbit-ring--1 { inset: 0; animation: spin 40s linear infinite; }
.orbit-ring--2 { inset: 14%; border-style: dashed; border-color: rgba(0,229,255,0.25); animation: spin 30s linear infinite reverse; }
.orbit-ring--3 { inset: 30%; animation: spin 22s linear infinite; }
.orbit-core { position: relative; z-index: 2; width: 34%; aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--cyan), var(--blue) 55%, var(--purple)); box-shadow: 0 0 80px rgba(0,229,255,0.4); display: grid; place-items: center; }
.orbit-core span { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--bg); text-align: center; padding: 0 20px; }
.orbit-node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 14px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------- Services (bento) ---------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 22px; }
.bento-card {
  border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-2-row { grid-row: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2,1fr); } .bento-card.span-2 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .bento-card, .bento-card.span-2 { grid-column: span 1; min-height: 190px; } }
.bento-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: auto; }
.bento-card .icon-wrap svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }
.bento-card h3 { font-size: 19px; margin-top: 18px; }
.bento-card p { font-size: 13.5px; margin-top: 8px; }
.bento-card .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(70px); opacity: 0.35; top: -60px; right: -60px; pointer-events: none; }

.services-more { margin-top: 40px; padding: 34px; }
.services-more h3 { font-size: 16px; margin-bottom: 18px; color: var(--grey); font-weight: 600; }
.services-more .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.services-more .chips .tag { transition: all 0.3s var(--ease); }
.services-more .chips .tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------------------------------- Why choose us (tilt) ---------------------------------- */
.tilt-card { padding: 32px 28px; transform-style: preserve-3d; will-change: transform; }
.tilt-card .num { font-family: var(--font-mono); font-size: 34px; font-weight: 700; }
.tilt-card h4 { font-size: 16.5px; margin-top: 14px; }
.tilt-card p { font-size: 13.5px; margin-top: 8px; }

/* ---------------------------------- Portfolio ---------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-pill { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-soft); font-size: 13px; font-weight: 600; color: var(--grey); transition: all 0.3s var(--ease); }
.filter-pill:hover { border-color: var(--cyan); color: var(--white); }
.filter-pill.is-active { background: linear-gradient(120deg, var(--blue), var(--purple)); border-color: transparent; color: var(--white); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.p-card { border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.p-card .thumb { aspect-ratio: 16/11; position: relative; overflow: hidden; }
.p-card .thumb .grad { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.p-card:hover .thumb .grad { transform: scale(1.08); }
.p-card .thumb .mono-url { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.85); text-align: center; padding: 20px; letter-spacing: 0.02em; }
.p-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,22,0) 40%, rgba(5,8,22,0.9)); }
.p-card .thumb .visit { position: absolute; bottom: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease); }
.p-card:hover .thumb .visit { opacity: 1; transform: translateY(0); }
.p-card .thumb .visit svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 2; }
.p-card .body { padding: 20px 22px 24px; }
.p-card .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.p-card h4 { font-size: 16.5px; margin-top: 8px; }
.p-card .tech { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.p-card.hidden { display: none; }

.portfolio-loadmore { text-align: center; margin-top: 48px; }

/* ---------------------------------- Testimonials ---------------------------------- */
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.6s var(--ease); }
.testi-slide { flex: 0 0 100%; padding: 4px; }
.testi-card { padding: 44px; max-width: 720px; margin: 0 auto; text-align: center; }
.testi-card .quote-mark { font-family: var(--font-display); font-size: 52px; color: var(--purple); line-height: 1; }
.testi-card p.quote { font-size: 18px; color: var(--white); line-height: 1.7; margin-top: 10px; }
.testi-who { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: var(--bg); background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.testi-who .name { font-size: 14px; font-weight: 700; }
.testi-who .role { font-size: 12.5px; color: var(--text-dim); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(148,163,184,0.3); transition: all 0.3s var(--ease); }
.testi-dots button.is-active { background: var(--cyan); width: 22px; border-radius: 4px; }

/* ---------------------------------- Pricing ---------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: center; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { padding: 40px 32px; position: relative; }
.price-card .plan { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.price-card .amount { font-family: var(--font-display); font-size: 42px; font-weight: 700; margin-top: 16px; }
.price-card .amount small { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.price-card ul { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--grey); }
.price-card li svg { width: 16px; height: 16px; stroke: var(--cyan); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: 30px; width: 100%; }

.price-card--featured { transform: scale(1.05); z-index: 2; padding: 46px 36px; }
@media (max-width: 980px) { .price-card--featured { transform: none; } }
.price-card--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--angle,0deg), var(--cyan), var(--blue), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateBorder 5s linear infinite; opacity: 0.95;
}
.price-card--featured { box-shadow: 0 30px 90px -30px rgba(0,229,255,0.35); }
.price-card--featured:hover { box-shadow: 0 40px 100px -30px rgba(0,229,255,0.55); }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rotateBorder { to { --angle: 360deg; } }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(120deg, var(--cyan), var(--blue)); font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); box-shadow: 0 10px 30px -10px rgba(0,229,255,0.6); z-index: 3; }

/* -- Starter tier: green accent -- */
.price-card--starter .check-ic { background: rgba(34,197,94,0.14); }
.price-card--starter .check-ic svg { stroke: #22C55E; }
.price-card--starter:hover { border-color: rgba(34,197,94,0.4); box-shadow: 0 30px 80px -35px rgba(34,197,94,0.35); }

/* -- Premium tier: gold theme -- */
.price-card--gold { position: relative; }
.price-card--gold::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--angle,0deg), #F5D573, #B8860B, #F5D573);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateBorder 6s linear infinite; opacity: 0.85;
}
.price-card--gold .plan { color: #F5D573; }
.price-card--gold .amount { background: linear-gradient(120deg, #F5D573, #D4AF37 60%, #B8860B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card--gold .check-ic { background: rgba(245,213,115,0.14); }
.price-card--gold .check-ic svg { stroke: #F5D573; }
.price-card--gold:hover { box-shadow: 0 30px 90px -30px rgba(245,213,115,0.4); }
.price-badge--gold { background: linear-gradient(120deg, #F5D573, #B8860B); box-shadow: 0 10px 30px -10px rgba(245,213,115,0.65); }

.btn-gold-outline { border-color: rgba(245,213,115,0.5); }
.btn-gold-outline:hover { border-color: #F5D573; color: #F5D573; }

/* -- Check icons: colored circular backdrop behind each feature tick -- */
.check-ic { width: 21px; height: 21px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,229,255,0.14); flex-shrink: 0; margin-top: 1px; transition: transform 0.3s var(--ease); }
.check-ic svg { width: 11px; height: 11px; stroke: var(--cyan); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.price-card li:hover .check-ic { transform: scale(1.18) rotate(-6deg); }

/* -- Floating badge animation -- */
@keyframes badgeFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
.badge-float { animation: badgeFloat 2.8s ease-in-out infinite; }

/* -- Free Bonus panel -- */
.bonus-panel { margin-top: 64px; }
.bonus-head { text-align: center; margin-bottom: 36px; }
.bonus-head h3 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 14px; font-family: var(--font-display); }
.bonus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .bonus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bonus-grid { grid-template-columns: 1fr; } }
.bonus-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 26px 18px;
  border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bonus-card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); box-shadow: var(--shadow-card); }
.bonus-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(0,229,255,0.16), rgba(124,58,237,0.12)); transition: transform 0.4s var(--ease); }
.bonus-card:hover .bonus-ic { transform: scale(1.1) rotate(-6deg); }
.bonus-ic svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bonus-label { font-size: 13.5px; font-weight: 700; color: var(--white); }
.bonus-note { text-align: center; margin-top: 26px; font-size: 12.5px; color: var(--text-dim); }

/* ---------------------------------- Tech marquee ---------------------------------- */
.marquee { overflow: hidden; position: relative; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marqueeScroll 32s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 16px; color: var(--text-dim); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee-track span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------- FAQ ---------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; padding: 26px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 16.5px; font-weight: 600; color: var(--white); text-align: left; font-family: var(--font-display); }
.faq-q .plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--cyan); border-radius: 2px; transition: transform 0.35s var(--ease); }
.faq-q .plus::before { width: 100%; height: 1.6px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { height: 100%; width: 1.6px; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { padding: 0 4px 26px; font-size: 14.5px; max-width: 660px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------------------------------- Contact ---------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { padding: 40px 34px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:first-of-type { padding-top: 0; }
.info-row:last-of-type { border-bottom: none; }
.info-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--glass-soft); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 18px; height: 18px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
.info-row .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.info-row .val { margin-top: 6px; font-size: 14px; color: var(--white); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; margin-top: 24px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(0.5) invert(0.92) contrast(0.9); }

.form-card { padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 8px; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  font-size: 14.5px; color: var(--white); transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,0.05); }
.field textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; background: rgba(0,229,255,0.08); border: 1px solid var(--cyan); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--cyan); margin-bottom: 22px; }
.form-success.show { display: block; }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band { padding: 80px 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(37,99,235,0.25), transparent); pointer-events: none; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); position: relative; z-index: 2; }
.cta-band p { margin: 18px auto 0; max-width: 520px; position: relative; z-index: 2; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { padding: 100px 0 0; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 14px; max-width: 300px; margin-top: 16px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: var(--grey); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cyan); }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--white); font-size: 13.5px; }
.newsletter-form button { padding: 12px 18px; border-radius: 10px; background: linear-gradient(120deg, var(--blue), var(--purple)); color: var(--white); font-weight: 700; font-size: 13px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.footer-social a:hover { border-color: var(--cyan); background: rgba(0,229,255,0.08); }
.footer-social svg { width: 15px; height: 15px; stroke: var(--grey); fill: none; stroke-width: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 12.5px; color: var(--text-dim); border-top: 1px solid var(--line); margin-top: 20px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------------------------------- Instant chat launcher ---------------------------------- */
.contact-fab { position: fixed; bottom: 28px; right: 28px; z-index: 400; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.contact-fab__options {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-bottom: 14px;
  opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none; transition: all 0.35s var(--ease);
}
.contact-fab.is-open .contact-fab__options { opacity: 1; transform: none; pointer-events: auto; }
.contact-fab__option {
  display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--line-bright);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 8px 18px 8px 8px; border-radius: 999px;
  color: var(--white); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-card); white-space: nowrap;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-fab__option:hover { transform: translateX(-4px); border-color: var(--cyan); }
.contact-fab__option .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.contact-fab__option.call .ic { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.contact-fab__option.whatsapp .ic { background: #22c55e; }
.contact-fab__option.email .ic { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.contact-fab__option .ic svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; }
.contact-fab__option.whatsapp .ic svg { fill: #fff; stroke: none; }

.contact-fab__toggle {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(0,229,255,0.55); transition: transform 0.35s var(--ease);
}
.contact-fab__toggle:hover { transform: scale(1.06) translateY(-2px); }
.contact-fab__toggle .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); animation: ping 2.4s infinite; }
.contact-fab__toggle svg { width: 26px; height: 26px; stroke: var(--bg); fill: none; stroke-width: 2; position: absolute; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.contact-fab__toggle .ic-chat { opacity: 1; transform: rotate(0deg); }
.contact-fab__toggle .ic-close { opacity: 0; transform: rotate(-45deg); }
.contact-fab.is-open .contact-fab__toggle .ic-chat { opacity: 0; transform: rotate(45deg); }
.contact-fab.is-open .contact-fab__toggle .ic-close { opacity: 1; transform: rotate(0deg); }
.contact-fab.is-open .contact-fab__toggle .ping { display: none; }

/* ---------------------------------- Header phone chip ---------------------------------- */
.nav-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--grey); transition: color 0.3s var(--ease); }
.nav-phone svg { width: 15px; height: 15px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.nav-phone:hover { color: var(--white); }
@media (max-width: 1180px) { .nav-phone { display: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
