:root {
  --bg: #f5fafc;
  --card: #ffffff;
  --muted: #6b7280;
  --accent-red: #b91c1c;
  --accent-green: #15803d;
  --accent-gold: #fbbf24;
  --dark: #111827;
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at 0% 0%, #fee2e2 0, transparent 50%),
    radial-gradient(circle at 100% 0%, #dcfce7 0, transparent 55%),
    linear-gradient(180deg, #f9fafb 0, #eff6ff 40%, #fdf2f8 100%);
}

/* Layout */

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

header {
  background: linear-gradient(90deg, #7f1d1d, #b91c1c, #166534);
  color: white;
  padding: 14px 0;
  box-shadow: var(--shadow);
}

.nav {
  width: min(1100px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  gap: 8px;
  align-items: center;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.92;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(248, 250, 252, 0.2);
  transform: translateY(-1px);
}

/* Main */

main {
  width: min(1100px, 94%);
  margin: 30px auto 40px;
  flex: 1;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 28px 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fef2f2 0%, #fefce8 40%, #ecfdf3 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 10%, rgba(248, 250, 252, 0.8) 0, transparent 60%),
                    radial-gradient(circle at 80% 0%, rgba(239, 246, 255, 0.9) 0, transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 10px;
  color: #7f1d1d;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(148, 163, 184, 0.5);
}

.hero-right {
  position: relative;
  z-index: 1;
}

.hero-img-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  border: 4px solid rgba(248, 250, 252, 0.9);
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-tagline {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sections */

.section-title {
  text-align: center;
  font-size: 1.6rem;
  color: #7f1d1d;
  margin: 40px 0 18px;
}

/* Snapshots */

.snapshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tag-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 500;
}

/* Budget cards */

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.budget-card h3 {
  margin-top: 0;
}

.budget-card ul {
  padding-left: 18px;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Category strip with images */

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.category-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 150px;
  color: white;
}

.category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(185, 28, 28, 0.6));
}

.category-content {
  position: relative;
  z-index: 1;
  padding: 14px;
}

.category-content h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.category-content p {
  margin: 0;
  font-size: 0.9rem;
}

/* Blogs */

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.post {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.post img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.post-body {
  padding: 14px;
  flex: 1;
}

.post-body h4 {
  margin: 0 0 6px;
}

.post-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-footer {
  padding: 9px 14px 11px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Detail page */

.detail-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
}

.detail-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Ideas page layout */

.ideas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

/* Forms & legal */

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

/* Footer */

footer {
  background: #0b1120;
  color: #e5e7eb;
  padding: 24px 0 16px;
  margin-top: 40px;
}

.footer-inner {
  width: min(1100px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer-inner h3,
.footer-inner h4 {
  margin-bottom: 6px;
}

.footer-inner a {
  color: #bfdbfe;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-bottom {
  width: min(1100px, 94%);
  margin: 10px auto 0;
  text-align: center;
}

/* Utility */

.small {
  font-size: 0.85rem;
  color: #6b7280;
}

.center {
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-img-frame {
    max-height: 260px;
  }
  .ideas-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
}
