/* main.css */
:root {
  --brand-petrol: #00576b;
  --brand-petrol-dark: #004554;
  --brand-green: #7ac943;
  --brand-green-dark: #63ad31;
  --brand-text: #25343a;
  --brand-muted: #65747a;
  --brand-light: #f5f7f7;
  --brand-border: #dfe6e7;
  --white: #ffffff;
  
  --font-base: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --container-width: 1140px;
  --border-radius: 6px;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: var(--font-base);
  color: var(--brand-text);
  background-color: var(--white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-petrol);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-top: 0; margin-bottom: 1.5rem; }

a {
  color: var(--brand-petrol);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--brand-green);
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--brand-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-petrol);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo a span { color: var(--brand-green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  color: var(--brand-text);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-petrol);
  cursor: pointer;
  padding: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-green);
  color: var(--white) !important;
  border-color: var(--brand-green);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--brand-green);
  color: var(--white);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-light { background-color: var(--brand-light); }
.section-dark { background-color: var(--brand-petrol); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark a { color: var(--brand-green); }

/* Hero with Tech Background */
.hero {
  padding: 100px 0 80px;
  background-color: var(--brand-light);
  background-image: linear-gradient(rgba(245, 247, 247, 0.9), rgba(245, 247, 247, 0.9)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
}

.hero-inner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  color: var(--brand-green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.hero h1 { margin-top: 0; font-size: 3.2rem; }
.hero-subline { font-size: 1.25rem; color: var(--brand-muted); margin-bottom: 2rem; }

.hero-ctas {
  display: flex;
  gap: 15px;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  gap: 20px;
  color: var(--brand-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; font-weight: 500;}
.hero-trust svg { width: 18px; height: 18px; fill: var(--brand-green); }

/* Hero Visual SVG */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg {
  max-width: 100%;
  height: auto;
}

/* SVG Animations */
@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}

.pulsing-node {
  animation: pulse-dot 3s infinite ease-in-out;
  transform-origin: center;
}

.flowing-line {
  stroke-dasharray: 5, 5;
  animation: dash-flow 1s linear infinite;
}

/* Content Formatting */
.content-area {
  max-width: 850px;
  margin: 0 auto;
}
.content-area img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  margin-top: 1rem;
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.content-area blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--brand-green);
  background: var(--brand-light);
  font-style: italic;
  font-size: 1.1rem;
}

/* Grid / Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--border-radius);
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  height: 100%;
}

.card h3 { margin-top: 0; font-size: 1.3rem; }
.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--brand-green); }

/* FAQ Accordion */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--brand-border);
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-petrol);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-content {
  padding-bottom: 24px;
  display: none;
  color: var(--brand-muted);
}
.faq-btn[aria-expanded="true"] + .faq-content { display: block; }
.faq-btn svg { transition: transform 0.3s; width: 24px; height: 24px; fill: var(--brand-petrol); }
.faq-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Table */
.table-responsive { overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid var(--brand-border); }
th { background-color: var(--brand-light); font-weight: 600; color: var(--brand-petrol); }
td { color: var(--brand-muted); }

/* Forms */
.form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--brand-border);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  max-width: 700px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--brand-petrol); }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--brand-border);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--brand-text);
  background-color: var(--white);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(122, 201, 67, 0.2);
}
.checkbox-group { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-group input { margin-top: 5px; width: auto; }
.checkbox-group label { font-weight: normal; color: var(--brand-muted); font-size: 0.95rem; }
.form-msg { padding: 15px; border-radius: var(--border-radius); margin-bottom: 20px; }
.form-msg.success { background-color: rgba(122, 201, 67, 0.1); color: var(--brand-green-dark); border: 1px solid var(--brand-green); }
.form-msg.error { background-color: #fee; color: #c00; border: 1px solid #c00; }

/* Footer */
.site-footer {
  background-color: var(--brand-petrol-dark);
  color: var(--white);
  padding: 80px 0 30px;
}


footer .container {max-width:1500px;}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 { color: var(--brand-light); font-size: 1.2rem; margin-top: 0; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a9b5b8; }
.footer-links a:hover { color: var(--brand-green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #a9b5b8;
}

.footer-bottom  a { color: #a9b5b8; }


/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--brand-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0;
}

/* Custom List SVG Checkmarks (Ensure not cut off) */
li svg, .hero-trust svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  flex-shrink: 0 !important;
}

/* Mobile Tables: No Scroll, Stacked Comparison Cards */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: visible !important;
  }
  table, thead, tbody, th, td, tr {
    display: block !important;
    width: 100% !important;
  }
  thead {
    display: none !important; /* Hide headers on mobile comparison list */
  }
  tr {
    margin-bottom: 25px !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--border-radius) !important;
    background: var(--brand-light) !important;
    overflow: hidden !important;
  }
  td {
    padding: 15px !important;
    text-align: center !important;
    border-bottom: 1px solid var(--brand-border) !important;
  }
  td:first-child {
    background-color: var(--brand-petrol) !important;
    color: var(--white) !important;
    font-weight: bold !important;
  }
  td:last-child {
    background-color: var(--white) !important;
    color: var(--brand-text) !important;
    border-bottom: 0 !important;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-subline { font-size: 1.1rem; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 30px 20px;
    border-bottom: 1px solid var(--brand-border);
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  
  .main-nav.is-open { display: flex; }
  
  .nav-links { flex-direction: column; gap: 20px; width: 100%; text-align: center; margin-bottom: 20px; }
  .mobile-toggle { display: block; }
  .section { padding: 60px 0; }
  .form-wrapper { padding: 25px; }
}



@media (max-width: 400px) {
  .card {max-width:calc(100vw - 35px); }
}