/* ==========================================================================
   WebPassion — Design Tokens & Reset
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #06070d;
  --bg-elevated: #0a0c16;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary: #f4f6fb;
  --text-secondary: #a7afc4;
  --text-muted: #6b7385;

  /* Accents */
  --c-cyan: #33e0ff;
  --c-blue: #4f7bff;
  --c-violet: #8b5cf6;
  --gradient: linear-gradient(135deg, #33e0ff 0%, #4f7bff 52%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(51, 224, 255, 0.14), rgba(79, 123, 255, 0.14) 52%, rgba(139, 92, 246, 0.14));
  --success: #34d399;
  --danger: #f87171;

  /* Radii & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 1px rgba(79, 123, 255, 0.4), 0 20px 60px -20px rgba(79, 123, 255, 0.25);

  /* Motion */
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --dur: 0.6s;

  /* Layout */
  --container: 1220px;
  --header-h: 78px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

body.is-loading { overflow: hidden; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__mark {
  position: relative;
  z-index: 1;
  width: 46px;
  height: auto;
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.page-loader__ring {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--c-cyan);
  border-right-color: var(--c-violet);
  animation: loader-spin 0.9s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader__ring, .page-loader__mark { animation: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); }
h3 { font-size: 1.15rem; }

::selection { background: rgba(79, 123, 255, 0.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2130; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a3145; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0 0 16px;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gradient);
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head--center .section-label { justify-content: center; }
.section-lede {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 56ch;
}
.section-head--center .section-lede { margin-inline: auto; }

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

@media (max-width: 992px) {
  .grid--3, .grid--work { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--work { grid-template-columns: 1fr; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--gradient);
  color: #050608;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(79, 123, 255, 0.45); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(5, 6, 8, 0.3);
  border-top-color: #050608;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Glass card base */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark-img { display: block; width: auto; height: 30px; }
.brand__name-group { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand__tagline {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 1150px) {
  .brand__tagline { display: none; }
}

.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__list a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__list a:hover { color: var(--text-primary); }
.nav__list a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 99;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav ul a {
  display: block;
  padding: 12px 4px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.mobile-nav ul a:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--primary { display: none; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__glow--1 { background: var(--c-blue); top: -180px; left: -120px; }
.hero__glow--2 { background: var(--c-violet); bottom: -220px; right: -160px; animation-delay: -6s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(51, 224, 255, 0.15);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-size: clamp(2.4rem, 1.8rem + 2.8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 18px;
  font-size: 1.13rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero__stats {
  display: flex;
  gap: 36px;
  margin: 52px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hero__stats dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* Hero flow visual */
.hero__visual { display: flex; justify-content: center; }
.flow-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 460px;
  padding: 30px 24px;
}

.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.flow-path { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.flow-path--static { stroke: rgba(255,255,255,0.06); stroke-width: 8; stroke-linecap: round; }
.flow-dot { fill: var(--c-cyan); filter: drop-shadow(0 0 6px rgba(51,224,255,0.9)); }
.flow-dot--b { fill: var(--c-blue); filter: drop-shadow(0 0 6px rgba(79,123,255,0.9)); }
.flow-dot--c { fill: var(--c-violet); filter: drop-shadow(0 0 6px rgba(139,92,246,0.9)); }

.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 78%;
  margin: 0 auto 26px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  font-size: 0.92rem;
  font-weight: 600;
  animation: float-node 5s ease-in-out infinite;
  animation-delay: calc(var(--y) * 0.25s);
}
.flow-node:nth-child(odd) { margin-left: 0; }
.flow-node:nth-child(even) { margin-right: 0; margin-left: auto; }
.flow-node:last-child { margin-bottom: 0; }
@keyframes float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.flow-node__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient-soft);
  color: var(--c-cyan);
  flex-shrink: 0;
}

@media (max-width: 990px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { flex-wrap: wrap; gap: 22px 32px; }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-elevated);
}
.marquee__track {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.marquee__track span:nth-child(2n) { color: var(--c-blue); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Brand statement */
.statement {
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(79, 123, 255, 0.08), transparent 70%);
}
.statement__text {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-secondary);
}
.statement__accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Cards — services / why-us
   ========================================================================== */

.card {
  padding: 34px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--c-cyan);
  margin-bottom: 22px;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 0.96rem; }

.card--why { position: relative; }
.card__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Specialization block
   ========================================================================== */

.section--specialization {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.specialization__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,92,246,0.14), transparent 60%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(51,224,255,0.1), transparent 60%);
  pointer-events: none;
}

.specialization__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-top: 34px;
}
.capability-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}
.capability-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gradient);
}

.pipeline {
  position: relative;
  padding: 10px 0 10px 34px;
}
.pipeline__line {
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-blue), var(--c-violet));
  border-radius: 2px;
  overflow: hidden;
}
.pipeline__pulse {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 60px;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  opacity: 0.8;
  animation: pulse-down 3.2s ease-in-out infinite;
}
@keyframes pulse-down {
  0% { transform: translateY(-60px); }
  100% { transform: translateY(420px); }
}

