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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family, 'Montserrat'), system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Custom Properties ===== */
:root {
  /* Colors */
  --bg-deep: #0c1a20;
  --bg-slate: #14282f;
  --bg-card: #0f2128;
  --text-primary: #f0fdfa;
  --text-secondary: #67e8f9;
  --text-muted: #22d3ee;
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --border: #155e75;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Typography */
  --font-xs: 0.75rem;
  --font-sm: 0.8125rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;
  --font-5xl: 3.5rem;
  --font-6xl: 5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-label {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--font-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-xl);
  max-width: 700px;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #60a5fa;
  transform: translateY(-1px);
}

/* ===== Navigation ===== */
.page-content {
  position: relative;
  z-index: 1;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.nav-logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.nav-logo-img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links .btn-outline {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  padding: 6px 16px;
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.nav-links .btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* === NAV DROPDOWN (Desktop) === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 500;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--text-primary);
}

.nav-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: rgba(20, 24, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Невидимий "bridge" щоб меню не закривалось при русі миші */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown-menu li {
  list-style: none;
  width: 100%;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: #ffffff;
  font-size: var(--font-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #ffffff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

/* ===== Code Background (global) ===== */
.code-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.code-bg-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
  color: #4ade80;
  padding: 0;
  text-align: right;
  animation: scrollCode 90s linear infinite;
}

@keyframes scrollCode {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* GPU-acceleration — переносить рендер відео на окремий шар */
  transform: translateZ(0);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 22, 40, 0.25), rgba(10, 22, 40, 0.45));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-sectors {
  color: var(--accent);
  font-size: 1.0625rem;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: var(--font-6xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 800px;
  background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-xl);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

/* ===== Stats Bar ===== */
.stats {
  display: flex;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.stat-value {
  color: var(--accent);
  font-size: var(--font-2xl);
  font-weight: 700;
}

.stat-label {
  color: var(--text-muted);
  font-size: var(--font-xs);
  margin-top: 4px;
}

/* ===== Sector Cards ===== */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sector-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sector-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  color: inherit;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.1);
}

.sector-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
}

.sector-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sector-card-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sector-card h3 {
  font-size: var(--font-base);
  font-weight: 600;
  margin-bottom: 8px;
}

.sector-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.5;
}

/* ===== Case Study Cards ===== */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.2s;
}

a.case-study-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.case-study-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.1);
}

a.case-study-card:hover {
  color: inherit;
}

.case-study-image {
  height: 140px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-study-image svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.case-study-image img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.case-study-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.tag-defence { background: #1e3a5f; color: #60a5fa; }
.tag-medical { background: #14532d; color: #4ade80; }
.tag-gaming { background: #713f12; color: #fbbf24; }
.tag-ai { background: #3b0764; color: #c084fc; }
.tag-iot { background: #44403c; color: #a8a29e; }

.case-study-card h3 {
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: 8px;
}

.case-study-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.5;
  margin-bottom: 16px;
}

.case-study-metric {
  color: var(--accent);
  font-size: var(--font-sm);
  font-weight: 600;
}

/* ===== Game Showcase Cards ===== */
.game-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .game-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.1);
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
}

.game-card-media img,
.game-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-card-body h3 {
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: 10px;
}

.game-card-body p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.game-card-meta {
  color: var(--accent);
  font-size: var(--font-sm);
  font-weight: 600;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--font-xs);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

/* ===== Tech Strip ===== */
.tech-strip {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-item {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.tech-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(rgba(10, 22, 40, 0.85), rgba(10, 22, 40, 0.9)),
              url('../assets/images/cta-bg.jpg') center/cover no-repeat;
}

.cta-section h2 {
  font-size: var(--font-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: var(--font-lg);
}

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

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

.footer-grid > div:first-child p {
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 320px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-top: 12px;
}

.footer h4 {
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: var(--font-xs);
}

/* ===== Sector Page ===== */
.sector-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(rgba(10, 22, 40, 0.8), rgba(10, 22, 40, 0.9)),
              var(--sector-bg) center/cover no-repeat;
}

/* Lighter overlay variant — used on Case Studies */
.sector-hero.sector-hero-light {
  background: linear-gradient(rgba(10, 22, 40, 0.5), rgba(10, 22, 40, 0.7)),
              var(--sector-bg) center/cover no-repeat;
}

/* Video variant — background is video element, not CSS background */
.sector-hero.sector-hero-video {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.sector-hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}

.sector-hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 22, 40, 0.5), rgba(10, 22, 40, 0.7));
  z-index: 0;
}

.sector-hero.sector-hero-video .container {
  position: relative;
  z-index: 1;
}

.sector-hero h1 {
  font-size: var(--font-4xl);
  font-weight: 700;
  margin-bottom: 16px;
}

.sector-hero p {
  color: var(--text-secondary);
  font-size: var(--font-lg);
  max-width: 600px;
  margin-bottom: 24px;
}

.sector-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sector-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: var(--font-xs);
}

