*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.1);
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(0, 229, 255, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.5px;
}

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
.nav__link--active,
.nav__link:hover {
  color: var(--cyan);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn--primary {
  background: var(--cyan);
  color: #0a0e17;
}
.btn--primary:hover {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  opacity: 1;
}
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
}
.btn--outline:hover {
  background: var(--cyan-dim);
  opacity: 1;
}
.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 50px;
}
.hero__content {
  flex: 1;
}
.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 800;
}
.gradient {
  background: linear-gradient(135deg, var(--cyan), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__visual {
  flex: 0 0 340px;
}
.hero__code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.8rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.hero__code-block pre {
  margin: 0;
}
.hero__code-block code {
  color: var(--text-muted);
}
.code-comment { color: #6b7280; }
.code-keyword { color: var(--cyan); }
.code-func { color: #a78bfa; }
.code-paren { color: #f472b6; }
.code-string { color: #34d399; }

/* Sections */
section {
  padding: 70px 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 44px;
  font-size: 1rem;
}

/* Video section */
.video-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-section__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.video-section__content {
  flex: 1;
}
.video-section__content h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.video-section__content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.video-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.video-section__thumb {
  flex: 0 0 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stats */
.stats {
  background: var(--bg-card);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
}
.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Steps */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step__number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.25;
  position: absolute;
  top: 12px;
  right: 16px;
}
.step__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step__text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.3s;
}
.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}
.faq__answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA final */
.cta-final {
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.cta-final__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-final__text {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
}
.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}
.footer__heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__list a:hover {
  color: var(--cyan);
}
.footer__bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact page */
.contact-section {
  padding: 70px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* About page */
.about-section {
  padding: 70px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-skills h3 {
  margin-bottom: 16px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 6px 14px;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--cyan);
}

/* Page header */
.page-header {
  padding: 50px 0 30px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.2rem;
}
.page-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.back-link:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(14px);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }
  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 16px;
  }
  .burger {
    display: flex;
  }
  .header__cta {
    display: none;
  }
  .hero__inner {
    flex-direction: column;
  }
  .hero__visual {
    flex: none;
    width: 100%;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .video-section__inner {
    flex-direction: column;
  }
  .video-section__thumb {
    flex: none;
    width: 100%;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }
  .hero__actions {
    flex-direction: column;
  }
  .btn--lg {
    width: 100%;
  }
  section {
    padding: 40px 0;
  }
}
