:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #10b981;
  --primary-hover: #059669;
  --secondary: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --error: #ef4444;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --container: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

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

.section {
  padding: 100px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: rgba(16, 185, 129, 0.1);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  background-color: var(--primary);
  color: var(--bg-dark);
  border: none;
}

.text-block {
  @media (max-width: 450px) {
    max-width: 95%;
  }
}

.btn-submit {
  width: 100%;
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 16px;
}

.btn-submit:hover {
  background-color: #4f46e5;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #334155;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.btn-nav {
  border: 1px solid var(--white);
  padding: 8px 20px;
  border-radius: 4px;
}

.btn-nav:hover {
  background: var(--white);
  color: var(--bg-dark);
}

/* Mobile Menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.close-menu {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-links a {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  margin-top: 0;
  padding-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0f172ae6 0%, #0f172a80 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #e2e8f0;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid var(--primary);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

/* Code Editor Visual */
.code-editor {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;

  @media (max-width: 450px) {
    max-width: 85%;
  }
}

.text-center {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.editor-header {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.editor-body pre {
  color: #d4d4d4;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  overflow-x: auto;
}

/* Features */
.bg-darker {
  background-color: #020617;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #334155;
  transition: 0.3s;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.card i {
  color: var(--primary);
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

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

.link-styled {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

/* Split Content */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.image-wrapper img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mentors */
.bg-gradient {
  background: var(--gradient);
}

.mentor-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
}

.mentor-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.mentor-info {
  padding: 25px;
}

.mentor-link {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 10px;
  display: block;
}

/* Stats */
.stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 5px;
}

/* FAQ */
.bg-light {
  background-color: #1e293b;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #334155;
  margin-bottom: 15px;
}

.faq-question {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Contact */
.contact-section {
  background: linear-gradient(to right, var(--bg-dark), #111827);
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
}

.contact-text {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: var(--white);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-group input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: normal;
}

.error-msg {
  color: var(--error);
  font-size: 0.8rem;
  display: block;
  margin-top: 5px;
  min-height: 16px;
}

/* Footer */
.footer {
  background: #020617;
  padding: 80px 0 20px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col p,
.legal-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-col p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-list {
  list-style: none;
}

.legal-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #475569;
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 20px 0;
  z-index: 5000;
  transition: 0.5s ease-out;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

@media (max-width: 992px) {
  .grid-2,
  .split-content {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .mentors-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .stats-box {
    margin-top: 40px;
  }
}

@media (max-width: 950px) {
  .desktop-nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper p {
  color: #4f555d;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: #6366f1;
  top: 0;
}

.text-wrapper strong {
  color: var(--primary-hover);
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: var(--bg-card);
}

.text-wrapper a {
  color: var(--primary-hover);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}
