/* =========================================================
   EcoGradeX — Full Theme Rewrite (Logo-Matched)
   UPDATED per your request:
   ✅ Body text darker (near-black)
   ✅ Buttons: NO gradients (clean, neutral solid color)
   ✅ Number/step blocks: NO gradients (clean solid)
   ✅ Decorative gradients remain (hero / preview etc.)
   ✅ NEW: Preview card has BLUE blinking/pulsing border
   ========================================================= */

/* =========================
   1) Brand palette + tokens
   ========================= */
:root{
  /* Logo-inspired core colors (balanced) */
  --g-dark: #166E13;   /* deep leaf green */
  --g-lime: #7DB706;   /* fresh lime */
  --b-deep: #0A5987;   /* ocean blue */
  --b-cyan: #1298C8;   /* bright cyan */
  --teal:   #3EBCCD;   /* teal highlight */
  --mint:   #DFEEDA;   /* soft mint */

  /* UI neutrals */
  --bg: #ffffff;
  --bg-soft: #F6FBF7; /* minty off-white */
  --bg-tint: rgba(223,238,218,.35);

  /* TEXT (darker body) */
  --text: #0b1220;         /* near-black */
  --text-2: #111827;
  --muted: #1f2937;        /* body paragraphs (dark charcoal) */
  --muted2: #374151;       /* secondary but readable */
  --muted-light: #6b7280;  /* subtle UI only (footer/taglines) */

  --border: rgba(15, 23, 42, 0.10);
  --border-2: rgba(15, 23, 42, 0.16);
  --card: #ffffff;

  /* Brand mapping */
  --primary: var(--g-dark);
  --primary-2: var(--g-lime);
  --secondary: var(--b-deep);
  --secondary-2: var(--b-cyan);

  /* Type + layout */
  --max: 1120px;
  --fs-body: 15.5px;   /* larger base */
  --lh-body: 1.75;

  /* Radii */
  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;
  --r28: 28px;

  /* Shadows */
  --shadow-soft: 0 18px 50px rgba(22,110,19,.10);
  --shadow-blue: 0 18px 55px rgba(10,89,135,.12);
  --shadow-card: 0 18px 40px rgba(15,23,42,0.06);

  /* Focus ring */
  --focus: 0 0 0 3px rgba(18,152,200,.22);

  /* Logo sizing */
  --logo-header: 44px;
  --logo-card: 34px;
  --logo-footer: 38px;

  /* If your PNG has extra whitespace, this helps visually fill */
  --logo-scale: 1.22;

  /* Flat button color (neutral, premium) */
  --btn-solid: #2f7d1e;
  --btn-solid-hover: #256618;
  --btn-solid-active: #1f5714;
}

/* =========================
   2) Base / reset
   ========================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }

.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Better default spacing inside main */
main{ display:block; }

/* =========================
   3) Typography
   ========================= */
h1{
  margin: 16px 0 12px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.9px;
  color: var(--text);
}

.section__head h2{
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text);
  font-weight: 900;
}

h3{
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 900;
}

.lead{
  color: var(--muted2);
  font-size: 16px;
  line-height: 1.85;
  max-width: 560px;
}

.muted{
  color: var(--muted2);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* =========================
   4) Header / Nav
   ========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;

  /* clean glass feel */
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 210px;
}

.brand__name{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .2px;
  color: var(--text);
}
.brand__tag{
  margin-top:2px;
  font-size: 12.5px;
  color: var(--muted-light);
}

/* LOGO — fix fit + make it look intentional */
.brand__logo{
  width: var(--logo-header);
  height: var(--logo-header);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;

  object-fit: contain;
  object-position: center;

  transform: scale(var(--logo-scale));
  transform-origin: center;
}

/* Desktop nav */
.nav{
  display:flex;
  align-items:center;
  gap:16px;
}

.nav a{
  position: relative;
  font-size: 14.5px;
  font-weight: 800;
  color: rgba(11,18,32,.72);
  padding: 8px 2px;
  transition: color .15s ease;
}

