/* ============================================
   Weight Wingman - Stylesheet
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  --color-primary: #ffffff;
  --color-primary-dark: #d4d4d4;
  --color-accent: #a0a0a0;
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-text: #f5f5f5;
  --color-text-muted: #888888;
  --color-border: #222222;
  --color-card-bg: #141414;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #d4d4d4;
}

ul {
  list-style: none;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #d4d4d4;
  color: #0a0a0a;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #333333;
}

.btn-outline:hover {
  background: #ffffff;
  color: #0a0a0a;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #0a0a0a;
}

.btn-sm:hover {
  background: #d4d4d4;
  color: #0a0a0a;
}

/* --- Section Titles --- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

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

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

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

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

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

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

.nav-links a {
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-store-badge img {
  height: 50px;
  width: auto;
}

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

.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 56px;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

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

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 620px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 2px solid var(--color-border);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--shadow);
}

.pricing-card-featured {
  border-color: #ffffff;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-period {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.pricing-features li::before {
  content: "\2713 ";
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 8px;
}

.pricing-trust {
  text-align: center;
  margin-top: 36px;
}

.trust-badge {
  display: inline-block;
  background: var(--color-card-bg);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ============================================
   Blog Preview (Landing Page)
   ============================================ */
.blog-preview {
  padding: 80px 0;
}

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

.blog-card {
  display: block;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  color: var(--color-text);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--color-text);
}

.blog-card-content {
  padding: 28px;
}

.blog-card time {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h2,
.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.4;
}

.blog-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.blog-preview-cta {
  text-align: center;
  margin-top: 36px;
}

/* ============================================
   Blog Listing
   ============================================ */
.blog-listing {
  padding: 60px 0 80px;
}

.blog-listing h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.blog-listing-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================
   Blog Post
   ============================================ */
.post {
  padding: 60px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.post-body p {
  margin-bottom: 16px;
}

.post-body ul,
.post-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body blockquote {
  border-left: 4px solid #ffffff;
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
}

.post-body code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-body pre {
  background: var(--color-bg-alt);
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* Post Footer & CTA */
.post-footer {
  margin-top: 60px;
}

.post-cta {
  text-align: center;
  padding: 40px 28px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.post-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   Page Content (Privacy, etc.)
   ============================================ */
.page-content {
  padding: 60px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  text-align: center;
  padding: 120px 24px;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #000000;
  color: #fff;
  padding: 60px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand img {
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

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

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 32px;
  }

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

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

  .hero-description {
    max-width: 100%;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
    border-radius: 36px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

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

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

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

  .post-header h1 {
    font-size: 1.7rem;
  }

  .post {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-links {
    gap: 32px;
  }
}
