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

:root {
  --white: #ffffff;
  --accent: #6C7A6C;
  --accent-light: #f4f6f4;
  --accent-lighter: #e8ece8;
  --accent-subtle: #f9faf9;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e5e7e5;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.nav-brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.lang-switch svg {
  width: 14px;
  height: 14px;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--accent-subtle) 0%, var(--white) 100%);
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero .description {
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: var(--text-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #333;
  opacity: 1;
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== APP OVERVIEW ===== */
.overview {
  background: var(--white);
}

.overview-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.overview-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== FEATURES GRID ===== */
.features {
  background: var(--accent-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(108, 122, 108, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--white);
}

.how-it-works-image {
  max-width: 700px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== COMMUNITY GUIDELINES ===== */
.guidelines {
  background: var(--accent-subtle);
}

.guidelines-content {
  max-width: 720px;
  margin: 0 auto;
}

.guidelines-content > p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.guidelines-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.guidelines-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.guidelines-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 2px;
}

.guidelines-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* ===== FAQ ===== */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

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

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

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

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--accent-subtle);
  text-align: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

.contact-email svg {
  width: 20px;
  height: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--white);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ===== LEGAL PAGES ===== */
.legal {
  padding: 60px 0 80px;
  min-height: calc(100vh - 64px - 97px);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-content .legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 14px;
  padding-left: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 4px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  section {
    padding: 56px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}
