/* ══════════════════════════════════════
   АРИТМО-2 Landing Page Styles
   Theme: Clinical Precision — dark ECG monitor
   ══════════════════════════════════════ */

:root {
  --bg-deep: #060a12;
  --bg-card: #0c1220;
  --bg-card-hover: #111828;
  --bg-elevated: #141c2b;
  --green: #00e676;
  --green-dim: #00e67633;
  --green-glow: #00e67622;
  --amber: #fbbf24;
  --amber-dim: #fbbf2433;
  --blue: #38bdf8;
  --rose: #fb7185;
  --violet: #a78bfa;
  --teal: #2dd4bf;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Geologica', sans-serif;
  --container: 1120px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

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

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

/* ── ECG Canvas ── */
#ecg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.07;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,10,18,0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: var(--nav-h);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--green); display: flex; align-items: center; gap: 8px;
}
.nav__logo-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green), 0 0 20px var(--green-dim);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.nav__links {
  display: flex; gap: 32px;
}
.nav__links a {
  font-size: 0.9rem; color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta-btn {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  padding: 10px 20px; border-radius: 50px;
  background: var(--green); color: var(--bg-deep);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--green-dim);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; padding: 16px 32px; border-radius: 50px;
  cursor: pointer; transition: all 0.25s; border: none;
}
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary {
  background: var(--green); color: var(--bg-deep);
  box-shadow: 0 4px 24px var(--green-dim);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--green-dim), 0 0 60px var(--green-glow);
}
.btn--ghost {
  background: transparent; color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.btn--large { font-size: 1.1rem; padding: 20px 40px; }
.btn--full { width: 100%; justify-content: center; }
.btn--vk {
  background: #0077ff; color: #fff;
  box-shadow: 0 4px 24px rgba(0,119,255,0.25);
}
.btn--vk:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,119,255,0.35), 0 0 60px rgba(0,119,255,0.15);
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
  max-width: var(--container); margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  z-index: 1;
}
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: -1; opacity: 0.04;
  background-image:
    linear-gradient(rgba(0,230,118,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,230,118,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--green);
  background: var(--green-dim); padding: 8px 18px;
  border-radius: 50px; margin-bottom: 24px;
  border: 1px solid rgba(0,230,118,0.15);
  animation: fadeInUp 0.6s ease-out;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 2s ease-in-out infinite;
}
.hero__promo-banner {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: var(--bg-deep); background: var(--amber);
  padding: 10px 24px; border-radius: var(--radius-sm);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--amber-dim);
  animation: fadeInUp 0.6s ease-out 0.05s both;
}
.hero__promo-banner strong { font-weight: 800; }
.hero__title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.hero__title-line { display: block; }
.hero__title-line--accent { color: var(--green); }
.hero__subtitle {
  font-size: 1.1rem; color: var(--text-dim); max-width: 520px;
  margin-bottom: 36px; line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero__subtitle strong { color: var(--green); font-weight: 600; }
.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
.hero__stats {
  display: flex; align-items: center; gap: 24px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.hero__stat-value {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text); display: block;
}
.hero__stat-label { font-size: 0.8rem; color: var(--text-muted); }
.hero__stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

/* Phone Mockup */
.hero__visual {
  position: relative; display: flex; justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero__phone-mockup {
  width: 280px; background: #1a1a2e;
  border-radius: 32px; padding: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  position: relative; z-index: 2;
}
.hero__phone-notch {
  width: 100px; height: 6px; background: #0c0c18;
  border-radius: 8px; margin: 0 auto 12px;
}
.hero__phone-screen {
  border-radius: 20px; overflow: hidden;
  background: #e8f5e9;
}
.hero__phone-img { width: 100%; height: auto; }
.hero__phone-glow {
  position: absolute; inset: -40px; z-index: 1;
  background: radial-gradient(circle at center, var(--green-glow) 0%, transparent 60%);
  filter: blur(40px);
}

/* ── FEATURES ── */
.features {
  position: relative; z-index: 1;
  padding: 120px 0;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--green);
  background: var(--green-dim); padding: 6px 16px;
  border-radius: 50px; margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.section-desc { font-size: 1.05rem; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px; border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(255,255,255,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.feature-card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.feature-card--wide .feature-card__text { margin-top: 0; }

.feature-card__icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.feature-card--wide .feature-card__icon-wrap { margin-bottom: 0; }
.feature-card__icon-wrap svg { width: 28px; height: 28px; }
.feature-card__icon-wrap--green { background: var(--green-dim); color: var(--green); }
.feature-card__icon-wrap--blue { background: rgba(56,189,248,0.15); color: var(--blue); }
.feature-card__icon-wrap--amber { background: var(--amber-dim); color: var(--amber); }
.feature-card__icon-wrap--rose { background: rgba(251,113,133,0.15); color: var(--rose); }
.feature-card__icon-wrap--teal { background: rgba(45,212,191,0.15); color: var(--teal); }
.feature-card__icon-wrap--violet { background: rgba(167,139,250,0.15); color: var(--violet); }

.feature-card__title {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 600; margin-bottom: 8px;
}
.feature-card__text { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.feature-card__tag {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  color: var(--green); background: var(--green-dim);
  padding: 6px 14px; border-radius: 50px;
  justify-self: end; white-space: nowrap;
}

/* ── VIDEO ── */
.video-section { position: relative; z-index: 1; padding: 120px 0; }
.video-section__player { position: relative; max-width: 800px; margin: 0 auto; }
.video-section__embed {
  aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
}
.video-section__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,230,118,0.05) 0%, transparent 60%),
    var(--bg-card);
}
.video-section__play-btn {
  width: 80px; height: 80px; cursor: pointer;
  color: var(--green); transition: transform 0.3s;
}
.video-section__play-btn:hover { transform: scale(1.1); }
.video-section__play-btn svg { width: 100%; height: 100%; }
.video-section__placeholder-text { font-size: 0.9rem; color: var(--text-muted); }
.video-section__glow {
  position: absolute; inset: -60px; z-index: -1;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 50%);
  filter: blur(60px); opacity: 0.4;
}

/* ── PRICING ── */
.pricing { position: relative; z-index: 1; padding: 120px 0; }
.pricing__showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: start;
}
.pricing__card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; border: 2px solid var(--green);
  position: relative; overflow: hidden;
}
.pricing__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal));
}
.pricing__card-badge {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--green); margin-bottom: 24px;
}
.pricing__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.pricing__price-currency {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: var(--text-dim);
}
.pricing__price-value {
  font-family: var(--font-display); font-size: 4rem;
  font-weight: 900; line-height: 1; color: var(--text);
}
.pricing__price-period { font-size: 1.1rem; color: var(--text-muted); }
.pricing__card-desc { color: var(--text-dim); margin-bottom: 24px; }
.pricing__features-list { margin-bottom: 32px; }
.pricing__features-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; font-size: 0.95rem; color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing__features-list svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* Price Compare */
.pricing__compare {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; border: 1px solid rgba(255,255,255,0.05);
}
.pricing__compare-title {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; margin-bottom: 28px;
}
.pricing__compare-items { display: flex; flex-direction: column; gap: 16px; }
.pricing__compare-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s;
}
.pricing__compare-item:hover { transform: translateX(4px); }
.pricing__compare-item--highlight {
  background: var(--green-dim); border-color: rgba(0,230,118,0.2);
}
.pricing__compare-icon { font-size: 2rem; flex-shrink: 0; }
.pricing__compare-text strong { display: block; font-size: 0.95rem; }
.pricing__compare-text span { font-size: 0.8rem; color: var(--text-muted); }
.pricing__compare-vs {
  margin-left: auto; font-family: var(--font-display);
  font-size: 1.2rem; color: var(--text-muted);
}
.pricing__compare-vs--win { color: var(--green); font-size: 1.4rem; }

