:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-alt: #e2eaee;
  --primary: #0f8b82;
  --primary-dark: #0a6358;
  --secondary: #1c255c;
  --accent: #f08b82;
  --text: #141b2b;
  --muted: #546073;
  --border: #d6dee5;
  --shadow: 0 20px 45px rgba(15, 53, 64, 0.12);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

main {
  flex: 1;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  position: sticky;
  top: 0;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 53, 64, 0.12);
  z-index: 20;
}

header .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--secondary);
}

.btn {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn.secondary {
  background: var(--secondary);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 53, 64, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media .wide-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section {
  padding: 3rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  margin: 0;
  color: var(--secondary);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.topic-card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(15, 53, 64, 0.08);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border 0.2s ease;
}

.topic-card:hover,
.topic-card:focus-within {
  border-color: var(--primary);
}

.topic-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.card {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 35px rgba(15, 53, 64, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card .tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--secondary);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card-body .read-more {
  text-align: right;
  margin-top: 0.5rem;
}

.card-body .read-more button {
  background: none;
  color: var(--primary);
  font-weight: 600;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-card .card-body {
  padding: 1rem 0 0;
}

.daily-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.daily-plan img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  object-fit: cover;
}

.daily-plan .plan-list {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 30px rgba(15, 53, 64, 0.07);
}

.daily-plan .plan-list ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.daily-plan .plan-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.daily-plan .plan-list li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.newsletter {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 53, 64, 0.08);
  border: 1px solid var(--border);
}

.newsletter h3 {
  margin-top: 0;
  color: var(--secondary);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
}

.button-row {
  display: flex;
  justify-content: flex-end;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hidden {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 34, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 30;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 1rem;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.disclaimer-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(15, 53, 64, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--secondary);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 40;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-box {
  background: rgba(15, 53, 64, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  font-weight: 600;
  color: var(--secondary);
}

.tool-section {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(15, 53, 64, 0.12);
  margin-bottom: 2rem;
}

.tool-section .section-title {
  margin-bottom: 1rem;
}

.tool-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.tool-layout form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tool-layout label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.tool-layout .button-row {
  display: flex;
  justify-content: flex-end;
}

.disclaimer-box {
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  background: var(--secondary);
  color: #fff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-grid h4 {
  margin-top: 0;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  transition: transform 0.2s ease;
}

.social-icons svg:hover {
  transform: translateY(-2px);
}

.drawer-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 53, 64, 0.35);
  display: none;
  z-index: 25;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer.open {
  display: block;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.drawer button.close-drawer {
  background: none;
  border: none;
  font-size: 1.2rem;
  align-self: flex-end;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.filter-separator {
  height: 1px;
  background: rgba(20, 30, 43, 0.1);
  margin: 0.8rem 0 1.5rem;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .drawer-toggle {
    display: inline-flex;
  }

  .hero-media .wide-media {
    border-radius: 1.25rem;
  }
  header .nav-inner {
    flex-wrap: wrap;
  }
  header nav {
    display: none;
  }
  .header-actions {
    margin-left: 0;
  }
}

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

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .newsletter form {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    flex-wrap: wrap;
  }

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

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .drawer-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-inner {
    padding: 0.75rem 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    padding: 2rem 0 1rem;
  }
}
