/* ============================================================
   RUBEX UI — Main Stylesheet
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0A0C0F;
  --bg-surface:  #111318;
  --bg-card:     #14171F;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.14);
  --text:        #E8F0FE;
  --text-muted:  #8892A4;
  --text-dim:    #4A5568;
  --accent:      #4A9EFF;
  --accent-glow: rgba(74,158,255,0.25);
  --accent-2:    #7C6BFF;
  --gradient:    linear-gradient(135deg, #4A9EFF 0%, #7C6BFF 100%);
  --radius:      12px;
  --radius-lg:   20px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:  0.2s ease;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-glow); color: var(--text); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Mobile tap targets & smoothness */
button, a { touch-action: manipulation; }
input, textarea, select { -webkit-appearance: none; appearance: none; border-radius: 0; }
* { -webkit-tap-highlight-color: transparent; }

/* --- Layout Utilities --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-header {
  margin-bottom: 56px;
  max-width: 640px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(74,158,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 32px rgba(74,158,255,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-bottom var(--transition);
}

.navbar.scrolled {
  background: rgba(10,12,15,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Logo left | links center | CTA right */
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  justify-self: start;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Right slot: CTA button pinned to the right */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-cta { flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,12,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 16px 24px;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-mobile .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.nav-mobile .btn {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* ── Animated background canvas ── */
.hero-video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,15,0.5) 0%, rgba(10,12,15,0.25) 40%, rgba(10,12,15,0.75) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(74,158,255,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124,107,255,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, rgba(232,240,254,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 36px;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover { background: #181B24; }
.service-card:hover::before { opacity: 0.03; }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.why-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h4 { margin-bottom: 6px; }
.why-card p { font-size: 0.88rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-section { background: var(--bg-surface); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.process-step:hover .step-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.process-step h3 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.88rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: linear-gradient(135deg, rgba(74,158,255,0.08) 0%, rgba(124,107,255,0.08) 100%);
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(74,158,255,0.12), transparent 70%);
  pointer-events: none;
}

.cta-card h2 { margin-bottom: 16px; }
.cta-card p {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(74,158,255,0.1), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.value-card .icon { width: 44px; height: 44px; display:flex; align-items:center; justify-content:center; margin-bottom: 16px; color: var(--accent); }
.value-card .icon svg { width: 32px; height: 32px; }
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { font-size: 0.9rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.team-card h4 { margin-bottom: 4px; }
.team-card span {
  font-size: 0.85rem;
  color: var(--accent);
}
.team-card p {
  font-size: 0.85rem;
  margin-top: 10px;
}

.kyiv-section {
  background: var(--bg-surface);
}
.kyiv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kyiv-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.kyiv-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.kyiv-fact .icon { width:28px; height:28px; display:flex; align-items:center; justify-content:center; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.kyiv-fact .icon svg { width: 22px; height: 22px; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-detailed {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-visual {
  border-radius: var(--radius-lg);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.service-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
  filter: brightness(0.75) saturate(0.85);
  transition: filter 0.4s ease, transform 0.6s ease;
}
.service-detail:hover .service-detail-visual img {
  filter: brightness(0.88) saturate(1);
  transform: scale(1.03);
}
.service-detail-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,158,255,0.12) 0%, rgba(10,12,15,0.3) 100%);
  pointer-events: none;
}
.service-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.04;
}

.service-detail-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.service-detail-content p { font-size: 0.95rem; margin-bottom: 24px; }

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.pricing-label { font-size: 0.85rem; color: var(--text-muted); }
.pricing-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.portfolio-card.hidden { display: none; }

.portfolio-image {
  height: 220px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72) saturate(0.8);
  transition: filter 0.4s ease, transform 0.5s ease;
}
.portfolio-card:hover .portfolio-image img {
  filter: brightness(0.88) saturate(1);
  transform: scale(1.04);
}
.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,12,15,0.6) 100%);
  pointer-events: none;
}

.portfolio-body { padding: 24px; }
.portfolio-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.portfolio-body p { font-size: 0.88rem; margin-bottom: 16px; }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tech-tag {
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-info p { font-size: 0.95rem; margin-bottom: 36px; }

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-item .icon { width:28px; height:28px; display:flex; align-items:center; justify-content:center; flex-shrink: 0; color: var(--accent); }
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 2px; }
.contact-item-value { font-size: 0.95rem; font-weight: 500; }

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.social-link {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
  color: var(--text-muted);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.form-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 6px;
  display: none;
}
.form-group.error .form-error { display: block; }
.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #ff6b6b;
}

