/* ========================================================================
   PrimeX site — премиальный минимализм, тёмно-синий + голубой акцент
   ======================================================================== */

:root {
  /* Colors */
  --bg: #0A0F1E;
  --bg-deep: #050912;
  --bg-elevated: #0F1729;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(56, 189, 248, 0.20);
  --accent: #38BDF8;
  --accent-hover: #7DD3FC;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --text: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Type */
  --font-sans: 'Inter', 'Montserrat', -apple-system, sans-serif;
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max: 1280px;
  --gutter: 24px;
  --gutter-lg: 48px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 8px;

  /* Ease */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==================== TYPOGRAPHY ==================== */

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.body-lg {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.body-sm {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==================== LAYOUT ==================== */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--gutter-lg); }
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-lg { padding: 128px 0; }

@media (min-width: 768px) {
  .section { padding: 140px 0; }
  .section-lg { padding: 180px 0; }
}

.section-header {
  max-width: 720px;
  margin-bottom: 72px;
}

.section-header .kicker {
  margin-bottom: 16px;
  display: inline-block;
}

.section-header h2 {
  margin-bottom: 20px;
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--text);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

.btn-lg {
  padding: 20px 36px;
  font-size: 16px;
}

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out);
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .nav-logo-img { height: 26px; }
}

/* Legacy X emblem — оставляем для founder/prev context */
.x-emblem {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.nav-links {
  display: none;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-cta-wrap { margin-left: 0; }
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.lang-btn.active {
  background: var(--accent);
  color: var(--bg-deep);
}
.lang-btn:hover:not(.active) {
  color: var(--text);
}

/* Hamburger */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s var(--ease-out);
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  padding: 40px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 16px 20px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

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

.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated dot grid */
.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(56, 189, 248, 0.35) 1px, transparent 1.5px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 20%, transparent 75%);
  opacity: 0.5;
  animation: dotPulse 6s ease-in-out infinite;
}

/* Corner glow */
.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 60%);
  top: -200px;
  right: -200px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin-bottom: 32px;
  color: var(--text-secondary);
  max-width: 800px;
}

.hero-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-trust::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--text-dim);
}

/* ==================== PROBLEMS ==================== */

.problems-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .problems-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.problem-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.problem-card:hover::before { transform: scaleX(1); }

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.problem-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-card li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.problem-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ==================== WHY ==================== */

.why-layout {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .why-layout {
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }
}

.why-intro h2 {
  margin-bottom: 24px;
}

.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}
.why-card:hover {
  border-color: var(--border-strong);
  background: rgba(56, 189, 248, 0.03);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.why-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ==================== METHOD ==================== */

.method-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-n {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  opacity: 0.9;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ==================== TEAM ==================== */

.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s var(--ease-out);
}
.team-card:hover {
  border-color: var(--border-strong);
}

.team-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.team-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ==================== FOUNDER ==================== */

.founder-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .founder-layout {
    grid-template-columns: 400px 1fr;
    gap: 64px;
  }
}

.founder-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 41, 1));
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}

