/* ============================================================
   Wavelogs — Static Site Styles
   Premium, minimal, Apple-inspired
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f8f8;
  --color-bg-warm: #fafaf9;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #9a9a9f;
  --color-accent: #FF4D1E;
  --color-accent-hover: #e8441a;
  --color-border: #e5e5e7;
  --color-border-light: #f0f0f2;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1080px;
  --max-width-narrow: 740px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  letter-spacing: -0.01em;
}

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

.nav-links a.active {
  color: var(--color-text);
}

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

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

main {
  flex: 1;
}

/* --- Home: Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 200px);
  padding: 80px 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 640px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 48px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

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

.btn--secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border-light);
  padding: 40px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

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

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

/* --- Help Page --- */
.page-header {
  padding: 72px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FAQ / Accordion */
.help-section {
  padding-bottom: 80px;
}

.help-category {
  margin-bottom: 48px;
}

.help-category h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  gap: 16px;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-secondary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.faq-icon::before {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

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

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

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* Contact card */
.contact-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 16px;
}

.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-card a.btn {
  font-size: 0.88rem;
}

/* --- Privacy Policy Page --- */
.legal-content {
  padding: 16px 0 96px;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

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

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

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

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

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

.legal-content a:hover {
  opacity: 0.75;
}

.legal-content strong {
  font-weight: 600;
  color: var(--color-text);
}

.legal-content hr {
  border: none;
  height: 1px;
  background: var(--color-border-light);
  margin: 40px 0;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 0;
  border: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border-light);
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .container, .container--narrow {
    padding: 0 20px;
  }

  .hero {
    padding: 56px 20px;
    min-height: calc(100vh - var(--nav-height) - 160px);
  }

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

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 36px;
  }

  .page-header {
    padding: 48px 0 28px;
  }

  .page-header h1 {
    font-size: 1.9rem;
  }

  .footer {
    padding: 28px 20px;
  }

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

  .contact-card {
    padding: 28px 20px;
  }

  .legal-content h2 {
    margin-top: 36px;
  }
}

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 12px;
  }

  .btn {
    width: 100%;
  }
}
