/* --- RESET & VARIABLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F4F6F8;
  --card-bg: #ffffff;
  --text-primary: #0A192F;
  --header-bg: #0A192F;
  --accent: #00BFA6;
  --hero-grad: linear-gradient(135deg, #0A192F 0%, #00BFA6 60%, #38EF7D 100%);
}

body.dark-mode {
  --bg: #050d1a;
  --card-bg: #112240;
  --text-primary: #ffffff;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  transition: 0.3s;
  line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--header-bg);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  max-height: 50px;
}

.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 15px;
  transition: 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--accent);
}

.dark-mode-toggle {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

/* --- HAMBURGER MENU --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Sits right under the header */
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
    z-index: 999;
  }

  .header-nav.active {
    display: flex;
  }
}

/* Hamburger Animation (JS toggles .is-active on .menu-toggle) */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- HERO SECTION --- */
.hero-banner {
  background: var(--hero-grad);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero-banner h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

/* --- CARD LAYOUT --- */
.container {
  max-width: 1000px; /* Slightly wider for better grid distribution */
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card, .info-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.tool-card { text-align: center; }
.info-card { text-align: left; }

h2 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

/* --- BUTTON STYLING --- */
.btn-main {
  display: inline-block; /* Changed from block to inline-block */
  margin: 25px auto 0 auto;
  background: var(--accent);
  color: white !important;
  padding: 14px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn-main:hover {
  background: #008f7a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 191, 166, 0.3);
}

/* --- TRUST GRID SECTION --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.trust-card {
  background: rgba(0, 191, 166, 0.05);
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 191, 166, 0.1);
  transition: 0.3s;
  text-align: center;
}

.trust-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: var(--card-bg);
}

.trust-icon {
  font-size: 35px;
  margin-bottom: 15px;
  display: block;
}

/* --- FAQ SECTION --- */
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 15px;
}

body.dark-mode .faq-item { border-bottom-color: rgba(255, 255, 255, 0.1); }

/* --- SPONSOR / AD SLOTS --- */
.sponsor-slot {
  background: rgba(0, 191, 166, 0.03);
  border: 1px dashed rgba(0, 191, 166, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  min-height: 100px;
  color: #666;
}

/* --- FOOTER --- */
footer {
  background: var(--header-bg);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

footer a { color: var(--accent) !important; text-decoration: none; }