.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--accent) 2px, transparent 2px) 8px 8px / calc(100% - 16px) 2px no-repeat,
    linear-gradient(90deg, var(--accent) 2px, transparent 2px) 8px calc(100% - 8px) / calc(100% - 16px) 2px no-repeat,
    linear-gradient(0deg, var(--accent) 2px, transparent 2px) 8px 8px / 2px calc(100% - 16px) no-repeat,
    linear-gradient(0deg, var(--accent) 2px, transparent 2px) calc(100% - 8px) 8px / 2px calc(100% - 16px) no-repeat;
  opacity: 0;
}
.founder-photo::after {
  /* Frame corners */
  content: '';
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(to right, var(--accent) 20px, transparent 20px) 0 0 / 100% 2px no-repeat,
    linear-gradient(to left, var(--accent) 20px, transparent 20px) 0 0 / 100% 2px no-repeat,
    linear-gradient(to right, var(--accent) 20px, transparent 20px) 0 100% / 100% 2px no-repeat,
    linear-gradient(to left, var(--accent) 20px, transparent 20px) 0 100% / 100% 2px no-repeat,
    linear-gradient(to bottom, var(--accent) 20px, transparent 20px) 0 0 / 2px 100% no-repeat,
    linear-gradient(to top, var(--accent) 20px, transparent 20px) 0 100% / 2px 100% no-repeat,
    linear-gradient(to bottom, var(--accent) 20px, transparent 20px) 100% 0 / 2px 100% no-repeat,
    linear-gradient(to top, var(--accent) 20px, transparent 20px) 100% 100% / 2px 100% no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.founder-photo-inner {
  position: absolute;
  inset: 24px 24px 96px 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a2440;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

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

.founder-id-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(5, 9, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.founder-id-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.founder-id-row {
  display: flex;
  gap: 20px;
  margin-top: 4px;
  color: var(--text);
}
.founder-id-row span:first-child {
  color: var(--text-dim);
}

.founder-content .kicker {
  margin-bottom: 20px;
  display: inline-block;
}

.founder-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.founder-name .accent { color: var(--accent); }

.founder-role {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
}
.founder-role strong { color: var(--text); font-weight: 600; }

.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  padding: 32px 32px 32px 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  margin-bottom: 24px;
}
.founder-quote::before {
  content: '"';
  position: absolute;
  top: 8px; left: 20px;
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
}
.founder-quote .accent { color: var(--accent); }

.founder-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.founder-body:last-of-type { margin-bottom: 32px; }
.founder-body strong { color: var(--text); font-weight: 600; }

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.founder-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.founder-tag::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==================== CASES ==================== */

.stats-strip {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}
.stat-card:hover {
  border-color: var(--border-strong);
  background: rgba(56, 189, 248, 0.03);
}

.stat-n {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ==================== FEATURED CASE ==================== */

.case-featured {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.case-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.case-featured-header {
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .case-featured-header { padding: 28px 24px 24px; }
}

.case-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}
.case-featured-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.case-featured-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.case-featured-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 460px;
}

.case-featured-period {
  text-align: right;
  min-width: 140px;
}
@media (max-width: 640px) {
  .case-featured-period { text-align: left; }
}
.case-featured-period-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.case-featured-period-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.case-featured-duration {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.case-featured-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
@media (min-width: 900px) {
  .case-featured-metrics { grid-template-columns: repeat(4, 1fr); }
}

.case-metric {
  background: var(--bg-elevated);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.3s var(--ease-out);
}
.case-metric:hover {
  background: rgba(56, 189, 248, 0.05);
}
.case-metric-n {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.case-metric-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.case-featured-body {
  padding: 40px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .case-featured-body {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
}
@media (max-width: 640px) {
  .case-featured-body { padding: 28px 24px; }
}

.case-summary {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.case-positioning {
  padding: 20px 24px;
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.case-positioning-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 10px;
}
.case-positioning-quote {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.005em;
}

.case-work-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.case-work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-work-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.case-work-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.case-more {
  margin-top: 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.case-more-text {
  flex: 1;
  min-width: 240px;
}
.case-more-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.case-more-desc {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== CLIENTS ==================== */

.clients-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(6, 1fr); } }

.client-cell {
  background: var(--bg);
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
}
.client-cell:hover {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.04);
}

/* ==================== PACKAGES ==================== */

.packages-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pkg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.pkg:hover { border-color: var(--border-strong); }

.pkg-highlight {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(56, 189, 248, 0.02));
  border-color: var(--accent);
  transform: scale(1.02);
}
@media (max-width: 899px) {
  .pkg-highlight { transform: none; }
}
.pkg-highlight:hover { transform: scale(1.02) translateY(-2px); }

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.pkg-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.pkg-highlight .pkg-name { color: var(--accent); }

.pkg-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.pkg-price {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.pkg-features li {
  padding-left: 26px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.pkg-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background:
    linear-gradient(45deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%);
  background-size: 8px 2px;
  background-position: center;
  background-repeat: no-repeat;
}

.pkg .btn { width: 100%; justify-content: center; }

/* ==================== FAQ ==================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--accent); background: rgba(56, 189, 248, 0.03); }

.faq-q {
  width: 100%;
  padding: 24px 28px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  line-height: 1.35;
}

.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-item.open .faq-a-wrap {
  max-height: 600px;
}
.faq-a {
  padding: 0 28px 28px 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.cta-final {
  padding: 96px 0;
}

.cta-final-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(56, 189, 248, 0.10), transparent 70%);
  pointer-events: none;
}
.cta-final-card > * { position: relative; }

.cta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 32px;
}
.cta-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 2s infinite;
}

.cta-final-card h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.cta-final-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 40px;
}

.cta-final-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==================== CONTACT ==================== */

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 48px auto 0;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease-out);
}
.contact-card:hover {
  border-color: var(--border-strong);
  background: rgba(56, 189, 248, 0.03);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.contact-value {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

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

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

img.footer-logo-img,
.footer .footer-logo-img,
.footer-inner .footer-logo-img {
  height: 22px !important;
  width: auto !important;
  max-width: 130px;
  display: block;
  opacity: 0.85;
}

/* ==================== MODAL ==================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 9, 18, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: slideUp 0.3s var(--ease-out);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
  font-size: 20px;
}
.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.modal-field {
  margin-bottom: 18px;
}

.modal-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s var(--ease-out);
  outline: none;
}
.modal-field textarea {
  min-height: 90px;
  resize: vertical;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.03);
}

.modal-field.error input,
.modal-field.error textarea {
  border-color: #ef4444;
}
.modal-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
}

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.modal-privacy {
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}
.modal-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 36px;
}
.modal-success h3 { text-align: center; margin-bottom: 12px; }
.modal-success p { color: var(--text-muted); text-align: center; margin-bottom: 24px; }

/* ==================== ANIMATIONS (SCROLL REVEAL) ==================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  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; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
