:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-soft: #edf4ff;
  --text: #102949;
  --muted: #60718a;
  --navy: #102949;
  --navy-deep: #0b1d33;
  --border: #dde7f2;
  --brand: #f36b5a;
  --brand-dark: #e8563d;
  --shadow: 0 12px 30px rgba(16, 41, 73, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main,
.page-shell,
.tool-page-shell,
#main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1230px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(16, 41, 73, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand-wrap,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(16, 41, 73, 0.08);
  box-shadow: 0 8px 18px rgba(16, 41, 73, 0.08);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--navy);
}

.brand-text {
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.main-nav a {
  position: relative;
  padding-bottom: 6px;
  color: rgba(16, 41, 73, 0.9);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.main-nav a span {
  font-size: 0.78rem;
  vertical-align: middle;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7fb;
  border: 1px solid rgba(16, 41, 73, 0.08);
  border-radius: 999px;
  min-width: 220px;
  padding: 0 14px 0 18px;
  height: 44px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--navy);
  outline: none;
  font-size: 0.95rem;
}

.search-box button {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 10px;
  padding: 42px 0 24px;
}

.hero-copy {
  padding: 20px 0 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 4.2vw, 5.2rem);
  line-height: 0.98;
  color: var(--navy);
  letter-spacing: -0.08em;
}

.hero-copy p {
  margin: 24px 0 28px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 500px;
}

.cta-btn,
.tool-btn,
.learn-btn,
.explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(243, 107, 90, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta-btn:hover,
.tool-btn:hover,
.learn-btn:hover,
.explore-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}

.cta-btn {
  padding: 16px 26px;
  font-size: 1.08rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-visual img {
  width: min(100%, 620px);
  height: 520px;
  object-fit: cover;
  border-radius: 28px 0 0 28px;
  box-shadow: 0 18px 36px rgba(16, 41, 73, 0.1);
}

.tools-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 41, 73, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 30px 32px 22px;
  margin-top: 10px;
}

.tools-title {
  text-align: center;
  margin-bottom: 20px;
}

.spark {
  display: inline-block;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.tools-title h2 {
  margin: 0;
  font-size: clamp(2rem, 2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.tools-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  background: rgba(240, 246, 255, 0.7);
  border: 1px solid rgba(16, 41, 73, 0.08);
  border-radius: 18px;
  padding: 22px 18px 18px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 41, 73, 0.05);
}

.tool-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.tool-card p {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tool-btn {
  margin-top: 18px;
  padding: 12px 18px;
  width: fit-content;
  font-size: 0.93rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(16, 41, 73, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(16, 41, 73, 0.12);
}

.site-header .brand span:last-child {
  font-size: 1.9rem;
}

.tool-page-shell {
  padding: 36px 0 48px;
}

.compact-container {
  max-width: 1100px;
}

.page-back-link {
  margin-bottom: 18px;
}

.page-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}

.section-heading {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.panel {
  background: #fff;
  border: 1px solid rgba(16, 41, 73, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.panel h2,
.panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.7;
}

.panel ul,
.panel ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 22px rgba(243, 107, 90, 0.2);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  background: #f3f7ff;
  border-color: rgba(16, 41, 73, 0.08);
  color: var(--navy);
}

.button.danger {
  background: #fff1f1;
  border-color: rgba(190, 43, 43, 0.2);
  color: #b42318;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field-group label {
  font-weight: 700;
  color: var(--navy);
}

.field-group input,
.field-group select,
.field-group textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.field-group textarea,
.toolbar textarea {
  resize: vertical;
}

.feedback {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.feedback.error {
  color: #b42318;
}

.feedback.success {
  color: #166534;
}

.hidden {
  display: none !important;
}

.empty-state {
  color: var(--muted);
  font-size: 0.97rem;
}

.tracker-list,
.summary-grid {
  margin-top: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  background: #f3f7ff;
  border: 1px solid rgba(16, 41, 73, 0.06);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.5rem;
}

.application-card {
  background: #f8fbff;
  border: 1px solid rgba(16, 41, 73, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 12px;
}

.application-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-card h4 {
  margin: 0 0 4px;
  color: var(--navy);
}

.application-card p {
  margin: 6px 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecf6ee;
  color: #176a3b;
  font-size: 0.75rem;
  font-weight: 700;
}

.application-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.edit-btn,
.delete-btn {
  border: 1px solid rgba(16, 41, 73, 0.08);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.delete-btn {
  color: #b42318;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 780px) {
  .tool-grid,
  .summary-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .site-header .brand span:last-child {
    font-size: 1.5rem;
  }

  .header-inner,
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    gap: 12px 16px;
  }

  .button {
    width: 100%;
  }
}

.why-section {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 41, 73, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.why-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.star {
  color: var(--brand);
  font-size: 1.7rem;
}

.why-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.7rem);
  letter-spacing: -0.05em;
  color: var(--navy);
}

.checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 600;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: 900;
}

.learn-btn,
.explore-btn {
  padding: 14px 20px;
  font-size: 0.98rem;
  width: fit-content;
}

.why-right {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: 10px;
}

.globe-wrap {
  background: rgba(225, 236, 250, 0.8);
  border-radius: 26px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.globe-wrap img {
  width: min(100%, 250px);
  height: auto;
}

.why-copy-box {
  background:
    linear-gradient(135deg, rgba(7, 21, 38, 0.8), rgba(16, 41, 73, 0.36)),
    url('Global Location Pin Banner (1).webp') center center / cover no-repeat;
  border-radius: 26px;
  padding: 30px 26px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.why-copy-box h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.why-copy-box p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 36ch;
}

.why-copy-box .explore-btn {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(16, 41, 73, 0.18);
}

.why-copy-box .explore-btn:hover {
  background: #f5f7fb;
}

.site-footer {
  margin-top: auto;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.76);
  padding-top: 26px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.3fr;
  gap: 28px;
  padding-bottom: 26px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.footer-brand .brand-icon svg {
  fill: #fff;
}

.footer-brand-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
}

.footer-links h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
}

.subscribe-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  min-width: 0;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.subscribe-form button {
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    justify-content: center;
  }

  .hero-visual img {
    border-radius: 24px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-section {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }

  .search-box {
    width: 100%;
  }

  .tool-card,
  .tools-grid,
  .footer-inner,
  .why-right {
    grid-template-columns: 1fr;
  }

  .globe-wrap {
    display: none;
  }

  .tools-grid {
    display: grid;
  }

  .why-right {
    display: grid;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 1.7rem;
  }

  .main-nav {
    font-size: 0.85rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .cta-btn,
  .tool-btn,
  .learn-btn,
  .explore-btn {
    width: 100%;
  }

  .tools-panel,
  .why-section {
    padding-left: 18px;
    padding-right: 18px;
  }
}