/* Capabilities */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.capabilities-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.capability {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.capability:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.capability-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.capability-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.capability-icon svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.capability h3 {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.capability p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.65;
}

/* ===== Why Us Section ===== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.why-card h3 {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.why-card p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.6;
}

/* Sector tech stack */
.tech-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

/* ===== About Page ===== */
.about-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-intro h2 {
  font-size: var(--font-3xl);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-intro p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.about-stats .stat {
  margin-bottom: 20px;
}

.about-stats .stat:last-child {
  margin-bottom: 0;
}

.team-section h2 {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 24px;
}

.founder-card {
  display: flex;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  align-items: start;
}

.founder-photo {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-slate) 0%, #1e3a5f 100%);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-xs);
  overflow: hidden;
}

.founder-photo picture,
.founder-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.founder-photo svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
}

.founder-info h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  margin-bottom: 4px;
}

.founder-info .role {
  color: var(--accent);
  font-size: var(--font-sm);
  margin-bottom: 12px;
}

.founder-info p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form label {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--font-base);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.contact-info-block {
  margin-bottom: 28px;
}

.contact-info-block h3 {
  font-size: var(--font-base);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-info-block p,
.contact-info-block a {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
}

/* ===== Blog ===== */
.blog-list {
  display: grid;
  gap: 24px;
}

.blog-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--accent);
  color: inherit;
}

.blog-card-image {
  height: 160px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.blog-hero-image {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-bottom: 32px;
  background-size: cover;
  background-position: center;
}

.blog-card-image svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.blog-card h3 {
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.5;
}

.blog-card .blog-meta {
  color: var(--text-muted);
  font-size: var(--font-xs);
  margin-top: 8px;
}

/* ===== Policy Pages ===== */
.policy-content {
  max-width: 720px;
  padding: 140px 0 80px;
}

.policy-content h1 {
  font-size: var(--font-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.policy-content h2 {
  font-size: var(--font-2xl);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy-content p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.7;
  margin-bottom: 16px;
}

.policy-content ul {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content li {
  margin-bottom: 8px;
  font-size: var(--font-base);
  line-height: 1.6;
}

/* ===== OSS Section ===== */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.oss-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
}

.oss-card:hover {
  border-color: var(--accent);
  color: inherit;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.04);
}

.oss-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.oss-github-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.oss-card:hover .oss-github-icon {
  color: var(--text-primary);
}

.oss-card h3 {
  font-size: var(--font-lg);
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
  min-width: 0;
}

.oss-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
  /* Обрізаємо опис на 3 рядки з трьома крапками */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oss-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.oss-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.oss-view-btn::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.oss-card:hover .oss-view-btn {
  gap: 10px;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.oss-stats {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.oss-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: var(--font-xs);
  font-weight: 500;
}

.oss-stat svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.oss-stat-num {
  min-width: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .oss-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px 0;
    --font-4xl: 2rem;
    --font-3xl: 1.5rem;
    --font-5xl: 2.25rem;
    --font-6xl: 2.75rem;
    --font-xl: 1.0625rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    right: 16px;
    left: auto;
    bottom: auto;
    width: auto;
    min-width: 200px;
    max-width: calc(100vw - 32px);
    background: rgba(20, 24, 38, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
    font-size: var(--font-sm);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
  }

  .nav-links .btn-outline {
    background: var(--accent);
    color: #ffffff !important;
    border: none;
    margin-top: 4px;
    text-align: center;
    padding: 8px 14px;
    font-size: var(--font-sm);
  }

  .nav-links .btn-outline:hover {
    background: var(--accent-hover);
    color: #ffffff !important;
  }

  /* === Mobile dropdown === */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 14px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown.open .nav-dropdown-toggle {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
  }

  /* Mobile: hover-розгортання відключено, тільки клік */
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    pointer-events: none;
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: auto;
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 4px 0 4px 12px;
    margin-top: 2px;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    font-size: var(--font-sm);
    padding: 8px 12px;
  }

  /* Bridge непотрібен на mobile */
  .nav-dropdown::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 48px;
  }

  .stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat {
    min-width: 120px;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .oss-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .tech-strip {
    gap: 16px;
  }
}

/* ===== Theme Picker Widget (landing only) ===== */
.theme-picker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: inherit;
}

.theme-picker-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, border-color 0.2s;
}

