:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #16a34a;
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 10px;
  --max-width: 1080px;
}

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

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

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.navbar-brand { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.navbar-brand span { color: var(--teal); }
.navbar-links { display: flex; gap: 1.75rem; list-style: none; font-size: 0.9rem; font-weight: 500; }
.navbar-links a { color: var(--text-muted); }
.navbar-links a:hover { color: var(--teal); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3b4f 100%);
  color: #fff; padding: 4rem 0 3.5rem;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 560px; }
.hero-search { margin-top: 1.5rem; display: flex; gap: 0.5rem; max-width: 500px; }
.hero-search input {
  flex: 1; padding: 0.75rem 1rem; border: none; border-radius: var(--radius);
  font-size: 1rem; outline: none;
}
.hero-search button {
  padding: 0.75rem 1.25rem; background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius); font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: var(--teal-dark); }

/* Section */
.section { padding: 3rem 0; }
.section-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.card .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.card .tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 20px;
}
.tag-writer { background: #dbeafe; color: #1e40af; }
.tag-design { background: #fce7f3; color: #9d174d; }
.tag-code { background: #d1fae5; color: #065f46; }
.tag-video { background: #fef3c7; color: #92400e; }
.tag-audio { background: #ede9fe; color: #5b21b6; }
.tag-chat { background: #ccfbf1; color: #115e59; }

.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.card-footer .rating { color: var(--amber); font-weight: 700; }
.card-footer .price { color: var(--text-muted); }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 2.5rem 0; margin-top: 2rem; }
.footer a { color: rgba(255,255,255,0.8); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hero h1 { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; text-align: center; }
}

/* Table */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.comparison-table th { background: var(--navy-light); color: #fff; padding: 0.7rem 1rem; text-align: left; }
.comparison-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:nth-child(even) { background: rgba(0,0,0,0.02); }

/* CTA */
.cta-box { background: linear-gradient(135deg, #f0fdfa, #ecfeff); border: 2px solid var(--teal); border-radius: var(--radius); padding: 1.5rem 2rem; margin: 2rem 0; }
.cta-box h3 { color: var(--teal-dark); margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-muted); font-size: 0.9rem; }

/* Article */
.article-content { max-width: 720px; margin: 0 auto; }
.article-content h2 { font-size: 1.4rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.article-content h3 { font-size: 1.1rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; color: #334155; }
.article-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.3rem; }
.article-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