/* Time Save */
.pricing__time-save {
  margin-top: 48px; display: flex; align-items: center; gap: 32px;
  padding: 40px; background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}
.pricing__time-save-icon { flex-shrink: 0; color: var(--amber); }
.pricing__time-save-icon svg { width: 56px; height: 56px; }
.pricing__time-save h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 600; margin-bottom: 8px;
}
.pricing__time-save p { font-size: 0.95rem; color: var(--text-dim); }

/* ── TEAM ── */
.team { position: relative; z-index: 1; padding: 120px 0; }
.team__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; max-width: 800px; margin: 0 auto;
}
.team__card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.team__avatar {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto 20px; overflow: hidden;
  border: 3px solid var(--green);
  box-shadow: 0 0 24px var(--green-dim);
}
.team__avatar-img {
  width: 100%; height: 100%; object-fit: cover;
}
.team__name {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; margin-bottom: 6px;
}
.team__role {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 500; color: var(--green); margin-bottom: 16px;
}
.team__bio {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.6;
}
.team__link {
  color: var(--green); font-weight: 500;
  border-bottom: 1px solid var(--green-dim);
  transition: border-color 0.2s;
}
.team__link:hover { border-color: var(--green); }

/* ── CTA ── */
.cta {
  position: relative; z-index: 1;
  padding: 140px 0 100px; text-align: center; overflow: hidden;
}
.cta__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 50%);
  filter: blur(80px); opacity: 0.5;
}
.cta__content { position: relative; z-index: 2; }
.cta__title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 20px;
}
.cta__text {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.cta__text strong { color: var(--green); }
.cta__buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 0;
}
.cta__note { font-size: 0.8rem; color: var(--text-muted); margin-top: 20px; }
.cta__ecg-line {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 60px;
  color: var(--green); opacity: 0.15;
}

/* ── FOOTER ── */
.footer {
  position: relative; z-index: 1;
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--green);
}
.footer__tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.feature-card, .pricing__card, .pricing__compare,
.pricing__time-save, .video-section__embed, .team__card {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.feature-card.visible, .pricing__card.visible, .pricing__compare.visible,
.pricing__time-save.visible, .video-section__embed.visible, .team__card.visible {
  opacity: 1; transform: translateY(0);
}
.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--nav-h) + 32px); }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__phone-mockup { width: 220px; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; grid-template-columns: auto 1fr; }
  .feature-card__tag { grid-column: 2; }
  .pricing__showcase { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; grid-template-columns: 1fr; text-align: center; }
  .feature-card--wide .feature-card__icon-wrap { margin: 0 auto 16px; }
  .feature-card__tag { justify-self: center; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .hero__stat-divider { width: 36px; height: 1px; }
  .pricing__time-save { flex-direction: column; text-align: center; }
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .btn--large { font-size: 0.95rem; padding: 16px 28px; }
  .team__grid { grid-template-columns: 1fr; }
}
