@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --navy: #0b1d2e;
  --ocean: #1b4d7a;
  --sky: #4aa3df;
  --sand: #f6f0e8;
  --mint: #39c0a8;
  --ink: #0f172a;
  --soft: #f2f6f9;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}


* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--navy);
}

.navbar {
  background: rgba(246, 240, 232, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.glass-nav {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
}

.nav-link {
  font-weight: 600;
  color: var(--ocean);
}

.nav-link:hover {
  color: var(--mint);
}

.hero {
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at top left, #1b4d7a 0%, #0b1d2e 60%, #081523 100%);
  color: #fff;
}

.hero .lead,
.hero h1,
.hero p {
  color: #f8fafc;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.eyebrow.dark {
  color: #334155;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--soft);
}

.section-title {
  margin-bottom: 2.5rem;
}

.tool-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 3.25rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

.tool-card.card-bg {
  --card-bg: url("https://source.unsplash.com/800x600/?abstract");
}

.tool-card.card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at top right, rgba(57, 192, 168, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.75)),
    var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.tool-card::after {
  content: "Open";
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--mint);
  color: #0b1d2e;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 16px rgba(57, 192, 168, 0.25);
  z-index: 1;
}

.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mini-links a {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.calculator-hero {
  padding: 3rem 0 1rem;
  background: linear-gradient(120deg, #f6f0e8 10%, #eef7ff 100%);
}

.calculator-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.form-label {
  font-weight: 600;
}

.result-box {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.footer {
  background: var(--navy);
  color: #e2e8f0;
  padding: 2rem 0;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #f8fafc;
}

.footer-text {
  color: #cbd5f5;
  margin-bottom: 0;
}

.footer h6 {
  color: #f8fafc;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.btn-primary {
  background-color: var(--mint);
  border-color: var(--mint);
  color: #0b1d2e;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #2aa790;
  border-color: #2aa790;
  color: #0b1d2e;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
}

.badge-soft {
  background: rgba(57, 192, 168, 0.15);
  color: var(--mint);
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero {
    padding: 4.5rem 0 4rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.rich-editor {
  min-height: 420px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
  background: #fff;
  outline: none;
}

.rich-editor h1,
.rich-editor h2,
.rich-editor h3 {
  margin-top: 1rem;
}

.pdf-canvas-wrapper {
  position: relative;
  width: 100%;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}

#pdfCanvas,
#overlayCanvas {
  display: block;
  width: 100%;
}

#overlayCanvas {
  position: absolute;
  top: 0;
  left: 0;
}

.image-preview {
  min-height: 260px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

.result-label {
  font-size: 0.85rem;
  color: #64748b;
}

.result-value {
  font-weight: 700;
  color: var(--navy);
}

.ad-slot {
  border: 1px dashed rgba(15, 23, 42, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-weight: 600;
  margin: 2rem 0;
}
