@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #040d0d;
  --bg-soft: #071515;
  --card: rgba(6, 20, 19, 0.7);
  --card-border: rgba(0, 255, 204, 0.12);
  --line: rgba(0, 255, 204, 0.08);
  --text: #f3f9f8;
  --muted: #819896;
  --cyan: #00ffcc;
  --cyan-glow: rgba(0, 255, 204, 0.15);
  --purple: #00d9f5;
  --purple-glow: rgba(0, 217, 245, 0.25);
  --gold: #ffd700;
  --green: #00ffcc;
  --red: #ff3b30;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 204, 0.03);
  --radius: 20px;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 217, 245, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Topbar */
.topbar {
  padding: 20px 0;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.btn:hover::after {
  left: 125%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
  filter: brightness(1.1);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn.block {
  display: flex;
  width: 100%;
}

/* Cards & Glassmorphism */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  padding: 40px;
}

.pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  background: linear-gradient(135deg, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Pricing and Info */
.price-box {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
  background: rgba(255, 255, 255, 0.02);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.price {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.meta-item {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.hero-panel {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}

.hero-panel .highlight {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--purple);
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.hero-panel li {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.hero-panel li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: 40px 0 60px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-card {
  padding: 30px;
  text-align: left;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Checkout */
.checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.form-card {
  padding: 36px;
}

.form-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Form inputs styling */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(17, 24, 39, 0.8);
  color: var(--text);
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  transition: all 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: rgba(17, 24, 39, 0.95);
}

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

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 24px;
}

.alert.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* Admin Dashboard & KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.kpi {
  padding: 24px;
  text-align: center;
}

.kpi .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi .value {
  font-size: 32px;
  font-weight: 900;
  margin-top: 8px;
  color: var(--cyan);
  text-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

/* Tables */
.table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(17, 24, 39, 0.3);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(3, 7, 18, 0.4);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.paid {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.failed, .badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Navigation & Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.nav-admin {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

.copy-box {
  padding: 16px;
  border: 1.5px dashed rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.05);
  color: #fff;
  font-family: monospace;
  font-size: 14px;
  word-break: break-all;
  user-select: all;
  margin: 14px 0;
}

hr.sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

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

.auth-card {
  width: min(480px, calc(100% - 32px));
  margin: 80px auto;
  padding: 40px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .auth-card {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 980px) {
  .hero-grid, .checkout, .grid-3, .grid-2, .kpis, .form-row, .testimonials-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 30px 0;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-panel {
    min-height: auto;
  }
}

/* conversion layout assets */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  padding: 20px;
  text-align: center;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.stat-card .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.2;
}

.stat-card .desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.testimonial-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.testimonial-info span {
  font-size: 12px;
  color: var(--muted);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 32px auto 0;
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-question .icon {
  font-size: 18px;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Pulse Animation for main CTAs */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.btn.pulse {
  animation: pulseGlow 2s infinite;
}

/* Responsive adjustments for mobile and tablets */
@media (max-width: 768px) {
  .brand {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .brand div {
    width: 100%;
    justify-content: center;
  }
  
  .brand-badge {
    margin-bottom: 4px;
  }

  .price-box {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 16px;
  }

  .price-box > div {
    width: 100%;
  }

  /* Table horizontal scroll */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Form spacing */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .grid-3, .grid-2, .kpis, .stats-grid, .testimonials-grid, .hero-grid, .checkout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Sidebar and main area of LMS */
  .lms-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .sidebar-menu {
    position: static !important;
    max-height: none !important;
    margin-bottom: 20px;
  }

  /* General typography tweaks */
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  .hero-copy {
    padding: 20px 16px !important;
  }

  .card, .auth-card, .form-card {
    padding: 20px 16px !important;
  }

  .nav-admin {
    justify-content: center;
  }

  .nav-admin a {
    width: 100%;
    text-align: center;
  }
}

