/* ═══════════════════════════════════════════
   EduCRM Landing — Premium Dark Theme
   ═══════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg-primary: #07060e;
  --bg-secondary: #0f0d1a;
  --bg-card: rgba(17, 14, 32, 0.7);
  --bg-card-hover: rgba(25, 20, 50, 0.85);

  --text-primary: #f0eef6;
  --text-secondary: #a09cb5;
  --text-muted: #6b6580;

  --accent-start: #8b5cf6;
  --accent-mid: #a855f7;
  --accent-end: #d946ef;
  --accent-blue: #3b82f6;

  --border: rgba(139, 92, 246, 0.15);
  --border-hover: rgba(139, 92, 246, 0.35);
  --glow: rgba(139, 92, 246, 0.25);

  /* Spacing */
  --section-py: 100px;
  --container-max: 1200px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

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

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent-start);
  background: rgba(139, 92, 246, 0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover {
  color: var(--text-primary);
}

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

.btn--full {
  width: 100%;
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.35s var(--ease);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(7, 6, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 1.6rem; }
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.35));
  transition: transform 0.3s var(--ease);
}
.navbar__logo:hover .logo-img {
  transform: scale(1.08) rotate(-3deg);
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-accent {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__links {
  display: flex;
  gap: 32px;
}
.navbar__links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
  position: relative;
}
.navbar__links a:hover { color: var(--text-primary); }
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
.navbar__links a:hover::after { width: 100%; }

.navbar__actions { display: flex; gap: 12px; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

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

.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.06);
  font-size: 0.85rem;
  color: var(--accent-mid);
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s var(--ease);
}

.hero__gradient-text, .gradient-text {
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease);
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.9s var(--ease);
}

.hero__stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 1s var(--ease);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__visual {
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s var(--ease);
}

.hero__img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(139, 92, 246, 0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero__img-wrapper:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 0 1px var(--border-hover),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(139, 92, 246, 0.2);
}

/* ═══════════════ TRUSTED ═══════════════ */
.trusted {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.trusted__text {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.trusted__logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trusted__item {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.trusted__item:hover { opacity: 1; }

/* ═══════════════ SECTION COMMON ═══════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.06);
  font-size: 0.82rem;
  color: var(--accent-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════ FEATURES ═══════════════ */
.features {
  padding: var(--section-py) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-start), var(--accent-end), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════ FACE ID ═══════════════ */
.faceid {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faceid__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.faceid__visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.faceid__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.faceid__list {
  list-style: none;
  margin-bottom: 32px;
}
.faceid__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.faceid__check {
  color: #22c55e;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ═══════════════ PRICING ═══════════════ */
.pricing {
  padding: var(--section-py) 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  position: relative;
}
.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}

.price-card--popular {
  border-color: var(--accent-start);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.12);
  transform: scale(1.04);
}
.price-card--popular:hover {
  transform: scale(1.04) translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card__header {
  margin-bottom: 20px;
}

.price-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card__target {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-card__price {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

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

.price-card__currency {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.price-card__features {
  flex: 1;
  margin-bottom: 28px;
}
.price-card__features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 4px;
}

/* ═══════════════ FAQ ═══════════════ */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] {
  border-color: var(--border-hover);
}

.faq__question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.faq__question:hover {
  background: rgba(139, 92, 246, 0.04);
}
.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-mid);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}
.faq__question::-webkit-details-marker { display: none; }

.faq__answer {
  padding: 0 24px 20px;
}
.faq__answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq__answer a {
  color: var(--accent-mid);
  text-decoration: underline;
}

/* ═══════════════ CTA / CONTACT ═══════════════ */
.cta {
  padding: var(--section-py) 0;
}

.cta__inner {
  text-align: center;
}

.cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta__form {
  max-width: 520px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  resize: vertical;
}
.form-input:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6580' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-success {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-weight: 600;
  font-size: 0.92rem;
}

.cta__contacts {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta__contact-item {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.cta__contact-item:hover { color: var(--accent-mid); }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand .logo-text { font-size: 1.3rem; }
.footer__tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 10px;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__links {
  display: contents;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll-triggered fade-in */
.feature-card,
.price-card,
.faq__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.feature-card.visible,
.price-card.visible,
.faq__item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .price-card--popular { transform: scale(1); }
  .price-card--popular:hover { transform: translateY(-4px); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

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

  .navbar__links,
  .navbar__actions { display: none; }
  .navbar__burger { display: flex; }

  /* Mobile menu */
  .navbar__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 6, 14, 0.96);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .navbar__actions.active {
    display: flex;
    position: absolute;
    top: calc(100% + 180px);
    left: 0;
    right: 0;
    padding: 0 24px 20px;
    background: rgba(7, 6, 14, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }

  .faceid__inner { grid-template-columns: 1fr; }
  .faceid__visual { order: -1; }

  .features__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__tagline { margin: 10px auto 0; }

  .hero__stats { justify-content: center; }
  .cta__contacts { flex-direction: column; align-items: center; }
}
