:root {
  --bg: #0d1117;
  --panel: #161b22;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-2: #2ea043;
  --text: #c9d1d9;
  --text-light: #f0f6fc;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(240, 246, 252, 0.1);
  --success: #238636;
  --warning: #da3633;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  line-height: 1.25;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1f6feb);
  color: white;
  box-shadow: 0 4px 15px rgba(31, 111, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 111, 235, 0.3);
}

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

.btn-outline:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: var(--accent);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.site-header {
  background-color: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.brand .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
}

.brand .logo span {
  color: var(--accent);
}

.brand .tag {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 15px;
}

.nav-link {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--glass);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ====== Hero Section ====== */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9), rgba(22, 27, 34, 0.9)), 
              url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero-title span {
  color: var(--accent);
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 30px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-scroll {
  margin-top: 60px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 1s both;
}

.hero-scroll i {
  animation: bounce 2s infinite;
}

.pulse {
  animation: pulse 2s infinite;
}

/* ====== Sections ====== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title span {
  position: relative;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 30px;
}

/* ====== Cards Grid ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(88, 166, 255, 0.2);
}

.card:hover::before {
  height: 100%;
}

.card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--accent);
}

.card-link i {
  font-size: 0.7rem;
}

/* ====== Learn Grid ====== */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.modules {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.module {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: var(--transition);
  position: relative;
}

.module:hover {
  border-color: rgba(88, 166, 255, 0.2);
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.module h3 {
  font-size: 1.1rem;
  color: var(--accent-2);
}

.module-meta {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--muted);
}

.module-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mark-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.mark-btn:hover {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent);
}

.mark-btn.marked {
  background: linear-gradient(135deg, var(--accent-2), #238636);
  color: white;
  border: none;
}

.module-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* ====== Right Column ====== */
.learn-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.progress-card,
.download-card,
.cta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.progress-card h4,
.download-card h4,
.cta-card h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.progress-bar {
  background: var(--glass);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px 0;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), #2ea043);
  transition: width 0.5s ease;
}

#progressText {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ====== CFDs Section ====== */
.cfds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.cfds-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: var(--transition);
}

.cfds-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 166, 255, 0.2);
}

.cfds-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.cfds-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cfds-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cfds-cta {
  text-align: center;
  margin-top: 40px;
}

/* ====== Contact Section ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 15px;
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

#formStatus {
  font-size: 0.9rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(88, 166, 255, 0.2);
  transform: translateY(-3px);
}

.info-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-card a {
  color: var(--text);
  display: inline-block;
  margin-top: 5px;
}

.info-card a:hover {
  color: var(--accent);
}

/* ====== Footer ====== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links h5,
.footer-social h5 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--muted);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.newsletter {
  margin-top: 20px;
}

.newsletter p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 10px 15px;
  color: var(--text-light);
}

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 0 15px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #1f6feb;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom small {
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 15px;
}

.legal-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-links a:hover {
  color: var(--accent);
}

/* ====== Animations ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(88, 166, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
  }
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .info-card {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .learn-grid {
    grid-template-columns: 1fr;
  }
  
  .learn-cta {
    position: static;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--panel);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  
  .nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
