/* ══════════════════════════════════════════
   LexBridge Landing — Ultra-Modern CSS
   ══════════════════════════════════════════ */

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

:root {
  /* brand */
  --navy-900: #0c1f33;
  --navy-800: #132d47;
  --navy-700: #1a3a5c;
  --navy-600: #1e4468;
  --navy-500: #2a5a8c;
  --navy-400: #3b7dbd;
  --navy-300: #5fa0db;
  --navy-200: #8ec3f0;
  --navy-100: #c8e2f9;
  --navy-50:  #eaf3fc;

  /* accent */
  --accent-400: #6c5ce7;
  --accent-500: #5b4cdb;

  --emerald-400: #2dd4a8;
  --emerald-500: #10b98b;
  --amber-400: #f59e0b;
  --violet-400: #8b5cf6;

  /* neutral */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* gradients */
  --grad-brand: linear-gradient(135deg, var(--navy-400), var(--accent-400));
  --grad-hero: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-800) 100%);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  --grad-text: linear-gradient(135deg, var(--navy-300), var(--accent-400), var(--emerald-400));
  --grad-text-light: linear-gradient(135deg, #fff, var(--navy-200), var(--emerald-400));

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.18);
  --shadow-glow: 0 0 40px rgba(91,76,219,.25);

  /* layout */
  --container: 1200px;
  --section-py: clamp(80px, 10vw, 140px);
  --header-h: 72px;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* animation */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow-x: hidden;
}

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

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

/* ── Gradient text ── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: var(--grad-text-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mono { font-family: var(--mono); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: all .3s var(--ease-out);
  white-space: nowrap;
}
.btn--sm { padding: 10px 22px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 17px; border-radius: var(--r-lg); }
.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91,76,219,.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91,76,219,.4);
}
.btn--accent {
  background: var(--grad-brand);
  color: #fff;
}
.btn--accent:hover { transform: translateY(-1px); }
.btn--glow { box-shadow: var(--shadow-glow); }
.btn--glow:hover { box-shadow: 0 0 60px rgba(91,76,219,.35); }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: 16px;
}
.section-label--light { color: var(--navy-200); }
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--gray-900);
}
.section-title--light { color: #fff; }
.section-desc {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.7;
}
.section-desc--light { color: rgba(255,255,255,.65); }
.section-desc--light strong { color: #fff; }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all .4s var(--ease-out);
}
.header--scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
}
.header__logo-img[src=""] { display: none; }
.header__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  transition: color .3s;
}
.header__logo-text span { font-weight: 400; }
.header--scrolled .header__logo-text { color: var(--navy-700); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  border-radius: var(--r-sm);
  transition: all .25s;
}
.header__link:hover { color: #fff; background: rgba(255,255,255,.1); }
.header--scrolled .header__link { color: var(--gray-600); }
.header--scrolled .header__link:hover { color: var(--navy-700); background: var(--gray-100); }

.header__cta { flex-shrink: 0; }
.header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.header--scrolled .header__burger { color: var(--navy-700); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: var(--accent-400);
  top: -15%; right: -5%;
  animation: orbFloat 20s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--emerald-400);
  bottom: -10%; left: 5%;
  animation: orbFloat 25s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: var(--navy-400);
  top: 40%; left: 40%;
  animation: orbFloat 18s ease-in-out infinite 5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(.95); }
}

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

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 24px 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-400);
  background: rgba(45,212,168,.1);
  border: 1px solid rgba(45,212,168,.2);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__note {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.hero__stats {
  display: flex;
  gap: 32px;
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--navy-200);
  font-size: 14px;
}
.hero__stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}

/* Mockup */
.hero__visual { position: relative; }
.hero__mockup {
  background: var(--gray-900);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(91,76,219,.15);
  border: 1px solid rgba(255,255,255,.08);
}
.hero__mockup-bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.hero__mockup-body {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__mockup-body--placeholder .hero__mockup-placeholder { display: flex; }
.hero__mockup-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.15);
  font-size: 16px;
  font-weight: 500;
}
.hero__mockup-placeholder i { font-size: 64px; }

