/* ============================================================
   CREATIVE STUCK — Futuristic Agency Site
   Tokens + Reset + Global + Sections
   ============================================================ */

:root {
  --bg:        #050505;
  --bg-2:      #0d0d0d;
  --bg-3:      #111111;
  --text:      #ffffff;
  --text-soft: #b8b8b8;
  --text-dim:  #6a6a6a;
  --accent:    #d2fd00;
  --accent-2:  #aef000;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.04);
  --glow:      0 0 60px rgba(210, 253, 0, 0.35);
  --glow-soft: 0 0 120px rgba(210, 253, 0, 0.15);

  --pad-x: clamp(20px, 4vw, 80px);
  --section-gap: clamp(120px, 14vw, 220px);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-arabic:  'Alexandria', 'Space Grotesk', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  direction: ltr;
}

html.ar {
  direction: rtl;
  font-family: var(--font-arabic);
}

html.ar body,
html.ar button,
html.ar a,
html.ar h1,
html.ar h2,
html.ar h3,
html.ar h4,
html.ar h5,
html.ar p,
html.ar span {
  font-family: var(--font-arabic);
}

html.ar .nav-logo {
  flex-direction: row-reverse;
}

html.ar .footer-brand a {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

html.ar .nav-mark,
html.ar .loader-count,
html.ar [data-clock],
html.ar .marquee-item,
html.ar .stat-block .lbl,
html.ar .stat-block .num,
html.ar .case-num,
html.ar .case-tags span,
html.ar .why-card .step,
html.ar .why-card .tag,
html.ar .t-card .logo,
html.ar .section-eyebrow {
  font-family: 'Alexandria', var(--font-mono);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}

img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #000; }

/* ============================================================
   NOISE OVERLAY + SCROLL PROGRESS + CUSTOM CURSOR
   ============================================================ */

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 101;
  transition: width 0.05s linear;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(210, 253, 0, 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.hover {
  width: 60px;
  height: 60px;
  background: rgba(210, 253, 0, 0.08);
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   LOADER
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-stack {
  display: grid;
  place-items: center;
  gap: 28px;
}
.loader-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform-origin: left;
  animation: load-fill 1.4s var(--ease-out) forwards;
}
.loader-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.1em;
}
@keyframes load-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  transition: backdrop-filter 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 16px var(--pad-x);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.05em;
  box-shadow: 0 0 20px rgba(210, 253, 0, 0.4);
  position: relative;
}
.nav-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 1px solid rgba(210, 253, 0, 0.3);
  animation: mark-pulse 2.4s ease-in-out infinite;
}
@keyframes mark-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 0; }
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  color: inherit;
  transition: all 0.3s var(--ease);
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  background: rgba(255,255,255,0.02);
}
.nav-cta:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav-cta:hover .dot { background: #000; box-shadow: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px var(--pad-x) 80px;
  overflow: hidden;
  isolation: isolate;
}