.form-message {
  display: none;
  text-align: center;
  padding: 24px;
}
.form-message.success { display: block; }
.form-message-icon { font-size: 3rem; margin-bottom: 12px; }
.form-message h3 { margin-bottom: 8px; }

.form-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.85rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  z-index: 500;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(74,158,255,0.2);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-badge::before { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Nav: collapse to logo + hamburger only */
  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Process */
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }

  /* Services alternating layout */
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .service-detail.reverse { direction: ltr; }

  /* About page */
  .kyiv-grid { grid-template-columns: 1fr; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  /* ── Sections ── */
  .section  { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container { padding: 0 18px; }

  /* ── Typography ── */
  h1 { font-size: 2.2rem; letter-spacing: -0.03em; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.15rem; }
  .section-header { margin-bottom: 36px; }

  /* ── Hero ── */
  .hero-content { padding: 56px 0 48px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-stats {
    gap: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .hero-stat {
    padding: 16px 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:nth-child(even) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-bottom: none; }
  .hero-stat strong { font-size: 1.6rem; }

  /* ── Services grid ── */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }

  /* ── Why grid ── */
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 20px; }

  /* ── Process ── */
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .process-step { padding: 0; }

  /* ── CTA ── */
  .cta-card { padding: 40px 20px; }
  .cta-card h2 { font-size: 1.6rem; }
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* ── Portfolio ── */
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 0.82rem; }
  .portfolio-image { height: 180px; }

  /* ── Services page ── */
  .service-detail-visual { min-height: 220px; }
  .service-detail-visual img { min-height: 220px; }
  .services-detailed { gap: 56px; }
  .pricing-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pricing-card .btn { width: 100%; justify-content: center; }

  /* ── About page ── */
  .values-grid { grid-template-columns: 1fr; gap: 12px; }
  .value-card { padding: 22px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-card { padding: 20px 14px; }
  .kyiv-facts { gap: 10px; }

  /* ── Contact page ── */
  .contact-form-card { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-items { gap: 10px; }
  .contact-item { padding: 12px; }

  /* ── Footer ── */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 24px;
  }

  /* ── Misc ── */
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .section-tag { font-size: 0.7rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: 2rem; }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stat strong { font-size: 1.4rem; }
}

/* ============================================================
   HOMEPAGE REDESIGN — hero motion, marquee, bento, CTA glow
   ============================================================ */

/* --- Hero: rotating headline word --- */
.rotate-wrap {
  display: inline-block;
  min-height: 1.2em;
}
.rotate-word {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}
.rotate-word.out {
  opacity: 0;
  transform: translateY(14px);
}

/* --- Hero: floating category chips --- */
.hero-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(20,23,31,0.75);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  pointer-events: none;
}
.hero-float svg { width: 16px; height: 16px; color: var(--accent); }

.hero-float-1 { top: 26%; left: 8%;  animation: float-a 7s ease-in-out infinite; }
.hero-float-2 { top: 22%; right: 7%; animation: float-b 8s ease-in-out infinite; }
.hero-float-3 { bottom: 30%; left: 11%; animation: float-b 9s ease-in-out infinite; }
.hero-float-4 { bottom: 26%; right: 10%; animation: float-a 7.5s ease-in-out infinite; }

@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%      { transform: translateY(12px) rotate(-1.5deg); }
}

@media (max-width: 1100px) {
  .hero-float { display: none; }
}

/* --- Button shine sweep --- */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -80%; }
  100%    { left: 160%; }
}