.nav a:hover{ color: var(--secondary); }

.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:0%;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--primary-2), var(--secondary-2));
  transition: width .2s ease-out;
}

.nav a:hover::after{ width:100%; }

.nav a.is-active{
  color: var(--text);
  font-weight: 900;
}
.nav a.is-active::after{ width:100%; }

/* Hamburger (mobile only) */
.navbtn{
  display:none;
  width:44px;
  height:44px;
  border-radius:999px;
  border: 1px solid rgba(15,23,42,.14);
  background:#fff;
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.navbtn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: rgba(15,23,42,.20);
}
.navbtn:focus{ outline:none; box-shadow: var(--focus); }

.navbtn span{
  width:22px;
  height:3px;
  border-radius:999px;
  background:#111827;
}

/* Mobile dropdown nav */
@media (max-width: 860px){
  .navbtn{ display:flex; }

  .nav{
    position: fixed;
    inset: 72px 16px auto 16px;
    display:none;
    flex-direction:column;
    gap:10px;

    background: rgba(255,255,255,.96);
    border-radius: 18px;
    padding: 12px 14px 14px;
    border: 1px solid rgba(15,23,42,.14);
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
  }

  .nav.is-open{ display:flex; }
  .nav a{ padding: 9px 8px; border-radius: 12px; }
  .nav a:hover{
    background: rgba(223,238,218,.55);
    color: var(--text);
  }
  .nav a::after{ display:none; }
}

/* =========================
   5) Buttons (UPDATED: flat / no gradients)
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.14);
  background:#fff;

  font-size: 14.5px;
  font-weight: 900;
  cursor:pointer;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, color .12s ease, background .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15,23,42,.12);
  border-color: rgba(15,23,42,.20);
}

.btn:focus{ outline:none; box-shadow: var(--focus); }

/* PRIMARY: solid neutral green (NO gradient) */
.btn--primary{
  border: none;
  color:#fff;
  background: var(--btn-solid);
  box-shadow: none;
}

.btn--primary:hover{
  background: var(--btn-solid-hover);
  box-shadow: none;
}

.btn--primary:active{
  background: var(--btn-solid-active);
}

.btn--ghost{
  background:#fff;
  color: var(--secondary);
  border: 1px solid rgba(10,89,135,.22);
  box-shadow: none;
}

.btn--ghost:hover{
  background: rgba(10,89,135,.06);
  border-color: rgba(10,89,135,.32);
  box-shadow: none;
}

.btn--sm{
  padding: 8px 12px;
  font-size: 13.5px;
}

/* =========================
   6) Hero
   ========================= */
.hero{
  padding: 54px 0 74px;

  /* Balanced green+blue energy like your logo */
  background:
    radial-gradient(circle at 18% 10%, rgba(125,183,6,.22), transparent 55%),
    radial-gradient(circle at 80% 5%, rgba(18,152,200,.18), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(62,188,205,.14), transparent 60%),
    linear-gradient(#ffffff, #ffffff);
}

.hero__grid{
  display:grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 40px;
  align-items:center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 12.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;

  color: var(--primary);
  padding: 7px 12px;
  border-radius: 999px;

  background: rgba(223,238,218,.65);
  border: 1px solid rgba(125,183,6,.20);
}

.kicker .spark{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  /* Decorative gradient is OK */
  background: linear-gradient(135deg, var(--primary-2), var(--secondary-2));
}

.cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 22px;
  align-items:center;
}

/* Sub boxes */
.subgrid{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top: 22px;
}

.pillbox{
  flex: 1 1 180px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.pillbox__t{
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.pillbox__d{
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted2);
  line-height: 1.7;
}

/* ======================================
   BLUE PULSE BORDER (NEW)
   ====================================== */
@keyframes bluePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 89, 135, 0.35);
    border-color: rgba(10, 89, 135, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(10, 89, 135, 0.14);
    border-color: rgba(10, 89, 135, 0.70);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 89, 135, 0.35);
    border-color: rgba(10, 89, 135, 0.35);
  }
}

