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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-nav: rgba(10, 10, 15, 0.92);
  --accent: #e50914;
  --accent-hover: #f40612;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1280px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  height: 64px; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand-logo {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, #e50914, #b20710);
  color: #fff; letter-spacing: 0.5px;
}

.brand-text {
  font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, #f5f5f7, #a1a1aa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); position: relative; white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary); background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 20px; height: 3px;
  background: var(--accent); border-radius: var(--radius-full);
}

.header-search {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0 16px; transition: var(--transition);
  flex: 1; max-width: 340px; cursor: pointer;
}

.header-search:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.header-search svg {
  width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0;
}

.header-search .placeholder {
  color: var(--text-muted); font-size: 14px; padding: 10px 12px; width: 100%;
}

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer; padding: 8px; flex-shrink: 0;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero {
  padding: 120px 0 60px; position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 140%; height: 140%;
  background: radial-gradient(ellipse at 50% 30%, rgba(229, 9, 20, 0.08), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="70" r="1.5" fill="rgba(255,255,255,0.02)"/></svg>');
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(229, 9, 20, 0.1); border: 1px solid rgba(229, 9, 20, 0.25);
  font-size: 13px; color: var(--accent); font-weight: 500;
  margin-bottom: 20px; animation: fadeInDown 0.6s ease-out;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #e50914, #ff6b6b, #ffa502);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
  max-width: 640px; margin: 0 auto 28px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-search-wrap { max-width: 580px; margin: 0 auto 24px; animation: fadeInUp 0.6s ease-out 0.3s both; }

.hero-search {
  display: flex; align-items: center;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-full); padding: 4px 4px 4px 20px;
  transition: var(--transition);
}

.hero-search:hover { border-color: var(--border-hover); }

.hero-search svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }

.hero-search .placeholder {
  color: var(--text-muted); padding: 14px 14px; font-size: 16px; width: 100%;
}

.hero-search .btn-search {
  padding: 10px 28px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #b20710);
  border: none; color: white; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; font-family: inherit; flex-shrink: 0; display: inline-block;
}

.hero-search .btn-search:hover {
  transform: scale(1.02); box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.hero-cta { margin-top: 12px; animation: fadeInUp 0.6s ease-out 0.35s both; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 36px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #b20710);
  border: none; color: white; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: inherit;
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 12px 40px rgba(229, 9, 20, 0.5);
}

.btn-primary svg { width: 20px; height: 20px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: var(--radius-full);
  background: transparent; border: 2px solid var(--border-hover);
  color: var(--text-primary); font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}

.btn-outline:hover { border-color: var(--accent); background: rgba(229, 9, 20, 0.08); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 36px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat { text-align: center; }

.hero-stat .num {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, #f5f5f7, #a1a1aa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-stat .label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== FEATURES ===== */
.features-section, .seo-section, .faq-section { padding: 60px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}

.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 2px;
}

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 40px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.feature-card {
  padding: 28px 24px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(229, 9, 20, 0.1); margin-bottom: 16px;
}

.feature-icon svg { width: 24px; height: 24px; color: var(--accent); }

.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== SEO CONTENT ===== */
.seo-content { max-width: 860px; margin: 0 auto; }

.seo-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700;
  margin: 36px 0 16px; color: var(--text-primary);
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content h3 {
  font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px;
  padding-left: 16px; border-left: 3px solid var(--accent); color: var(--text-primary);
}

.seo-content p { font-size: 0.96rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

.seo-content ul { margin: 12px 0 20px; }

.seo-content li {
  position: relative; padding-left: 24px; font-size: 0.95rem;
  color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px;
}

.seo-content li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  font-size: 0.85rem; color: var(--accent); font-weight: 700;
}

.seo-content strong { color: var(--text-primary); }

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

.faq-item {
  border-radius: var(--radius-md); background: var(--bg-card);
  border: 1px solid var(--border); overflow: hidden; transition: var(--transition);
}

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

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

.faq-question .icon {
  width: 24px; height: 24px; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: transform 0.3s ease; color: var(--text-muted);
}

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

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 20px; }

.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }

.faq-answer p { font-size: 0.94rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== FOOTER ===== */
footer { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 40px; }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.footer-inner p { font-size: 0.82rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 16px; }

.footer-links a { font-size: 0.82rem; color: var(--text-muted); transition: var(--transition); }

.footer-links a:hover { color: var(--text-primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); padding: 16px 20px; gap: 4px; border-bottom: 1px solid var(--border);
  }
  .nav-links.mobile-open a { width: 100%; padding: 12px 16px; }
  .header-search { max-width: 200px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .hero { padding: 100px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius-md); padding: 8px; gap: 8px; }
  .hero-search .placeholder { padding: 12px; text-align: center; }
  .hero-search .btn-search { width: 100%; padding: 12px; text-align: center; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 1.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
