/* ========================================
   LaunchPad Landing Page Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

  --max-width: 1200px;
  --section-padding: 6rem 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--zinc-950);
  color: var(--zinc-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--emerald-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--emerald-500);
}

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

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--zinc-50);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--zinc-400);
  max-width: 640px;
}

/* --- Animations --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.animate-on-scroll.visible .stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.visible .stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.visible .stagger-3 { transition-delay: 0.3s; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--zinc-950), #0a1f15, var(--zinc-950), #0f172a, var(--zinc-950));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-400);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--zinc-50);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--emerald-400), #6ee7b7, var(--emerald-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--zinc-400);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--emerald-500);
  color: var(--zinc-950);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--emerald-400);
  color: var(--zinc-950);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--zinc-100);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--zinc-700);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--zinc-500);
  background: rgba(255, 255, 255, 0.05);
  color: var(--zinc-50);
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  color: var(--zinc-500);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: var(--section-padding);
  background: var(--zinc-950);
  border-top: 1px solid var(--zinc-800);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text .section-subtitle {
  margin-bottom: 1.5rem;
}

.about-description {
  font-size: 1.0625rem;
  color: var(--zinc-300);
  line-height: 1.8;
}

.about-terminal {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--zinc-800);
  border-bottom: 1px solid var(--zinc-700);
}

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

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: var(--emerald-500); }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--zinc-500);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--zinc-300);
}

.terminal-body .prompt {
  color: var(--emerald-400);
}

.terminal-body .command {
  color: var(--zinc-100);
}

.terminal-body .output {
  color: var(--zinc-500);
}

.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--emerald-400);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  padding: var(--section-padding);
  background: var(--zinc-900);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--zinc-950);
  border: 1px solid var(--zinc-800);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s 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(--emerald-500), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--zinc-700);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--emerald-400);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-50);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--zinc-400);
  line-height: 1.7;
}

/* ========================================
   COURSES SECTION
   ======================================== */
.courses {
  padding: var(--section-padding);
  background: var(--zinc-950);
  border-top: 1px solid var(--zinc-800);
}

.courses-header {
  text-align: center;
  margin-bottom: 4rem;
}

.courses-header .section-subtitle {
  margin: 0 auto;
}

.courses-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--zinc-700);
  transform: translateY(-2px);
}

.course-level {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1rem;
}

.course-level.beginner {
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald-400);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.course-level.intermediate {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.course-level.advanced {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.course-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-50);
  margin-bottom: 0.25rem;
}

.course-duration {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-bottom: 1rem;
}

.course-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.course-topics li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--zinc-300);
  line-height: 1.5;
}

.course-topics li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--zinc-600);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.course-card.beginner .course-topics li::before {
  background: var(--emerald-500);
}

.course-card.intermediate .course-topics li::before {
  background: #60a5fa;
}

.course-card.advanced .course-topics li::before {
  background: #a78bfa;
}

/* ========================================
   GET STARTED SECTION
   ======================================== */
.get-started {
  padding: var(--section-padding);
  background: var(--zinc-900);
}

.get-started-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.get-started-header {
  margin-bottom: 3rem;
}

.get-started-header .section-subtitle {
  margin: 0 auto;
}

.code-block-wrapper {
  background: var(--zinc-950);
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: left;
  margin-bottom: 2rem;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--zinc-800);
  border-bottom: 1px solid var(--zinc-700);
}

.code-block-title {
  font-size: 0.8125rem;
  color: var(--zinc-400);
  font-family: var(--font-mono);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--zinc-700);
  border: 1px solid var(--zinc-600);
  border-radius: 0.375rem;
  color: var(--zinc-300);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background: var(--zinc-600);
  color: var(--zinc-100);
}

.copy-button.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
}

.copy-button svg {
  width: 14px;
  height: 14px;
}

.code-block-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 2;
  overflow-x: auto;
}

.code-block-body code {
  color: var(--zinc-300);
}

.code-block-body .code-comment {
  color: var(--zinc-600);
}

.code-block-body .code-command {
  color: var(--emerald-400);
}

/* Manual install collapsible */
.manual-install {
  margin-top: 1rem;
}

.manual-install summary {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--zinc-500);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.manual-install summary:hover {
  color: var(--zinc-300);
}

.get-started-note {
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.7;
}

.get-started-note a {
  color: var(--emerald-400);
}

/* Steps list */
.steps-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zinc-100);
  margin-bottom: 0.25rem;
}

.step-text p {
  font-size: 0.875rem;
  color: var(--zinc-400);
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 3rem 1.5rem;
  background: var(--zinc-950);
  border-top: 1px solid var(--zinc-800);
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zinc-50);
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--emerald-400);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--zinc-500);
  transition: color 0.2s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  :root {
    --section-padding: 8rem 2rem;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}