/* =========================
   7) Preview / GradeX card mock
   UPDATED: pulsing blue border
   ========================= */
.preview{
  border-radius: var(--r24);
  border: 2px solid rgba(10,89,135,.45);
  animation: bluePulse 2.4s ease-in-out infinite;

  background:
    radial-gradient(circle at 15% 15%, rgba(223,238,218,.95), rgba(255,255,255,.90) 58%),
    radial-gradient(circle at 90% 10%, rgba(18,152,200,.14), transparent 55%),
    #fff;
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}

.preview__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.75);
}

.preview__title{
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text);
}
.preview__sub{
  margin-top:4px;
  font-size: 13.5px;
  color: var(--muted2);
}

/* segmented */
.seg{
  display:flex;
  gap:6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
}

.seg button{
  border:0;
  background: transparent;
  cursor:pointer;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(11,18,32,.65);
  transition: background .12s ease, color .12s ease;
}

.seg button:hover{
  background: rgba(223,238,218,.55);
  color: var(--text);
}

.seg button.is-active{
  background: rgba(125,183,6,.14);
  color: var(--primary);
}

/* card mock */
.cardmock{ padding: 16px; }

.cardmock__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
}

.cardmock__brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.cardmock__brand img{
  width: var(--logo-card);
  height: var(--logo-card);
  border-radius: 999px;

  padding: 0;
  background: transparent;
  border: 0;

  object-fit: contain;
  object-position: center;
  transform: scale(var(--logo-scale));
  transform-origin: center;
}

.cardmock__brandname{
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text);
}
.cardmock__brandsub{
  margin-top:2px;
  font-size: 13px;
  color: var(--muted2);
}

/* level pill */
.level{
  display:flex;
  align-items:center;
  gap:10px;

  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(223,238,218,.70);
  border: 1px solid rgba(125,183,6,.18);
}

.level__text{
  font-size: 12.5px;
  font-weight: 900;
  color: var(--primary);
}

.leaves{ display:flex; gap:6px; align-items:center; }
.leaf{
  width: 14px;
  height: 14px;
  border-radius: 6px 12px 6px 12px;
  transform: rotate(-25deg);
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  opacity: .22;
}
.leaf.active{ opacity: 1; }

/* bars */
.bars{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}

.bar__top{
  display:flex;
  justify-content:space-between;
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 6px;
}
.bar__score{
  font-weight: 900;
  color: var(--text);
}

.bar__track{
  width:100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  overflow:hidden;
}

.bar__fill{
  height:100%;
  width:60%;
  border-radius: 999px;
  /* Decorative gradient is OK */
  background: linear-gradient(90deg, var(--secondary), var(--secondary-2));
  transition: width .25s ease;
}

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(10,89,135,.25);
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* =========================
   8) Sections / grids
   ========================= */
.section{
  padding: 70px 0;
  background: transparent;
}

.section:nth-of-type(even){
  background: linear-gradient(180deg, rgba(246,251,247,.65), rgba(255,255,255,0));
}

.section__head{
  max-width: 700px;
  margin-bottom: 28px;
}

/* grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid2{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* =========================
   9) Cards (core feel)
   ========================= */
.card{
  background: rgba(255,255,255,.92);
  border-radius: var(--r20);
  padding: 18px 18px 20px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-3px);
  border-color: rgba(18,152,200,.22);
  box-shadow: 0 24px 60px rgba(10,89,135,.12);
}

.card p{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* icon bubble (decorative gradient OK) */
.icon{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(223,238,218,.95), rgba(18,152,200,.10));
  border: 1px solid rgba(10,89,135,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}

/* ticks */
.ticks{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 8px;
}

.ticks li{
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.ticks li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color: var(--primary-2);
  font-weight: 900;
}

/* =========================
   10) Timeline (How it works)
   UPDATED: step number is flat (no gradient)
   ========================= */
.timeline{ display:grid; gap: 14px; }

.step{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;

  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-card);
}