/* Floating icons */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  animation: floatUp 6s ease-in-out infinite;
}
.hero__float--shield {
  width: 56px; height: 56px; font-size: 22px;
  background: rgba(45,212,168,.2);
  top: 10%; right: -20px;
  animation-delay: 0s;
}
.hero__float--sparkle {
  width: 48px; height: 48px; font-size: 18px;
  background: rgba(108,92,231,.25);
  bottom: 20%; left: -16px;
  animation-delay: 2s;
}
.hero__float--doc {
  width: 44px; height: 44px; font-size: 16px;
  background: rgba(59,125,189,.2);
  bottom: 5%; right: 10%;
  animation-delay: 4s;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.features {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: all .4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .4s;
  border-radius: inherit;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { opacity: .03; }
.feature-card > * { position: relative; z-index: 1; }

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-card__icon--blue { background: var(--navy-50); color: var(--navy-500); }
.feature-card__icon--emerald { background: #ecfdf5; color: var(--emerald-500); }
.feature-card__icon--violet { background: #f5f3ff; color: var(--violet-400); }
.feature-card__icon--amber { background: #fffbeb; color: var(--amber-400); }

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.feature-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.feature-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ══════════════════════════════════════════
   SECURITY
   ══════════════════════════════════════════ */
.security {
  padding: var(--section-py) 0;
  background: var(--navy-900) url('assets/images/pattern-security-bg.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.security__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.security__particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 1.5px, rgba(255,255,255,.08) 100%, transparent 100%);
  background-size: 40px 40px;
}

/* Security banner */
.security__banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 800px;
  margin: 32px auto 0;
  padding: 24px 28px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--r-lg);
  text-align: left;
}
.security__banner i {
  font-size: 22px;
  color: #f87171;
  flex-shrink: 0;
  margin-top: 2px;
}
.security__banner p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}
.security__banner strong {
  color: #fff;
}

.security__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Encryption demo */
.encryption-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  margin-bottom: 24px;
}
.encryption-demo__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
}
.encryption-demo__step--encrypted {
  color: var(--emerald-400);
}
.encryption-demo__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 20px;
  color: var(--navy-200);
}
.encryption-demo__step--encrypted .encryption-demo__icon {
  background: rgba(45,212,168,.1);
  border-color: rgba(45,212,168,.2);
  color: var(--emerald-400);
}
.encryption-demo__arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.2);
  font-size: 12px;
}
.encryption-demo__line {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.15);
}

.security__image {
  border-radius: var(--r-xl);
  max-width: 100%;
}

.security__cards { display: flex; flex-direction: column; gap: 20px; }

.security-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  transition: all .35s var(--ease-out);
}
.security-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
  transform: translateX(4px);
}
.security-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(45,212,168,.1);
  color: var(--emerald-400);
  font-size: 18px;
  flex-shrink: 0;
}
.security-card__icon--red {
  background: rgba(239,68,68,.12);
  color: #f87171;
}
.security-card__content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.security-card__content p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

/* ══════════════════════════════════════════
   AI
   ══════════════════════════════════════════ */
.ai {
  padding: var(--section-py) 0;
  background: #fff;
}
.ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.ai__image {
  border-radius: var(--r-xl);
  max-width: 100%;
  margin-top: 24px;
}

/* Chat mockup */
.ai-chat {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}
.ai-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--navy-800);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ai-chat__header i { color: var(--accent-400); }
.ai-chat__status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-chat__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
}

.ai-chat__body {
  padding: 24px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-chat__msg {
  max-width: 90%;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.6;
}
.ai-chat__msg--user {
  background: var(--navy-700);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-chat__msg--ai {
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 12px;
}
.ai-chat__avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-chat__question { color: var(--navy-600); font-weight: 500; margin-top: 4px; }

.ai-chat__msg--system {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(45,212,168,.08);
  border: 1px solid rgba(45,212,168,.15);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--emerald-500);
  align-self: stretch;
  max-width: 100%;
}
.ai-chat__msg--system strong { color: var(--navy-700); }

/* AI features */
.ai__features { display: flex; flex-direction: column; gap: 32px; }
.ai-feature {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.ai-feature__number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 64px;
}
.ai-feature__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.ai-feature__content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

/* ══════════════════════════════════════════
   COLLABORATION
   ══════════════════════════════════════════ */
.collab {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}
.collab__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collab__image {
  display: block;
  max-width: 600px;
  margin: 48px auto 0;
  border-radius: var(--r-xl);
}

.collab-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all .35s var(--ease-out);
}
.collab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.collab-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.collab-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--navy-50);
  color: var(--navy-500);
  font-size: 18px;
}
.collab-card__header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}
.collab-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.collab-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--r-md);
}
.collab-card__avatar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 16px;
}
.collab-card__avatar--pending { background: #fef3c7; color: var(--amber-400); }
.collab-card__avatar--accepted { background: #d1fae5; color: var(--emerald-500); }
.collab-card__arrow { color: var(--gray-300); font-size: 12px; }

.collab-card__key {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--gray-200);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  color: var(--gray-600);
}
.collab-card__key--wrapped {
  background: #d1fae5;
  color: var(--emerald-500);
}
.collab-card__wrap {
  color: var(--navy-400);
  font-size: 14px;
}

.collab-card__profile {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.collab-card__profile-line {
  height: 10px;
  border-radius: 100px;
  background: var(--gray-200);
}
.collab-card__profile-line--name { width: 60%; background: var(--navy-100); }
.collab-card__profile-line--spec { width: 45%; }
.collab-card__profile-line--hidden {
  width: 80%;
  background: repeating-linear-gradient(90deg, var(--gray-200) 0px, var(--gray-200) 8px, transparent 8px, transparent 12px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--gray-400);
  height: auto;
  padding: 4px 0;
}

/* ══════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════ */
.steps {
  padding: var(--section-py) 0;
  background: #fff;
}
.steps__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  text-align: center;
  max-width: 280px;
  padding: 0 24px;
}
.step__number {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  margin: 0 auto 16px;
}
.step__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: var(--navy-50);
  color: var(--navy-500);
  font-size: 28px;
  margin: 0 auto 20px;
  transition: transform .3s var(--ease-spring);
}
.step:hover .step__icon { transform: scale(1.08); }
.step__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-500);
}
.step__connector {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--gray-300);
  font-size: 14px;
}

