/* ============================================
   ZapClaw — Shared Styles
   Brand: Red #B71C1C + Black
   ============================================ */

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

:root {
  --red-900: #7F0000;
  --red-800: #8E0000;
  --red-700: #B71C1C;
  --red-600: #C62828;
  --red-500: #D32F2F;
  --red-400: #E53935;
  --red-300: #EF5350;
  --red-100: #FFCDD2;
  --red-50:  #FFEBEE;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-700); text-decoration: none; }
a:hover { color: var(--red-900); text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.3; }
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p  { color: var(--gray-600); font-size: 17px; }

/* --- Layout Helpers --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red-700); color: var(--white); }
.btn-primary:hover { background: var(--red-900); color: var(--white); }
.btn-outline { background: transparent; color: var(--red-700); border: 2px solid var(--red-700); }
.btn-outline:hover { background: var(--red-50); color: var(--red-900); border-color: var(--red-900); }

/* ============================================
   Header / Navbar
   ============================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  padding: 0 24px;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo svg { height: 32px; width: auto; }
.header-logo span { font-size: 20px; font-weight: 700; color: var(--gray-900); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--gray-600); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--red-700); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--gray-700); }

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .nav-toggle { display: block; }
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover:not(.active) {
  color: var(--gray-700);
}

/* ============================================
   Hero
   ============================================ */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--red-700); }
.hero p {
  font-size: clamp(17px, 2.5vw, 20px);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Features
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--red-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 15px; }

/* ============================================
   Steps
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 48px;
  text-align: center;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--red-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--gray-400);
  transition: transform 0.2s;
}
.faq-question.active::after {
  content: '\2212';
  color: var(--red-700);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: var(--red-900);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--red-100); margin-bottom: 32px; font-size: 18px; }
.btn-cta-white {
  background: var(--white);
  color: var(--red-700);
}
.btn-cta-white:hover {
  background: var(--gray-100);
  color: var(--red-900);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; color: var(--gray-400); }
.footer h4 { color: var(--gray-200); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--gray-400); font-size: 14px; }
.footer ul a:hover { color: var(--red-300); text-decoration: none; }
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--red-300); text-decoration: none; }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-page h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.legal-page h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.legal-page p {
  margin-bottom: 12px;
  font-size: 16px;
}
.legal-page ul, .legal-page ol {
  margin: 0 0 16px 24px;
}
.legal-page li {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--gray-600);
}
.legal-page strong { color: var(--gray-900); }
.legal-page a { color: var(--red-700); }
