:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --text: #1c1917; /* stone-900 */
  --text-muted: #6b6661; /* stone-500 */
  --brand: #0d9488; /* teal-600 */
  --brand-dark: #0f766e; /* teal-700 */
  --brand-light: #f0fdfa; /* teal-50 */
  --border: #e7e5e4; /* stone-200 */
  --border-dark: #d6d3d1; /* stone-300 */
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout Wrapper */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

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

.btn-secondary:hover {
  background-color: var(--bg);
  border-color: var(--border-dark);
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-icon {
  background-color: var(--brand-light);
  color: var(--brand);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

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

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--brand);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background-color: #ffffff;
  padding: 32px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f4;
}

.mobile-menu.active {
  display: flex;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #115e59 0%, #0d9488 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.hero-buttons .btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-buttons .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Categories Grid Section */
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.category-section {
  padding: 80px 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(28, 25, 23, 0.04);
  border-color: var(--brand);
  background-color: var(--brand-light);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s ease;
}

.category-card:hover .card-icon {
  background-color: var(--brand);
  color: #ffffff;
}

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

.card-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Value Props Row */
.props-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.props-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.prop-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.prop-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.prop-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.prop-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* How It Works Section */
.how-section {
  padding: 80px 0;
  background-color: #fcfbfa;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Hot Finds Section */
.hot-section {
  padding: 80px 0;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
}

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

.hot-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.hot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  border-color: var(--brand);
}

.hot-img-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  position: relative;
}

.hot-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hot-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.hot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hot-price {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.hot-rating {
  font-size: 0.85rem;
  background-color: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.hot-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.hot-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
}

.hot-card .btn {
  width: 100%;
  margin-top: 8px;
}

/* Guides Section */
.guides-section {
  padding: 80px 0;
}

.guides-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.guides-header .section-title {
  text-align: left;
  margin-bottom: 0;
}

.guides-header a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guides-header a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

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

.guide-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  border-color: var(--brand);
}

.guide-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 3rem;
}

.guide-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.guide-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-readmore {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

/* Testimonials Section */
.reviews-section {
  padding: 80px 0;
  background-color: #fbfbf9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.review-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.reviewer-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.reviewer-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--card);
}

.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--card);
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.04);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.faq-header:hover {
  color: var(--brand);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--brand);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-item.active .faq-content {
  padding-bottom: 20px;
}

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

/* Final CTA Section */
.cta-banner {
  background-color: #f0fdfa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-banner .hero-buttons {
  justify-content: center;
}

/* Footer */
footer {
  background-color: #faf9f6;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive Grid */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .guides-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }
  .mobile-menu {
    top: 64px;
    height: calc(100vh - 64px);
  }
  nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Detail Page specific styling */
.post-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.post-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-category {
  background-color: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.post-title-main {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

.post-content {
  padding: 32px 0 48px;
  color: #292524; /* stone-800 */
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  margin: 32px 0 16px;
  color: var(--text);
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.post-content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-muted);
  margin: 24px 0;
}
