/* ═══════════════════════════════════════════
   МетроТайм — Premium Landing Page
   ═══════════════════════════════════════════ */

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

:root {
  --bg:        #0a0c0f;
  --bg-card:   #12151a;
  --bg-card-2: #181c23;
  --border:    rgba(255,255,255,0.06);
  --text:      #e8ecf1;
  --text-dim:  #7a8599;
  --green:     #55D68D;
  --green-bg:  rgba(85,214,141,0.10);
  --cyan:      #55C7D6;
  --cyan-bg:   rgba(85,199,214,0.10);
  --gold:      #F2B84B;
  --gold-bg:   rgba(242,184,75,0.10);
  --red:       #e53e3e;
  --radius:    16px;
  --radius-sm: 12px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Canvas BG ── */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero-glow--green {
  background: var(--green);
  top: -100px;
  left: -100px;
}

.hero-glow--cyan {
  background: var(--cyan);
  bottom: -100px;
  right: -100px;
  animation-delay: 4s;
}

@keyframes glowPulse {
  0%   { opacity: 0.15; transform: scale(0.9); }
  100% { opacity: 0.3;  transform: scale(1.1); }
}

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

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: rgba(16,20,23,0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 28px;
  animation: logoFloat 6s ease-in-out infinite;
  box-shadow: 
    0 0 40px rgba(85,214,141,0.15),
    0 0 80px rgba(85,199,214,0.08);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-logo svg {
  width: 72px;
  height: 72px;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.title-accent {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0c0f;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(85,214,141,0.3);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(85,214,141,0.45);
}

.hero-cta svg {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ══════════════════════════
   SECTION TITLES
   ══════════════════════════ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* ══════════════════════════
   FEATURES
   ══════════════════════════ */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.1), box-shadow 0.4s, border-color 0.3s;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1).is-visible { transition-delay: 0s; }
.feature-card:nth-child(2).is-visible { transition-delay: 0.08s; }
.feature-card:nth-child(3).is-visible { transition-delay: 0.16s; }
.feature-card:nth-child(4).is-visible { transition-delay: 0.24s; }
.feature-card:nth-child(5).is-visible { transition-delay: 0.32s; }
.feature-card:nth-child(6).is-visible { transition-delay: 0.40s; }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.12);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon--green {
  background: var(--green-bg);
  color: var(--green);
}

.feature-icon--cyan {
  background: var(--cyan-bg);
  color: var(--cyan);
}

.feature-icon--gold {
  background: var(--gold-bg);
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ══════════════════════════
   PRICING
   ══════════════════════════ */
.pricing {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.1), box-shadow 0.4s;
  opacity: 0;
  transform: translateY(40px);
}

.plan-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.plan-card:nth-child(1).is-visible { transition-delay: 0s; }
.plan-card:nth-child(2).is-visible { transition-delay: 0.12s; }
.plan-card:nth-child(3).is-visible { transition-delay: 0.24s; }

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Featured card */
.plan-card--featured {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(85,214,141,0.06) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 60px rgba(85,214,141,0.08);
}

.plan-card--featured:hover {
  box-shadow: 0 0 80px rgba(85,214,141,0.15), 0 12px 40px rgba(0,0,0,0.4);
}

/* Badge */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #0a0c0f;
}

.plan-badge--gold {
  background: linear-gradient(135deg, var(--gold), #e5a020);
}

.plan-header {
  text-align: center;
  margin-bottom: 28px;
}

.plan-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.price-save {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

/* Feature list */
.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}

.check--dim {
  color: var(--text-dim);
}

.cross {
  color: rgba(255,255,255,0.15);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Plan buttons */
.plan-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  border: none;
}

.plan-btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.plan-btn--outline:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

.plan-btn--primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #0a0c0f;
  box-shadow: 0 4px 24px rgba(85,214,141,0.25);
}

.plan-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(85,214,141,0.4);
}

.plan-btn--gold {
  background: linear-gradient(135deg, var(--gold), #e5a020);
  color: #0a0c0f;
  box-shadow: 0 4px 24px rgba(242,184,75,0.25);
}

.plan-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242,184,75,0.4);
}

/* ══════════════════════════
   FOOTER
   ══════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-brand svg {
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 40px 20px;
  }

  .features-grid,
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .features {
    padding: 60px 20px 40px;
  }

  .pricing {
    padding: 60px 20px 80px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .price-amount {
    font-size: 2rem;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Selection ── */
::selection {
  background: rgba(85,214,141,0.3);
  color: #fff;
}