/* ══════════════════════════════════════════
   CTA
   ══════════════════════════════════════════ */
.cta {
  padding: var(--section-py) 0;
  background: var(--navy-900);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .25;
}
.cta__orb--1 {
  width: 500px; height: 500px;
  background: var(--accent-400);
  top: -40%; left: 20%;
}
.cta__orb--2 {
  width: 400px; height: 400px;
  background: var(--emerald-400);
  bottom: -30%; right: 15%;
}

.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.cta__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.55);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta__note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer__logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.footer__logo-text span { font-weight: 400; }
.footer__company {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color .25s;
}
.footer__nav a:hover { color: #fff; }
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ══════════════════════════════════════════
   CONTACTS PAGE
   ══════════════════════════════════════════ */
.contacts {
  padding: calc(var(--header-h) + 60px) 0 var(--section-py);
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.contacts__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.contacts__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .15;
}
.contacts__orb--1 {
  width: 500px; height: 500px;
  background: var(--accent-400);
  top: -100px; right: -100px;
}
.contacts__orb--2 {
  width: 400px; height: 400px;
  background: var(--emerald-400);
  bottom: -50px; left: -80px;
}

.contacts__header {
  text-align: center;
  margin-bottom: 64px;
}

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

.contacts__card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: all .4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.contacts__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .4s;
  border-radius: inherit;
}
.contacts__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.contacts__card:hover::before { opacity: .03; }
.contacts__card > * { position: relative; z-index: 1; }

.contacts__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 22px;
  margin-bottom: 20px;
}
.contacts__card-icon--blue { background: var(--navy-50); color: var(--navy-500); }
.contacts__card-icon--emerald { background: #ecfdf5; color: var(--emerald-500); }
.contacts__card-icon--violet { background: #f5f3ff; color: var(--violet-400); }

.contacts__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.contacts__card-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}
.contacts__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-400);
  transition: gap .3s var(--ease-out), color .3s;
}
.contacts__card-link:hover {
  color: var(--accent-500);
  gap: 12px;
}

/* Реквизиты */
.contacts__details {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 40px;
  margin-bottom: 48px;
}
.contacts__details-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}
.contacts__details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contacts__detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contacts__detail--wide {
  grid-column: span 4;
}
.contacts__detail-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
}
.contacts__detail-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.5;
}

/* Карта */
.contacts__map {
  margin-bottom: 24px;
}

/* Footer active link */
.footer__nav-active {
  color: rgba(255,255,255,.8) !important;
}

/* Stagger contacts cards */
.contacts__grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.contacts__grid [data-reveal]:nth-child(3) { transition-delay: .2s; }

/* ══════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.features__grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.features__grid [data-reveal]:nth-child(3) { transition-delay: .2s; }
.features__grid [data-reveal]:nth-child(4) { transition-delay: .3s; }

.security__cards [data-reveal]:nth-child(2) { transition-delay: .1s; }
.security__cards [data-reveal]:nth-child(3) { transition-delay: .2s; }

.ai__features [data-reveal]:nth-child(2) { transition-delay: .15s; }
.ai__features [data-reveal]:nth-child(3) { transition-delay: .3s; }

.collab__grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.collab__grid [data-reveal]:nth-child(3) { transition-delay: .2s; }

.steps__grid [data-reveal]:nth-child(2) { transition-delay: .15s; }
.steps__grid [data-reveal]:nth-child(3) { transition-delay: .3s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { max-width: 560px; margin: 0 auto; }

  .security__grid { grid-template-columns: 1fr; }
  .ai__grid { grid-template-columns: 1fr; }
  .collab__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__details-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__detail--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .header__nav,
  .header__cta { display: none; }
  .header__burger { display: block; }

  /* Mobile nav */
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .header__nav.open .header__link {
    color: var(--gray-700);
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--r-sm);
  }
  .header__nav.open .header__link:hover {
    background: var(--gray-100);
  }

  .features__grid { grid-template-columns: 1fr; }
  .collab__grid { grid-template-columns: 1fr; }

  .encryption-demo { flex-wrap: wrap; }
  .encryption-demo__arrow .encryption-demo__line { width: 12px; }

  .steps__grid { flex-direction: column; align-items: center; }
  .step__connector {
    transform: rotate(90deg);
    padding-top: 0;
    padding: 8px 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 32px; }
  .hero__stats { flex-direction: column; gap: 12px; align-items: center; }
  .ai-chat__msg { max-width: 100%; }
  .ai-feature { flex-direction: column; gap: 12px; }
  .ai-feature__number { font-size: 32px; width: auto; }
  .contacts__details-grid { grid-template-columns: 1fr; }
  .contacts__detail--wide { grid-column: span 1; }
  .contacts__details { padding: 24px; }
}
