/* ============ WAKEY WEBSITE STYLES ============ */
/* Design: Dark theme matching the Wakey app */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --clay: #e07a5f;
  --clay-hover: #c96a52;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --green: #4ade80;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--clay-hover);
}

/* ============ NAVIGATION ============ */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.hero-logo {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  border-radius: 28px;
  margin: 0 auto 24px auto;
  box-shadow: 0 8px 32px rgba(224, 122, 95, 0.3);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

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

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-switcher a {
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--text-primary);
  border-color: var(--border);
}

/* ============ HERO ============ */

.hero {
  padding: 160px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero h1 .accent {
  color: var(--clay);
}

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

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  height: 54px;
}

/* ============ FEATURES ============ */

.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ BLOG / INSIGHTS ============ */

.blog-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
  color: var(--text-primary);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  color: var(--text-primary);
}

.blog-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--clay);
  background: rgba(224, 122, 95, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
}

/* ============ CTA ============ */

.cta {
  padding: 80px 24px;
  text-align: center;
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

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

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

/* ============ BLOG POST PAGE ============ */

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.post-back {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.post-back:hover {
  color: var(--text-primary);
}

.post h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.post-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.post-content ul, .post-content ol {
  color: var(--text-secondary);
  margin: 0 0 16px 24px;
  font-size: 16px;
  line-height: 1.7;
}

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

.post-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.post-cta h3 {
  margin-bottom: 12px;
}

.post-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============ LEGAL PAGES ============ */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  margin: 0 0 16px 24px;
}

.legal a {
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .hero h1, .hero .subtitle {
    font-size: 36px;
  }

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

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

  .nav-links {
    display: none;
  }

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

  .post h1 {
    font-size: 28px;
  }

  .legal h1 {
    font-size: 28px;
  }
}