/* radial glow + rings */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(210, 253, 0, 0.22), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(210, 253, 0, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-rings {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: min(110vw, 1400px);
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.hero-rings circle {
  fill: none;
  stroke: rgba(210, 253, 0, 0.18);
  stroke-width: 1;
}
.hero-rings circle.glow {
  stroke: rgba(210, 253, 0, 0.5);
  filter: drop-shadow(0 0 6px rgba(210, 253, 0, 0.4));
}

/* particles canvas */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* grid backdrop */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 36px;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7.5vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-align: center;
  max-width: 1500px;
  margin: 0 auto;
  text-wrap: balance;
}
.hero-title .accent {
  font-weight: 300;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(210, 253, 0, 0.4);
  position: relative;
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-rise 1.1s var(--ease-out) forwards;
}
.hero-title .word:nth-child(1) > span { animation-delay: 0.10s; }
.hero-title .word:nth-child(2) > span { animation-delay: 0.18s; }
.hero-title .word:nth-child(3) > span { animation-delay: 0.26s; }
.hero-title .word:nth-child(4) > span { animation-delay: 0.34s; }
.hero-title .word:nth-child(5) > span { animation-delay: 0.42s; }
.hero-title .word:nth-child(6) > span { animation-delay: 0.50s; }
@keyframes word-rise {
  to { transform: translateY(0); }
}

.hero-sub {
  max-width: 620px;
  text-align: center;
  margin: 32px auto 0;
  color: var(--text-soft);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.85s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(210, 253, 0, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 80px rgba(210, 253, 0, 0.7);
  transform: translateY(-2px);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 100%; }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow { transform: translate(4px, -4px); }

/* hero metabar */
.hero-meta {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1.1s forwards;
}
.hero-meta .meta-block { display: grid; gap: 6px; }
.hero-meta .meta-block strong { color: var(--text); font-weight: 500; }
.hero-meta .scroll-cue {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.scroll-cue .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 760px) {
  .hero-meta { display: none; }
  .hero { padding-bottom: 60px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  padding-right: 60px;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}
.marquee-item .star { color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */

section.block {
  padding: var(--section-gap) var(--pad-x);
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 14ch;
}
.section-title .accent {
  font-weight: 300;
  color: var(--accent);
}
.section-blurb {
  color: var(--text-soft);
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ============================================================
   SERVICES (BENTO)
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(210, 253, 0, 0.6), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.service:hover::before { opacity: 1; }
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(210, 253, 0, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.service:hover::after { opacity: 1; }
.service:hover {
  border-color: rgba(210, 253, 0, 0.3);
  transform: translateY(-3px);
}

.service .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.service .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 24px;
  color: var(--accent);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.service:hover .icon {
  background: rgba(210, 253, 0, 0.08);
  transform: rotate(-6deg) scale(1.08);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.service p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36ch;
}
.service .head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}
.service .body { display: flex; flex-direction: column; gap: 20px; flex: 1; justify-content: end; }

/* bento sizing */
.service.s-large {
  grid-column: span 4;
  min-height: 340px;
  background:
    radial-gradient(circle at 100% 0%, rgba(210, 253, 0, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}
.service.s-medium { grid-column: span 2; }
.service.s-third  { grid-column: span 2; }
.service.s-half   { grid-column: span 3; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service.s-large, .service.s-medium, .service.s-third, .service.s-half {
    grid-column: span 2;
    min-height: 240px;
  }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service.s-large, .service.s-medium, .service.s-third, .service.s-half {
    grid-column: span 1;
  }
}

/* decorative chart inside large card */
.service-chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 60px;
}
.service-chart span {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(210, 253, 0, 0.2));
  border-radius: 3px;
  opacity: 0.85;
  animation: bar-grow 1.6s var(--ease-out) backwards;
}
.service-chart span:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.service-chart span:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.service-chart span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.service-chart span:nth-child(4) { height: 75%; animation-delay: 0.3s; }
.service-chart span:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.service-chart span:nth-child(6) { height: 90%; animation-delay: 0.5s; }
.service-chart span:nth-child(7) { height: 50%; animation-delay: 0.6s; }
.service-chart span:nth-child(8) { height: 100%; animation-delay: 0.7s; }
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.case:nth-child(even) .case-visual { order: 2; }
.case:nth-child(even) .case-info   { order: 1; }

.case-info .case-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.case-info .case-num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.case-info h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.case-info h3 .accent { color: var(--accent); font-style: italic; font-weight: 300; }
.case-info p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 32px;
}
.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.case-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-soft);
  text-transform: uppercase;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  max-width: 480px;
}
.case-stats .stat {
  display: grid;
  gap: 4px;
}
.case-stats .stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
}
.case-stats .stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* device mockup */
.case-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1500px;
}
.device {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 60px rgba(210, 253, 0, 0.08);
  transition: transform 0.6s var(--ease);
}
.device-laptop {
  left: 0; top: 10%;
  width: 78%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  transform: rotateY(8deg) rotateX(3deg);
}
.device-phone {
  right: 0; bottom: 0;
  width: 22%;
  aspect-ratio: 9 / 19;
  border-radius: 24px;
  transform: rotateY(-12deg) rotateX(2deg);
  border-color: rgba(255,255,255,0.15);
}
.case:hover .device-laptop { transform: rotateY(4deg) rotateX(1deg) translateY(-4px); }
.case:hover .device-phone  { transform: rotateY(-8deg) rotateX(0deg) translateY(-6px); }

.device-screen {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.device-phone .device-screen { inset: 4px; border-radius: 20px; }

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.screen-bar .dots { display: flex; gap: 4px; }
.screen-bar .dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.screen-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.case-visual .glow-orb {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 60%, rgba(210, 253, 0, 0.18), transparent 50%);
  z-index: -1;
  filter: blur(20px);
}

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 40px; }
  .case:nth-child(even) .case-visual { order: 0; }
  .case-visual { aspect-ratio: 4 / 3; }
}

