﻿/* ── HOME PAGE ── */
.home-wrap { padding-top: var(--topbar-h); }

/* HERO */
.hero {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center;
  padding: 60px 56px; gap: 60px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 40%; left: 30%;
  transform: translate(-50%, -50%);
  width: 700px; height: 600px;
  background: radial-gradient(ellipse, rgba(245,184,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  flex: 1; max-width: 580px; position: relative; z-index: 1;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 100px; padding: 5px 14px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.5)} }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900; color: var(--white);
  line-height: 1.08; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 15px; color: var(--muted); max-width: 500px; line-height: 1.8; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-feature-row {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hero-feat {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-feat span { font-size: 14px; }

/* Floating code card */
.hero-code-card {
  flex-shrink: 0; width: 340px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hcc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.hcc-dots { font-size: 9px; color: #444; letter-spacing: 4px; }
.hcc-lang { font-family: var(--font-head); font-size: 10px; font-weight: 700; color: var(--py-color); margin-left: auto; }
.hcc-run {
  font-family: var(--font-head); font-size: 10px; font-weight: 800;
  color: var(--black); background: var(--gold);
  padding: 3px 10px; border-radius: 4px; cursor: pointer;
}
.hcc-code {
  padding: 18px 20px;
  font-family: var(--font-code); font-size: 12.5px;
  line-height: 1.75; color: #C8C2B8;
}
:root[data-theme='light'] .hcc-code { color: #1F2937; }
:root[data-theme='light'] .hcc-code .cm { color: #64748B; }
.hcc-code .kw  { color: var(--gold); }
.hcc-code .fn  { color: #7BC8A4; }
.hcc-code .cm  { color: #454240; font-style: italic; }

/* COURSES */
.courses-section {
  padding: 80px 56px;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--font-head); font-size: 10px; font-weight: 800;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 12px; }
.section-sub { font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.8; margin-bottom: 44px; }

.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.course-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  transition: border-color 0.22s, transform 0.22s;
  cursor: pointer;
}
.course-card:hover { border-color: var(--c, var(--gold-border)); transform: translateY(-4px); }
.cc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cc-icon { font-size: 26px; }
.cc-badge {
  font-family: var(--font-head); font-size: 9px; font-weight: 800;
  padding: 3px 10px; border-radius: 100px; border: 1px solid;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.course-card h3 {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  color: var(--white); margin-bottom: 8px;
}
.course-card p { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; margin-bottom: 18px; }
.cc-meta { display: flex; flex-direction: column; gap: 3px; margin-bottom: 18px; }
.cc-meta span { font-size: 11px; color: var(--muted2); font-family: var(--font-head); font-weight: 600; }
.cc-footer { display: flex; align-items: center; gap: 12px; }
.cc-bar { flex: 1; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.cc-bar-fill { height: 100%; width: 0; background: var(--c, var(--gold)); transition: width 1s ease; border-radius: 2px; }
.course-card:hover .cc-bar-fill { width: 100%; }
.cc-arrow { color: var(--muted); font-size: 18px; transition: color 0.2s, transform 0.2s; }
.course-card:hover .cc-arrow { color: var(--c, var(--gold)); transform: translateX(4px); }

/* HOW IT WORKS */
.how-section {
  padding: 80px 56px;
  border-top: 1px solid var(--border);
}
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 44px;
}
.how-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s;
}
.how-card:hover { border-color: var(--gold-border); }
.how-num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font-head); font-size: 28px; font-weight: 900;
  color: rgba(255,255,255,0.04);
}
.how-icon { font-size: 26px; margin-bottom: 14px; }
.how-card h4 {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.how-card p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* HOME FOOTER */
.home-footer {
  border-top: 1px solid var(--border);
  padding: 28px 56px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.hf-logo {
  display: flex; align-items: center;
}
.hf-logo img { height: 38px; width: auto; display: block; }
.home-footer p { font-size: 12px; color: var(--muted2); }
.home-footer nav { display: flex; gap: 20px; }
.home-footer nav a { font-size: 12px; color: var(--muted2); transition: color 0.2s; }
.home-footer nav a:hover { color: var(--gold); }

/* RESPONSIVE */
@media(max-width:1200px) {
  .hero { padding: 54px 36px; gap: 36px; }
  .courses-section, .how-section, .home-footer { padding-left: 36px; padding-right: 36px; }
}

@media(max-width:900px) {
  .hero { flex-direction: column; min-height: auto; padding: 40px 20px 48px; }
  .hero-code-card { display: none; }
  .courses-section, .how-section { padding: 56px 20px; }
  .home-footer { padding: 24px 20px; }
}

@media(max-width:640px) {
  .hero { padding: 28px 14px 40px; gap: 26px; }
  .hero-sub { font-size: 14px; }
  .hero-btns { width: 100%; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; justify-content: center; }
  .hero-feature-row { gap: 12px; }
  .hero-feat { font-size: 10px; letter-spacing: 0.05em; }
  .courses-grid { grid-template-columns: 1fr; }
  .courses-section, .how-section { padding: 44px 14px; }
  .how-grid { gap: 14px; margin-top: 24px; }
  .home-footer { padding: 20px 14px; gap: 12px; }
  .hf-logo img { height: 32px; }
  .home-footer nav { width: 100%; flex-wrap: wrap; gap: 12px; }
}