/* --- Tech marquee --- */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 22px 0;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--transition);
}
.marquee-item:hover { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Bento grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento-span-2 { grid-column: span 2; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover {
  border-color: rgba(74,158,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.45);
}

/* Mouse-tracking spotlight */
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(74,158,255,0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::before { opacity: 1; }

.bento-body { position: relative; z-index: 1; }
.bento-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.bento-body p { font-size: 0.9rem; margin-bottom: 16px; }

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bento-tags span {
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.15);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.bento-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 20px;
}

/* Wide B2B card: content left, visual right */
.bento-wide {
  flex-direction: row;
  align-items: center;
  gap: 40px;
}
.bento-wide .bento-body { flex: 1.2; }
.bento-wide .bento-visual {
  flex: 1;
  flex-direction: column;
  margin-bottom: 0;
  min-height: 100px;
}

/* --- Visual: SaaS mini dashboard --- */
.saas-window {
  width: 100%;
  max-width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px 16px;
}
.saas-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.saas-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
}
.saas-dots span:first-child { background: rgba(255,107,107,0.6); }
.saas-dots span:nth-child(2) { background: rgba(255,202,74,0.6); }
.saas-dots span:nth-child(3) { background: rgba(87,220,133,0.6); }
.saas-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
}
.saas-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(74,158,255,0.25));
  transform-origin: bottom;
  animation: bar-grow 1s ease both;
  transition: transform 0.3s ease;
}
.saas-bars span:nth-child(2n) { background: linear-gradient(180deg, var(--accent-2), rgba(124,107,255,0.25)); }
.bento-card:hover .saas-bars span { transform: scaleY(1.08); }
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* --- Visual: Micro SaaS pulse --- */
.micro-pulse {
  position: relative;
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.micro-pulse svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.micro-pulse > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(74,158,255,0.4);
  border-radius: 50%;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.micro-pulse > span:nth-child(2) { animation-delay: 1.2s; }
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 1; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* --- Visual: Dev code block --- */
.dev-code {
  width: 100%;
  max-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-line {
  display: block;
  height: 7px;
  width: var(--w, 60%);
  border-radius: 4px;
  background: rgba(74,158,255,0.3);
}
.code-line[style*="--c:2"] { background: rgba(124,107,255,0.35); }
.code-line[style*="--c:3"] { background: rgba(87,220,133,0.3); }
.code-caret {
  display: block;
  width: 8px; height: 12px;
  background: var(--accent);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* --- Visual: AI chat --- */
.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 200px;
}
.ai-bubble {
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  width: fit-content;
}
.ai-bubble-user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-bubble-bot {
  display: flex;
  gap: 5px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
}
.ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ai-typing 1.2s ease-in-out infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* --- Visual: Cyber radar --- */
.cyber-radar {
  position: relative;
  width: 96px; height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.cyber-radar svg { width: 30px; height: 30px; position: relative; z-index: 2; }
.radar-ring {
  position: absolute;
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 50%;
}
.radar-ring:nth-child(1) { inset: 0; }
.radar-ring:nth-child(2) { inset: 18px; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(74,158,255,0.35), transparent 70deg);
  animation: radar-spin 3.2s linear infinite;
}
@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

/* --- Visual: B2B pipeline --- */
.b2b-pipeline {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}
.pipe-node {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.pipe-node-end { background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.pipe-line {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--border-hover);
  overflow: visible;
}
.pipe-flow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pipe-move 2.4s ease-in-out infinite;
}
@keyframes pipe-move {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
.b2b-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
}
.b2b-labels span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- CTA animated gradient border --- */
@property --cta-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.cta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle), transparent 0%, rgba(74,158,255,0.8) 12%, rgba(124,107,255,0.8) 22%, transparent 34%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: cta-rotate 5s linear infinite;
  pointer-events: none;
}
@keyframes cta-rotate {
  to { --cta-angle: 360deg; }
}

/* --- Responsive: bento --- */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-span-2, .bento-span-4, .bento-span-6 { grid-column: span 2; }
  .bento-wide { flex-direction: column; align-items: flex-start; gap: 24px; }
  .bento-wide .bento-visual { width: 100%; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; gap: 14px; }
  .bento-span-2, .bento-span-4, .bento-span-6 { grid-column: span 1; }
  .bento-card { padding: 22px; }
  .bento-visual { min-height: 100px; margin-bottom: 16px; }
  .marquee-track { gap: 36px; animation-duration: 24s; }
  .marquee-item { font-size: 0.85rem; }
}

/* --- Reduced motion: kill decorative animation --- */
@media (prefers-reduced-motion: reduce) {
  .rotate-word,
  .hero-float,
  .btn-shine::after,
  .marquee-track,
  .saas-bars span,
  .micro-pulse > span,
  .code-caret,
  .ai-dot,
  .radar-sweep,
  .pipe-flow,
  .cta-glow::after {
    animation: none !important;
    transition: none !important;
  }
  .micro-pulse > span { opacity: 0.4; transform: scale(1); }
  .pipe-flow { left: 40%; opacity: 1; }
}