.pipeline__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pipeline__node:hover { transform: translateX(6px); border-color: var(--border-strong); }
.pipeline__node:last-child { margin-bottom: 0; }
.pipeline__node::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--c-blue);
}
.pipeline__node--accent {
  border-color: rgba(79, 123, 255, 0.4);
  background: linear-gradient(135deg, rgba(51,224,255,0.08), rgba(139,92,246,0.08));
}
.pipeline__index {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .specialization__grid { grid-template-columns: 1fr; }
  .capability-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .capability-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Technology
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.tech-group {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
}
.tech-group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.badge:hover { border-color: var(--c-blue); background: rgba(79,123,255,0.1); transform: translateY(-2px); }

@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process timeline
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-blue), var(--c-violet));
  opacity: 0.35;
}
.timeline__item {
  position: relative;
  padding-top: 60px;
}
.timeline__index {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-cyan);
}
.timeline__item h3 { margin-bottom: 10px; font-size: 1.05rem; }
.timeline__item p { color: var(--text-secondary); font-size: 0.92rem; }

@media (max-width: 992px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About
   ========================================================================== */

.section--about { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.about__copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.about__copy p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Projects
   ========================================================================== */

.project { display: flex; flex-direction: column; }
.project h3 { margin-bottom: 10px; font-size: 1.08rem; }
.project p { color: var(--text-secondary); font-size: 0.93rem; }

.project__mock {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #0d0f1a, #0a0b13);
  padding: 18px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.project:hover .project__mock { border-color: var(--border-strong); transform: translateY(-4px); }

.mock { display: flex; flex-direction: column; gap: 14px; height: 168px; }
.mock__bar { display: flex; gap: 6px; }
.mock__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mock__bar span:nth-child(1) { background: #f87171; opacity: 0.6; }
.mock__bar span:nth-child(2) { background: #fbbf24; opacity: 0.6; }
.mock__bar span:nth-child(3) { background: #34d399; opacity: 0.6; }

.mock__row { display: flex; gap: 10px; }
.mock__pill { flex: 1; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.mock__pill--accent { background: var(--gradient-soft); border-color: rgba(79,123,255,0.35); }

.mock__chart { display: flex; align-items: flex-end; gap: 8px; flex: 1; }
.mock__chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-blue));
  opacity: 0.75;
}

.mock__list { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: center; }
.mock__list-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.mock__list-row span { width: 60%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.mock__list-row em { font-style: normal; color: var(--c-cyan); font-family: var(--font-mono); font-size: 0.8rem; }

.mock__grid-cells { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: 1; }
.mock__grid-cells div { border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.mock__grid-cells div:first-child { background: var(--gradient-soft); border-color: rgba(139,92,246,0.35); }

.mock__sparkline { flex: 1; display: flex; align-items: center; }
.mock__sparkline svg { width: 100%; height: 60%; }

.mock__flow { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.mock__flow span { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.mock__flow i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-cyan), var(--c-violet)); opacity: 0.4; margin: 0 4px; }

.mock__code { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mock__code span { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); width: 100%; }
.mock__code span.w60 { width: 60%; background: rgba(51,224,255,0.35); }
.mock__code span.w80 { width: 80%; }
.mock__code span.w40 { width: 40%; background: rgba(139,92,246,0.35); }

.mock__tenants { display: flex; gap: 10px; flex: 1; align-items: stretch; }
.mock__tenants div { flex: 1; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.mock__tenants div:nth-child(2) { background: var(--gradient-soft); border-color: rgba(79,123,255,0.35); }

/* ==========================================================================
   Contact
   ========================================================================== */

.section--contact { background: var(--bg-elevated); border-top: 1px solid var(--border); overflow: hidden; }
.contact__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(79,123,255,0.14), transparent 65%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact__info-card {
  padding: 36px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  height: 100%;
}
.contact__info-card h3 { margin-bottom: 14px; }
.contact__info-card p { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 22px; }

.contact__points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.contact__points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.contact__points li::before {
  content: '✓';
  position: absolute;
  left: 0; top: -1px;
  color: var(--success);
  font-size: 0.85rem;
}

.contact__details { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--border); }
.contact__details div { display: flex; flex-direction: column; gap: 2px; }
.contact__details span { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact__details a, .contact__details p { font-weight: 600; font-size: 0.96rem; margin: 0; }
.contact__details a:hover { color: var(--c-cyan); }

.contact-form {
  padding: 36px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.field__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.field label em { font-style: normal; color: var(--c-cyan); margin-left: 2px; }
.field .optional { color: var(--text-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--c-blue); background: rgba(79,123,255,0.05); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a7afc4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}
.field textarea { resize: vertical; min-height: 120px; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--danger);
}
.field.has-error .field__error { display: block; }

.form-status {
  margin-top: 18px;
  padding: 0;
  font-size: 0.92rem;
  text-align: center;
  border-radius: var(--r-sm);
  transition: padding 0.3s var(--ease);
}
.form-status.is-success { padding: 14px; background: rgba(52,211,153,0.1); color: var(--success); border: 1px solid rgba(52,211,153,0.3); }
.form-status.is-error { padding: 14px; background: rgba(248,113,113,0.1); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }

@media (max-width: 992px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form, .contact__info-card { padding: 26px 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 80px 0 0; background: var(--bg); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer__brand p { margin-top: 16px; color: var(--text-secondary); font-size: 0.92rem; max-width: 32ch; }
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { color: var(--c-cyan); border-color: var(--c-cyan); transform: translateY(-3px); }

.footer__col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--c-cyan); }
.footer__contact li { color: var(--text-secondary); font-size: 0.92rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Scroll-to-top
   ========================================================================== */

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, border-color 0.3s var(--ease);
  z-index: 90;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
