/* ===== CSS Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1a1a2e;
  --secondary: #e94560;
  --accent: #f5c518;
  --bg: #f8f9fa;
  --text: #222;
  --text-light: #555;
  --white: #fff;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: 0.3s ease;
  --glass-bg: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.25);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #c0392b; }
img, svg { max-width: 100%; display: block; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; }
.logo svg { width: 40px; height: 40px; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 28px; }
nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; padding: 4px; }

/* ===== Hero Section (Gradient Banner + Glass) ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  border-radius: 50% 50% 0 0;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 36px; opacity: 0.9; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: #e0b014; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(245,197,24,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 16px; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; }

/* ===== Grids ===== */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards (Rounded + Glass + Hover) ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: var(--glass-border);
  background: var(--glass-bg);
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }

/* ===== About Section ===== */
.about-content { display: flex; gap: 48px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--text-light); }
.about-visual {
  flex: 1;
  background: linear-gradient(135deg, #e94560, #f5c518);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 18px 0; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 4px 0;
  color: var(--text);
}
.faq-question:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-question .icon { transition: transform 0.3s; font-size: 1.2rem; }
.faq-item.active .faq-question .icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-light);
  padding: 0 0 0 8px;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 12px 0 8px 8px; }

/* ===== HowTo ===== */
.howto-steps { counter-reset: step; display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin: 0 auto; }
.howto-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.howto-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.howto-step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--secondary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.howto-step h4 { font-size: 1.1rem; margin-bottom: 6px; }
.howto-step p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.testimonial-card p { font-style: italic; color: var(--text-light); margin-bottom: 16px; }
.testimonial-card .author { font-weight: 600; color: var(--primary); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 12px; color: var(--text-light); }
.contact-info strong { color: var(--text); }

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--accent); margin-bottom: 16px; font-size: 1.1rem; }
.footer-grid a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(233,69,96,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: scale(1.1); }

/* ===== Animations (Scroll & Hover) ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
section {
  animation: fadeInUp 0.6s ease-out both;
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }

.card, .howto-step, .testimonial-card {
  animation: fadeInUp 0.5s ease-out both;
}
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.howto-step:nth-child(2) { animation-delay: 0.1s; }
.howto-step:nth-child(3) { animation-delay: 0.2s; }
.howto-step:nth-child(4) { animation-delay: 0.3s; }
.howto-step:nth-child(5) { animation-delay: 0.4s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  nav { display: none; flex-direction: column; width: 100%; gap: 12px; padding: 16px 0 8px; }
  nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0 80px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-content { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #e0e0e0;
    --text-light: #aaa;
    --white: #1e1e1e;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
  }
  .card, .howto-step, .testimonial-card { background: #2a2a2a; }
  .faq-item { border-color: #333; }
  .hero { background: linear-gradient(135deg, #0a0a1a, #111133); }
  .about-visual { background: linear-gradient(135deg, #c0392b, #e0b014); }
}