.theme-picker-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.theme-picker-btn svg {
  width: 22px;
  height: 22px;
}

.theme-picker-menu {
  position: absolute;
  bottom: 64px;
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.theme-picker.open .theme-picker-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-picker-title {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px 10px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  transition: background 0.15s, color 0.15s;
}

.theme-option:hover {
  background: var(--bg-slate);
  color: var(--text-primary);
}

.theme-option.active {
  color: var(--text-primary);
  background: var(--bg-slate);
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-check {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
}

.theme-option.active .theme-check {
  opacity: 1;
}

/* ===== Neon Glow Effects (active only when --neon-glow is defined) ===== */
:root {
  --neon-glow: none;
  --neon-text-glow: none;
}

/* Неонова кнопка-акцент (Contact, View Capabilities тощо) */
.btn-primary {
  box-shadow: var(--neon-glow);
}

/* Заголовки отримують м'яке світіння на неонових темах.
   На звичайних темах --neon-text-glow = none, тому нічого не видно. */
.hero h1,
.section-title {
  text-shadow: var(--neon-text-glow);
}

/* Активний пункт меню світиться (субтильно) */
.nav-links a.active {
  text-shadow: var(--neon-text-glow);
}

/* На неонових темах — додаємо більше світіння */
body {
  transition: background-color 0.3s, color 0.3s;
}

/* За замовчуванням заголовки мають колір основного тексту.
   Неонові теми переоприділяють --heading-color на акцентний. */
:root {
  --heading-color: var(--text-primary);
}

.hero h1,
.section-title,
.policy-content h1,
.policy-content h2 {
  color: var(--heading-color);
}

/* ===== Tech Marquee (sliding infinite strip) ===== */
.tech-marquee {
  margin-top: 32px;
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  /* Плавні "розмиті" краї — елементи не з'являються різко */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: tech-scroll 35s linear infinite;
}

.tech-marquee-group {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  align-items: center;
  flex-shrink: 0;
}

/* Пауза при hover, щоб користувач міг роздивитись */
.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}

/* Кожен "чіп" — іконка + назва */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.tech-chip img {
  width: 30px;
  height: 30px;
  /* Іконки Simple Icons монохромні чорні — робимо білими через filter */
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.tech-chip svg {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.tech-chip:hover img,
.tech-chip:hover svg {
  opacity: 1;
}

/* Анімація безкінечного прокручування */
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* На мобільному стрічка трохи швидша і компактніша */
@media (max-width: 768px) {
  .tech-marquee-track {
    animation-duration: 28s;
  }
  .tech-marquee-group {
    gap: 28px;
    padding-right: 28px;
  }
  .tech-chip {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .tech-chip img {
    width: 22px;
    height: 22px;
  }
  .tech-chip svg {
    width: 22px;
    height: 22px;
  }
}

/* Для користувачів, що вимкнули анімації в системі */
@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none;
  }
}

/* ===== Font Picker Widget (landing only, above theme picker) ===== */
.font-picker {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 1000;
  font-family: inherit;
}

.font-picker-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, border-color 0.2s;
  font-size: 20px;
  font-weight: 700;
  /* Літера "Aa" всередині кнопки */
}

.font-picker-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.font-picker-menu {
  position: absolute;
  bottom: 64px;
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.font-picker.open .font-picker-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.font-picker-title {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px 10px;
}

.font-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  transition: background 0.15s, color 0.15s;
}

.font-option:hover {
  background: var(--bg-slate);
  color: var(--text-primary);
}

.font-option.active {
  color: var(--text-primary);
  background: var(--bg-slate);
}

.font-option-name {
  flex: 1;
  font-weight: 500;
}

.font-option-sample {
  color: var(--text-muted);
  font-size: 12px;
}

.font-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
}

