/* ===== Variables ===== */
:root {
  --yellow: #FFD217;
  --yellow-dark: #E6B800;
  --yellow-light: #FFE566;
  --black: #0A0A0A;
  --dark: #141414;
  --gray-900: #1C1C1C;
  --gray-800: #2A2A2A;
  --gray-700: #3D3D3D;
  --gray-500: #6B6B6B;
  --gray-400: #9A9A9A;
  --gray-200: #E5E5E5;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-800);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition);
}

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

.btn-nav {
  background: var(--yellow) !important;
  color: var(--black) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--yellow-light) !important;
  color: var(--black) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--gray-800);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-200);
}

.mobile-link:hover { background: var(--gray-800); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--yellow-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255, 210, 23, 0.15), transparent),
    var(--black);
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(255, 210, 23, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

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

.section-alt {
  background: var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-400);
  font-size: 1.05rem;
}

/* ===== Downloads ===== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}

.download-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.download-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 210, 23, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--yellow);
}

.download-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-card .desc {
  color: var(--gray-400);
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.download-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.download-btn:hover {
  background: var(--yellow-light);
}

/* ===== Videos ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.video-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-800);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background var(--transition);
}

.video-card:hover .video-play {
  background: rgba(0,0,0,0.5);
}

.play-btn {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.video-body {
  padding: 20px 22px 24px;
}

.video-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.video-body .desc {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.video-duration {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--yellow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--yellow);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

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

.faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--gray-400);
  font-size: 0.95rem;
  white-space: pre-line;
}

/* ===== Support form ===== */
.support-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.support-form {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239A9A9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

.form-footer {
  margin-top: 8px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.form-status.info {
  background: rgba(255, 210, 23, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(255, 210, 23, 0.25);
}

/* Support info */
.support-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-list .label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.info-list .value {
  font-weight: 500;
  color: var(--yellow);
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--gray-800);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-copy {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-note code {
  background: var(--gray-800);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--yellow);
  font-size: 0.7rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .support-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }

  .hero { padding: 60px 0 80px; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .btn { width: 100%; }
}
