@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --background: hsl(200, 20%, 98%);
  --foreground: hsl(210, 30%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 30%, 15%);
  --primary: hsl(197, 100%, 47%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(200, 20%, 95%);
  --secondary-foreground: hsl(210, 30%, 15%);
  --muted: hsl(200, 15%, 93%);
  --muted-foreground: hsl(210, 10%, 45%);
  --accent: hsl(197, 100%, 94%);
  --accent-foreground: hsl(197, 100%, 30%);
  --border: hsl(200, 15%, 90%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --ring: hsl(197, 100%, 47%);
  --radius: 0.75rem;
  --hero-gradient: linear-gradient(135deg, hsl(200, 20%, 96%) 0%, hsl(197, 60%, 92%) 100%);
  --card-shadow: 0 1px 3px 0 hsla(210, 30%, 15%, 0.06), 0 1px 2px -1px hsla(210, 30%, 15%, 0.06);
  --card-shadow-hover: 0 10px 25px -5px hsla(197, 100%, 47%, 0.1), 0 8px 10px -6px hsla(197, 100%, 47%, 0.05);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand .icon-box {
  width: 36px; height: 36px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.navbar-brand .icon-box svg { width: 20px; height: 20px; color: var(--primary-foreground); fill: currentColor; stroke: none; }
.navbar-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--foreground); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); transition: all 0.2s;
}
.nav-links a:hover { color: var(--foreground); background: var(--secondary); }

.mobile-toggle {
  display: none; padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--foreground);
}
.mobile-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mobile-menu {
  display: none; border-top: 1px solid var(--border); background: var(--card); padding: 0.75rem 1rem;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--secondary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* ===== HERO ===== */
.hero { background: var(--hero-gradient); overflow: hidden; }
.hero .container { padding-top: 4rem; padding-bottom: 4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: var(--accent); color: var(--accent-foreground);
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; color: var(--foreground); margin-bottom: 0.5rem; }
.hero h1 span { color: var(--primary); }
.hero-desc { color: var(--muted-foreground); font-size: 1.125rem; margin-top: 1rem; margin-bottom: 2rem; max-width: 28rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; }
.hero-image-wrapper img { width: 100%; max-width: 512px; border-radius: 1rem; object-fit: cover; box-shadow: 0 20px 40px -10px hsla(210,30%,15%,0.15); }
.floating-badge {
  position: absolute; bottom: -1rem; left: 0;
  background: var(--card); border-radius: 0.75rem; box-shadow: 0 4px 12px hsla(210,30%,15%,0.1);
  padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem;
}
.floating-badge .badge-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.floating-badge .badge-icon svg { width: 20px; height: 20px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 2; }
.floating-badge .badge-text p:first-child { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.floating-badge .badge-text p:last-child { font-size: 0.75rem; color: var(--muted-foreground); }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ===== FEATURES BAR ===== */
.features-bar { border-bottom: 1px solid var(--border); background: var(--card); }
.features-bar .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-item .title { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.feature-item .desc { font-size: 0.75rem; color: var(--muted-foreground); }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }

/* ===== ARTICLES ===== */
.articles { padding: 5rem 0; background: var(--background); }
.articles .section-header { text-align: center; margin-bottom: 3rem; }
.articles .section-header .label { color: var(--primary); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.articles .section-header h2 { font-size: 2rem; font-weight: 800; color: var(--foreground); }
.articles .section-header .sub { color: var(--muted-foreground); margin-top: 0.75rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.article-card {
  display: block; background: var(--card); border-radius: 0.75rem; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: box-shadow 0.3s;
}
.article-card:hover { box-shadow: var(--card-shadow-hover); }
.article-card .img-wrap { overflow: hidden; }
.article-card img { width: 100%; height: 192px; object-fit: cover; transition: transform 0.5s; }
.article-card:hover img { transform: scale(1.05); }
.article-card .content { padding: 1.25rem; }
.article-card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary);
  background: var(--accent); padding: 0.25rem 0.625rem; border-radius: 9999px; margin-bottom: 0.75rem;
}
.article-card h3 { font-weight: 700; color: var(--foreground); margin-bottom: 0.5rem; line-height: 1.4; }
.article-card .desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.article-card .read-more { color: var(--primary); font-size: 0.875rem; font-weight: 600; margin-top: 0.75rem; display: inline-block; }
.article-card:hover .read-more { text-decoration: underline; }

@media (max-width: 1024px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

/* ===== NEWSLETTER ===== */
.newsletter { padding: 5rem 0; background: var(--hero-gradient); }
.newsletter .inner { max-width: 36rem; margin: 0 auto; text-align: center; }
.newsletter h2 { font-size: 2rem; font-weight: 800; color: var(--foreground); margin-bottom: 0.75rem; }
.newsletter .sub { color: var(--muted-foreground); margin-bottom: 2rem; }
.newsletter form { display: flex; gap: 0.75rem; }
.newsletter input {
  flex: 1; padding: 0.75rem 1.25rem; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--card); font-size: 0.875rem; font-family: inherit; outline: none;
}
.newsletter input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px hsla(197,100%,47%,0.2); }

@media (max-width: 640px) { .newsletter form { flex-direction: column; } }

/* ===== FOOTER ===== */
.footer { background: var(--foreground); padding: 2.5rem 0; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .icon-box {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.footer-brand .icon-box svg { width: 16px; height: 16px; color: var(--primary-foreground); fill: currentColor; stroke: none; }
.footer-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--background); }
.footer-info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: hsla(200,20%,98%,0.6); }
.footer-info a:hover { color: var(--background); }
.footer-info .info-item { display: flex; align-items: center; gap: 0.5rem; }
.footer-info .info-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: hsla(200,20%,98%,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--background); }

.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsla(200,20%,98%,0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 0.875rem; color: hsla(200,20%,98%,0.5); }
.payment-cards { display: flex; align-items: center; gap: 0.75rem; }
.payment-cards span { font-size: 0.875rem; color: hsla(200,20%,98%,0.5); }
.payment-cards .card-icon { background: var(--background); border-radius: 4px; padding: 0.25rem 0.5rem; display: flex; align-items: center; justify-content: center; }
.payment-cards .card-icon svg { width: 40px; height: 28px; }

/* ===== PAGE CONTENT (articles/legal pages) ===== */
.page-hero { background: var(--hero-gradient); overflow: hidden; }
.page-hero .container { padding-top: 4rem; padding-bottom: 4rem; }
.page-hero .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary);
  background: var(--accent); padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; color: var(--foreground); margin-bottom: 1rem; }
.page-hero p { font-size: 1.125rem; color: var(--muted-foreground); max-width: 42rem; }

.page-content { padding: 4rem 0; }
.page-content .container { max-width: 768px; }
.page-content .featured-img { width: 100%; border-radius: 0.75rem; margin-bottom: 2.5rem; object-fit: cover; max-height: 384px; }
.page-content .content-section { margin-bottom: 2rem; }
.page-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.75rem; }
.page-content p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1rem; }
.page-content ul { list-style: disc; padding-left: 1.5rem; margin-top: 0.5rem; }
.page-content ul li { color: var(--muted-foreground); margin-bottom: 0.5rem; line-height: 1.6; }
.page-content ul li strong { color: var(--foreground); }

.page-content .legal-date { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.page-content .legal-section h2 { font-size: 1.25rem; }

@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