.step__n{
  width:56px;
  height:56px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;

  font-weight: 900;
  color: #fff;

  /* FLAT (NO gradient) */
  background: var(--btn-solid);
  box-shadow: none;
}

.step__t{
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15.5px;
}

.step__d{
  margin:0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* =========================
   11) FAQ Accordion
   ========================= */
.faq{ display:grid; gap: 10px; }

.faqItem{
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-card);
  overflow:hidden;
}

.faqQ{
  width:100%;
  background: transparent;
  border:0;
  cursor:pointer;

  padding: 13px 14px;
  font-size: 15px;
  font-weight: 900;
  text-align:left;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  color: var(--text);
}

.faqQ:focus{ outline:none; box-shadow: var(--focus); }

.faqQ span{
  color: rgba(11,18,32,.55);
  font-weight: 900;
  transition: transform .15s ease;
}

.faqA{
  display:none;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.faqItem.is-open .faqA{ display:block; }
.faqItem.is-open .faqQ span{ transform: rotate(45deg); }

/* =========================
   12) Contact Form
   ========================= */
.form{
  background: rgba(255,255,255,.92);
  border-radius: var(--r20);
  padding: 18px 18px 20px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-card);
}

.form__title{
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 16px;
}

label{ display:grid; gap: 6px; margin-bottom: 12px; }

label span{
  font-size: 13.5px;
  font-weight: 900;
  color: rgba(11,18,32,.78);
}

input, textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  padding: 11px 12px;

  font-size: 14.5px;
  font-family: inherit;
  outline:none;

  background: rgba(246,251,247,.80);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea{ resize: vertical; min-height: 110px; }

input:focus, textarea:focus{
  background:#fff;
  border-color: rgba(18,152,200,.45);
  box-shadow: var(--focus);
}

.helper{
  margin-top:10px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.7;
}

/* =========================
   13) Footer
   ========================= */
.footer{
  border-top: 1px solid rgba(15,23,42,.10);
  background:
    radial-gradient(circle at 10% 30%, rgba(223,238,218,.55), transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(18,152,200,.10), transparent 60%),
    #F9FAFB;
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--muted-light);
}

.footer__grid{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
}

.footer__brand{
  display:flex;
  gap: 10px;
  align-items:center;
}

.footer__brand img{
  width: var(--logo-footer);
  height: var(--logo-footer);
  border-radius: 999px;

  padding: 0;
  background: transparent;
  border: 0;

  object-fit: contain;
  object-position: center;
  transform: scale(var(--logo-scale));
  transform-origin: center;
}

.footer__muted{ margin-top:2px; }

.footer__links{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}
.footer__links a{
  color: rgba(11,18,32,.66);
  font-weight: 900;
}
.footer__links a:hover{ color: var(--secondary); }

.footer__fine{
  text-align:right;
  color: var(--muted-light);
  line-height: 1.6;
}

/* =========================
   14) Reveal animation
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   15) Responsive
   ========================= */
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .footer__fine{ text-align:left; }
  h1{ font-size: 34px; }
}

/* =========================
   16) Quick tuning knobs
   ========================= */
/*
If the logo still looks too small because your PNG has whitespace:
  Increase: --logo-scale: 1.30;
If it looks too big:
  Decrease: --logo-scale: 1.12;

Button color tuning:
  --btn-solid: #2f7d1e;
  --btn-solid-hover: #256618;
  --btn-solid-active: #1f5714;

Pulse tuning:
  In .preview animation:
    2.4s -> faster (more noticeable)
    3.0s -> slower (more premium)
*/
/* =========================
   17) MOBILE FIX — GradeX level overlap
   ========================= */
@media (max-width: 520px){
  .cardmock__head{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .cardmock__head .level{
    width: 100%;
    justify-content: flex-start;
  }

  .level__text{
    font-size: 12px;
    line-height: 1.25;
  }
}