/* ============================================================
   WHY CHOOSE US — TIMELINE
   ============================================================ */

.why {
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.why-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.why-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 253, 0, 0.3);
}
.why-card .node {
  position: absolute;
  top: 70px;
  left: 32px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
}
.why-card .node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.why-card .step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-bottom: 80px;
}
.why-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.why-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.why-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid::before { display: none; }
}
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STATS
   ============================================================ */

.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 0% 50%, rgba(210, 253, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(210, 253, 0, 0.06), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.stat-block {
  padding: 50px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-block:last-child { border-right: none; }
.stat-block .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-block .lbl::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.stat-block .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.5vw, 88px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-block .num .suffix {
  color: var(--accent);
  font-size: 0.5em;
  font-weight: 400;
}
.stat-block .meter {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.stat-block .meter-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  width: 0;
  transition: width 1.6s var(--ease-out);
}
.stat-block.in .meter-fill { width: var(--fill, 80%); }
.stat-block .desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-child(1), .stat-block:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-block:last-child { border-bottom: none; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.t-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 360px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.t-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 253, 0, 0.25);
}
.t-card .quote-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.8;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0;
  padding-top: 24px;
}
.t-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  flex: 1;
}
.t-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.t-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5a7c00);
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 20px rgba(210, 253, 0, 0.25);
}
.t-card:nth-child(2) .avatar { background: linear-gradient(135deg, #fff, #888); color: #000; box-shadow: 0 0 14px rgba(255,255,255,0.15); }
.t-card:nth-child(3) .avatar { background: linear-gradient(135deg, #d2fd00, #0d0d0d); color: #000; }
.t-card .author .meta { display: grid; gap: 2px; }
.t-card .author .name {
  font-size: 14px;
  font-weight: 500;
}
.t-card .author .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}
.t-card .logo {
  position: absolute;
  top: 36px;
  right: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.final {
  text-align: center;
  position: relative;
  padding: clamp(140px, 18vw, 260px) var(--pad-x);
  overflow: hidden;
}
.final-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(210, 253, 0, 0.25), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  animation: glow-breathe 5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.final-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: -1;
}
.final-rings .ring {
  position: absolute;
  border: 1px solid rgba(210, 253, 0, 0.15);
  border-radius: 50%;
  animation: ring-expand 6s ease-in-out infinite;
}
.final-rings .ring:nth-child(1) { width: 320px; height: 320px; animation-delay: 0s; }
.final-rings .ring:nth-child(2) { width: 540px; height: 540px; animation-delay: 0.8s; }
.final-rings .ring:nth-child(3) { width: 760px; height: 760px; animation-delay: 1.6s; }
.final-rings .ring:nth-child(4) { width: 1020px; height: 1020px; animation-delay: 2.4s; }
@keyframes ring-expand {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.05); }
}

.final-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.final-eyebrow::before, .final-eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.final h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 128px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 1500px;
  margin: 0 auto;
  text-wrap: balance;
}
.final h2 .accent { font-style: italic; font-weight: 300; color: var(--accent); text-shadow: 0 0 40px rgba(210, 253, 0, 0.4); }
.final-sub {
  color: var(--text-soft);
  max-width: 520px;
  margin: 32px auto 0;
  font-size: 15px;
  line-height: 1.6;
}
.final-cta {
  display: inline-flex;
  margin-top: 44px;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px var(--pad-x) 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(210, 253, 0, 0.05), transparent 70%);
  pointer-events: none;
}

.footer-massive {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(60px, 14vw, 240px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.footer-massive .stroke {
  -webkit-text-stroke: 1px rgba(255,255,255,0.25);
  color: transparent;
}
.footer-massive .glow {
  color: var(--accent);
  font-weight: 300;
  text-shadow: 0 0 60px rgba(210, 253, 0, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s, padding-left 0.2s;
  position: relative;
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 14px;
}
.footer-col a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.footer-col a:hover::before { opacity: 1; }

.footer-brand p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  margin: 22px 0 28px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}
.footer-socials a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(210, 253, 0, 0.5);
  padding-left: 0;
}
.footer-socials a:hover::before { display: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col.footer-brand { grid-column: span 1; }
}
