/* ═══════════════════════════════════════════════════════════════
   Legal Assistant — Landing
   Цвета: бирюзовый (из логотипа) + фиолетовый (из приложения)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:           #0a0e1a;
  --bg-2:         #0e1424;
  --panel:        #141a2a;
  --panel-2:      #1a2235;
  --border:       #1f2a3f;
  --border-2:     #2a3650;

  --text:         #ffffff;
  --text-dim:     #a8b0c0;
  --text-mute:    #6b7488;

  --accent:       #14b8a6;      /* бирюзовый */
  --accent-2:     #0d9488;
  --accent-glow:  rgba(20, 184, 166, 0.4);

  --violet:       #7289da;
  --violet-h:     #8298e3;
  --violet-glow:  rgba(114, 137, 218, 0.4);

  --discord:      #5865f2;
  --discord-h:    #4752c4;
  --telegram:     #229ed9;
  --telegram-h:   #1e8abf;

  --success:      #22c55e;
  --danger:       #ef4444;

  --radius:       14px;
  --radius-lg:    20px;
  --radius-sm:    10px;

  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-md:    0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow:  0 0 40px var(--accent-glow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 800px; }

.accent-text { color: var(--accent); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.brand-name { color: var(--text); }

.nav-menu {
  display: flex;
  gap: 32px;
  font-size: 16px;
  font-weight: 600;
}

.nav-menu a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover { color: var(--accent); }

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
  border-radius: 1px;
}

.nav-menu a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle,
    rgba(20, 184, 166, 0.25) 0%,
    rgba(114, 137, 218, 0.15) 30%,
    transparent 70%);
  filter: blur(80px);
  z-index: -1;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

.hero-inner { text-align: center; }

.badge {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(114, 137, 218, 0.15));
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 16px;
  color: var(--text-mute);
  font-weight: 600;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s;
}

.btn:hover::before { background: rgba(255, 255, 255, 0.1); }

.btn:active { transform: scale(0.98); }

.btn-icon { font-size: 18px; line-height: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-discord {
  background: var(--discord);
}
.btn-discord:hover {
  background: var(--discord-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.btn-telegram {
  background: var(--telegram);
}
.btn-telegram:hover {
  background: var(--telegram-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-2);
  color: var(--text-dim);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
}

.btn-block {
  width: 100%;
  margin-top: auto;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ═══════════ SECTIONS ═══════════ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ═══════════ FEATURES ═══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ═══════════ SCREENSHOTS ═══════════ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.screenshot {
  grid-column: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: all 0.3s;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.screenshot-large {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .screenshot, .screenshot-large {
    grid-column: span 6;
    aspect-ratio: 16 / 10;
  }
}

/* ═══════════ PRICING ═══════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.3s;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 20px 60px var(--accent-glow);
  transform: scale(1.02);
}

.price-card-featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.price-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.price-icon { font-size: 42px; line-height: 1; }

.price-name {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
}

.price-amount {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.price-desc {
  font-size: 15px;
  color: var(--text-mute);
  margin-bottom: 8px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
}

.price-list li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

.price-list li.off {
  color: var(--text-mute);
  opacity: 0.7;
}

/* ═══════════ FAQ ═══════════ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}

.faq-item:hover {
  border-color: var(--border-2);
}

.faq-item[open] {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
}

.faq-item summary {
  padding: 22px 26px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 60px;
  user-select: none;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  padding: 0 26px 22px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
}

.faq-item code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  color: var(--accent);
}

/* ═══════════ CTA ═══════════ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.15), transparent 70%);
}

.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-mute);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}

.lightbox-close:hover { color: var(--accent); }