/* Hero headline: slightly tighter cap so the two lines fit the container */
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

/* ============================================================
   REACTIVE LAYER — scroll progress, cursor glow, magnetic
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 1200;
  pointer-events: none;
}

/* Cursor-following ambient glow */
.cursor-glow {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,255,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  will-change: transform;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* Magnetic buttons: smooth return to rest */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow var(--transition);
  will-change: transform;
}

/* Bento tilt: quicker transform response for smooth mouse tracking */
.bento-card { will-change: transform; }

/* ============================================================
   CREATIVE COLOR SYSTEM — multi-color pop across the page
   ============================================================ */

:root {
  --pink:   #FF5CA8;
  --cyan:   #2FD4E6;
  --violet: #7C6BFF;
  --amber:  #FFB84D;
  --green:  #4ADE80;
  --gradient-hot: linear-gradient(90deg, #4A9EFF 0%, #7C6BFF 35%, #FF5CA8 70%, #FFB84D 100%);
}

/* Brand logo picks up the full creative gradient (nav + footer) */
.nav-logo {
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Primary buttons: slow-flowing multi-color gradient */
.btn-primary {
  background: linear-gradient(90deg, #4A9EFF, #7C6BFF, #FF5CA8, #7C6BFF, #4A9EFF);
  background-size: 300% 100%;
  animation: gradient-flow 8s linear infinite;
}
@keyframes gradient-flow {
  to { background-position: 300% 0; }
}

/* Hero rotating word: animated multi-color gradient text */
.rotate-word {
  background: linear-gradient(90deg, #4A9EFF, #7C6BFF, #FF5CA8, #FFB84D, #2FD4E6, #4A9EFF);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-flow 7s linear infinite;
}

/* Hero aurora: two extra colorful glows + slow hue drift on all */
.hero-glow-3 {
  position: absolute;
  top: 52%;
  left: -8%;
  width: 480px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(255,92,168,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-4 {
  position: absolute;
  top: 8%;
  right: 14%;
  width: 400px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(47,212,230,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-glow   { animation: hue-drift 14s ease-in-out infinite alternate; }
.hero-glow-2 { animation: hue-drift 18s ease-in-out infinite alternate-reverse; }
.hero-glow-3 { animation: hue-drift 16s ease-in-out infinite alternate; }
.hero-glow-4 { animation: hue-drift 12s ease-in-out infinite alternate-reverse; }
@keyframes hue-drift {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(60deg); }
}

/* Floating chips: each discipline gets its own color */
.hero-float-2 svg { color: var(--pink); }
.hero-float-2 { border-color: rgba(255,92,168,0.3); }
.hero-float-3 svg { color: var(--cyan); }
.hero-float-3 { border-color: rgba(47,212,230,0.3); }
.hero-float-4 svg { color: var(--green); }
.hero-float-4 { border-color: rgba(74,222,128,0.3); }

/* Hero stats: one gradient per stat */
.hero-stat:nth-child(1) strong { background: linear-gradient(135deg, #4A9EFF, #7C6BFF); -webkit-background-clip: text; background-clip: text; }
.hero-stat:nth-child(2) strong { background: linear-gradient(135deg, #FF5CA8, #FF8A5C); -webkit-background-clip: text; background-clip: text; }
.hero-stat:nth-child(3) strong { background: linear-gradient(135deg, #2FD4E6, #4A9EFF); -webkit-background-clip: text; background-clip: text; }
.hero-stat:nth-child(4) strong { background: linear-gradient(135deg, #FFB84D, #FF5CA8); -webkit-background-clip: text; background-clip: text; }

/* Section tag color variants */
.section-tag.tag-pink   { color: var(--pink);   background: rgba(255,92,168,0.1);  border-color: rgba(255,92,168,0.22); }
.section-tag.tag-cyan   { color: var(--cyan);   background: rgba(47,212,230,0.1);  border-color: rgba(47,212,230,0.22); }
.section-tag.tag-amber  { color: var(--amber);  background: rgba(255,184,77,0.1);  border-color: rgba(255,184,77,0.22); }
.section-tag.tag-violet { color: var(--violet); background: rgba(124,107,255,0.12); border-color: rgba(124,107,255,0.25); }

/* Marquee: hover colors cycle through the palette */
.marquee-item:nth-child(4n+2):hover { color: var(--pink); }
.marquee-item:nth-child(4n+3):hover { color: var(--cyan); }
.marquee-item:nth-child(4n):hover   { color: var(--amber); }

/* ── Bento accent system ── */
.bento-card {
  --ac:        var(--accent);
  --ac-soft:   rgba(74,158,255,0.09);
  --ac-border: rgba(74,158,255,0.35);
}
.accent-pink   { --ac: var(--pink);   --ac-soft: rgba(255,92,168,0.09);  --ac-border: rgba(255,92,168,0.4); }
.accent-cyan   { --ac: var(--cyan);   --ac-soft: rgba(47,212,230,0.09);  --ac-border: rgba(47,212,230,0.4); }
.accent-violet { --ac: var(--violet); --ac-soft: rgba(124,107,255,0.11); --ac-border: rgba(124,107,255,0.45); }
.accent-green  { --ac: var(--green);  --ac-soft: rgba(74,222,128,0.09);  --ac-border: rgba(74,222,128,0.4); }
.accent-amber  { --ac: var(--amber);  --ac-soft: rgba(255,184,77,0.09);  --ac-border: rgba(255,184,77,0.4); }

.bento-card:hover { border-color: var(--ac-border); }
.spotlight::before {
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), var(--ac-soft), transparent 45%);
}
.bento-tags span {
  background: var(--ac-soft);
  border-color: var(--ac-border);
  color: var(--ac);
}

/* Gradient hairline sweeps in along the top on hover */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }

/* Recolor the card visuals to match their accents */
.accent-pink .micro-pulse { color: var(--pink); }
.accent-pink .micro-pulse > span { border-color: rgba(255,92,168,0.45); }

.accent-cyan .code-caret { background: var(--cyan); }
.accent-cyan .code-line { background: rgba(47,212,230,0.35); }
.accent-cyan .code-line[style*="--c:2"] { background: rgba(124,107,255,0.4); }
.accent-cyan .code-line[style*="--c:3"] { background: rgba(255,92,168,0.35); }

.accent-violet .ai-bubble-user { background: linear-gradient(135deg, var(--violet), var(--pink)); }

.accent-green .cyber-radar { color: var(--green); }
.accent-green .radar-ring { border-color: rgba(74,222,128,0.3); }
.accent-green .radar-sweep { background: conic-gradient(from 0deg, rgba(74,222,128,0.4), transparent 70deg); }

.accent-amber .pipe-node { border-color: var(--amber); }
.accent-amber .pipe-node-end { background: var(--amber); box-shadow: 0 0 16px rgba(255,184,77,0.45); }
.accent-amber .pipe-flow { background: var(--amber); box-shadow: 0 0 10px rgba(255,184,77,0.55); }

/* ── Why cards: colorful icons ── */
.why-card:nth-child(2) .why-icon { color: var(--pink); }
.why-card:nth-child(3) .why-icon { color: var(--cyan); }
.why-card:nth-child(4) .why-icon { color: var(--violet); }
.why-card:nth-child(5) .why-icon { color: var(--green); }
.why-card:nth-child(6) .why-icon { color: var(--amber); }

/* ── Process steps: each number its own color ── */
.process-step:nth-child(2) .step-num { color: var(--pink); }
.process-step:nth-child(2):hover .step-num { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 0 24px rgba(255,92,168,0.35); }
.process-step:nth-child(3) .step-num { color: var(--cyan); }
.process-step:nth-child(3):hover .step-num { background: var(--cyan); border-color: var(--cyan); color: #0A0C0F; box-shadow: 0 0 24px rgba(47,212,230,0.35); }
.process-step:nth-child(4) .step-num { color: var(--amber); }
.process-step:nth-child(4):hover .step-num { background: var(--amber); border-color: var(--amber); color: #0A0C0F; box-shadow: 0 0 24px rgba(255,184,77,0.35); }

/* ── CTA: richer multi-color border + tinted card ── */
.cta-card {
  background: linear-gradient(135deg, rgba(74,158,255,0.08) 0%, rgba(124,107,255,0.07) 45%, rgba(255,92,168,0.07) 100%);
}
.cta-glow::after {
  background: conic-gradient(from var(--cta-angle),
    transparent 0%,
    rgba(74,158,255,0.9) 10%,
    rgba(255,92,168,0.9) 20%,
    rgba(255,184,77,0.9) 28%,
    transparent 40%);
}

/* Cursor glow: subtle two-tone tint */
.cursor-glow {
  background: radial-gradient(circle, rgba(124,107,255,0.06) 0%, rgba(255,92,168,0.03) 35%, transparent 60%);
}

/* Reduced motion: freeze the new gradient/hue animation */
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .rotate-word,
  .hero-glow, .hero-glow-2, .hero-glow-3, .hero-glow-4 {
    animation: none !important;
  }
}

/* ============================================================
   SITE-WIDE CREATIVE ROLLOUT — inner pages
   ============================================================ */

/* Green section tag (completes the set) */
.section-tag.tag-green { color: var(--green); background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.22); }

/* Spotlight works on any card, not just bento */
.spotlight {
  position: relative;
  overflow: hidden;
  --ac:        var(--accent);
  --ac-soft:   rgba(74,158,255,0.09);
  --ac-border: rgba(74,158,255,0.35);
}

/* Inner page heroes: aurora treatment */
.page-hero::before { animation: hue-drift 14s ease-in-out infinite alternate; }
.page-hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 8%;
  width: 420px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(255,92,168,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: hue-drift 18s ease-in-out infinite alternate-reverse;
}

/* About: value card icons cycle the palette */
.value-card:nth-child(2) .icon { color: var(--pink); }
.value-card:nth-child(3) .icon { color: var(--cyan); }
.value-card:nth-child(4) .icon { color: var(--violet); }
.value-card:nth-child(5) .icon { color: var(--green); }
.value-card:nth-child(6) .icon { color: var(--amber); }

/* About: team avatars + role labels get individual gradients */
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg, var(--pink), var(--amber)); }
.team-card:nth-child(2) span { color: var(--pink); }
.team-card:nth-child(3) .team-avatar { background: linear-gradient(135deg, var(--cyan), var(--accent)); }
.team-card:nth-child(3) span { color: var(--cyan); }
.team-card:nth-child(4) .team-avatar { background: linear-gradient(135deg, var(--amber), var(--pink)); }
.team-card:nth-child(4) span { color: var(--amber); }

/* About: Kyiv fact icons */
.kyiv-fact:nth-child(2) .icon { color: var(--pink); }
.kyiv-fact:nth-child(3) .icon { color: var(--cyan); }

/* Services: each service block owns a color (checkmarks + price) */
.service-detail:nth-child(2) .service-feature::before,
.service-detail:nth-child(2) .pricing-price { color: var(--pink); }
.service-detail:nth-child(3) .service-feature::before,
.service-detail:nth-child(3) .pricing-price { color: var(--cyan); }
.service-detail:nth-child(4) .service-feature::before,
.service-detail:nth-child(4) .pricing-price { color: var(--violet); }
.service-detail:nth-child(5) .service-feature::before,
.service-detail:nth-child(5) .pricing-price { color: var(--amber); }
.service-detail:nth-child(6) .service-feature::before,
.service-detail:nth-child(6) .pricing-price { color: var(--green); }

/* Portfolio: tech tags cycle colors */
.tech-tags .tech-tag:nth-child(3n+2) {
  background: rgba(255,92,168,0.08);
  border-color: rgba(255,92,168,0.18);
  color: var(--pink);
}
.tech-tags .tech-tag:nth-child(3n) {
  background: rgba(47,212,230,0.08);
  border-color: rgba(47,212,230,0.18);
  color: var(--cyan);
}

/* Portfolio: filter buttons tint on hover */
.filter-btn:nth-child(2):hover { border-color: rgba(255,92,168,0.5); color: var(--pink); }
.filter-btn:nth-child(3):hover { border-color: rgba(47,212,230,0.5); color: var(--cyan); }
.filter-btn:nth-child(4):hover { border-color: rgba(255,184,77,0.5); color: var(--amber); }

/* Contact: item icons + social hovers cycle */
.contact-item:nth-child(2) .icon { color: var(--pink); }
.contact-item:nth-child(3) .icon { color: var(--cyan); }
.contact-item:nth-child(4) .icon { color: var(--amber); }
.social-link:nth-child(2):hover { border-color: var(--cyan); color: var(--cyan); }
.social-link:nth-child(3):hover { border-color: var(--pink); color: var(--pink); }
.social-link:nth-child(4):hover { border-color: var(--amber); color: var(--amber); }

/* Reduced motion: freeze inner-page aurora */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after { animation: none !important; }
}