.font-option.active .font-check {
  opacity: 1;
}

/* Preview-шрифти — щоб у меню кожна опція показувала СВОЇМ шрифтом */
.font-option[data-font="inter"] {
  font-family: 'Inter', system-ui, sans-serif;
}

.font-option[data-font="montserrat"] {
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.team-member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.team-member:hover .team-avatar {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.team-avatar picture,
.team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-avatar-placeholder {
  background: linear-gradient(135deg, var(--bg-slate) 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
}

.team-name {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

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

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

/* ===== Our Journey + Timeline ===== */
.journey-intro {
  max-width: 760px;
  margin-bottom: 56px;
}

.journey-intro p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.7;
  margin-bottom: 14px;
}

.journey-intro p:last-child {
  margin-bottom: 0;
}

.journey-intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 16px;
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(139, 92, 246, 0.4) 0%,
    rgba(59, 130, 246, 0.4) 50%,
    rgba(139, 92, 246, 0.15) 100%);
}

.timeline-phase {
  position: relative;
  padding-bottom: 48px;
}

.timeline-phase:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
  z-index: 1;
}

.timeline-marker-highlight {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25),
              0 0 16px rgba(139, 92, 246, 0.4);
}

.timeline-marker-future {
  background: var(--bg-deep);
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: none;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.timeline-content:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-year {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
}

.timeline-title {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.65;
  margin-bottom: 16px;
}

.timeline-content p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tag {
  font-size: var(--font-xs);
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 32px;
  }
  .timeline-line {
    left: 7px;
  }
  .timeline-marker {
    left: -32px;
    width: 14px;
    height: 14px;
  }
  .timeline-content {
    padding: 20px;
  }
  .timeline-title {
    font-size: var(--font-lg);
  }
}

/* ===== Clients Section ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.client-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.client-logo {
  height: 100px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.client-logo-text {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-align: center;
  line-height: 1.2;
}

.client-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.client-card:hover .client-link {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.client-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .client-logo {
    height: 80px;
  }
  .client-logo-text {
    font-size: var(--font-base);
  }
}

/* ===== Pricing Page ===== */

/* Hero */
.pricing-hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12), transparent 60%),
              var(--bg-deep);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 16px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-hero-subtitle {
  font-size: var(--font-xl);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Promo banner */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
  padding: 48px 56px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
}

.promo-banner-content {
  position: relative;
}

.promo-banner-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 100px;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.promo-banner-title {
  font-size: var(--font-4xl);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.15;
}

.promo-banner-desc {
  font-size: var(--font-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 580px;
}

.promo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.promo-banner-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(139, 92, 246, 0.5);
  border-radius: 8px;
  line-height: 1;
}

.promo-banner-code-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.promo-banner-code-value {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  background: none;
  padding: 0;
}

.promo-banner-visual {
  position: relative;
  z-index: 1;
}

.promo-banner-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(139, 92, 246, 0.3));
}

/* Pricing tiers */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-tier {
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pricing-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.pricing-tier-popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(255, 255, 255, 0.02) 50%);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.pricing-tier-popular:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.04) 50%);
}

.pricing-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pricing-tier-icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.pricing-tier-name {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pricing-tier-price {
  font-size: var(--font-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1;
}

.pricing-tier-desc {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.pricing-tier-features li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-tier-features li:last-child {
  border-bottom: none;
}

.pricing-tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 50%;
}

.pricing-tier-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-tier-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* How pricing works */
.pricing-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.pricing-process-step {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.pricing-process-number {
  font-size: var(--font-3xl);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -1px;
}

.pricing-process-step h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.pricing-process-step p {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--font-lg);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 22px;
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.faq-answer code {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  font-weight: 600;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 92, 246, 0.3);
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  text-decoration-color: var(--accent);
}

/* Terms */
.pricing-terms {
  max-width: 860px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pricing-terms h4 {
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-terms p {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.pricing-terms a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 92, 246, 0.3);
  text-underline-offset: 2px;
}

/* Pricing — mobile */
@media (max-width: 1024px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-process {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 32px;
  }
  .promo-banner-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .promo-banner-visual {
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 100px 0 60px;
  }
  .pricing-process {
    grid-template-columns: 1fr;
  }
  .promo-banner-title {
    font-size: var(--font-3xl);
  }
  .faq-question {
    font-size: var(--font-base);
  }
}
