:root {
  --bg: #f4f6fb;
  --bg-soft: #e7ebf4;
  --surface: #ffffff;
  --nav-bg: rgba(255,255,255,0.96);
  --border-subtle: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.12);

  --primary: #0f7bff;
  --primary-dark: #0056c7;
  --primary-soft: rgba(15,123,255,0.12);

  --text-main: #0b1020;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 40px rgba(15,23,42,0.12);
  --shadow-subtle: 0 10px 28px rgba(15,23,42,0.10);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
}

/* RESET / BASE ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #eef2ff 0, #f4f6fb 40%, #f4f6fb 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT WRAPPER ---------------------------------------------------------- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

/* HEADER / NAV ------------------------------------------------------------ */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.20);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Nav links (desktop) */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA */

.nav-cta {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15,118,255,0.18);
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff;
}

/* Hamburger (mobile) */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: #111827;
}

/* HERO (HOME) ------------------------------------------------------------- */

.hero {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,0.9fr);
  gap: 2.25rem;
  background: radial-gradient(circle at top left,#00356b 0,#001225 47%,#000b17 100%);
  color: #fff;
  padding: 2.3rem 2.2rem;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,0.5), transparent 60%);
  opacity: 0.65;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(191,219,254,0.9);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-tag {
  font-size: 0.98rem;
  color: rgba(226,232,240,0.9);
  margin-bottom: 1.1rem;
}

.hero-list {
  margin-left: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}

.hero-list li + li {
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

/* Hero media */

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-logo-large {
  max-width: 340px;
  width: 78%;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

/* SUBPAGE HERO ------------------------------------------------------------ */

.hero-sub {
  margin-top: 2rem;
  background: linear-gradient(135deg,#001a33,#003f7f);
  color: #ffffff;
  padding: 2rem 2.1rem;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.hero-sub h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-sub p {
  max-width: 760px;
  margin: 0.2rem auto 0;
  font-size: 0.98rem;
  color: rgba(226,232,240,0.92);
}

/* BUTTONS ----------------------------------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.9rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(37,99,235,0.55);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37,99,235,0.7);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(15,23,42,0.2);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.35);
}

/* SECTION TITLES ---------------------------------------------------------- */

.section-title {
  margin-top: 2.5rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.1rem;
}

/* GRIDS & CARDS ----------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.card h2,
.card h3 {
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

/* Badge tag */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.65rem;
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.45rem;
}

/* CTA BAND ---------------------------------------------------------------- */

.cta-band {
  margin-top: 2.7rem;
  padding: 1.4rem 1.6rem;
  border-radius: 26px;
  background: linear-gradient(110deg,#0f7bff,#0056c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 18px 48px rgba(15,23,42,0.55);
}

.cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* PROCESS LIST ------------------------------------------------------------ */

.process-list {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 26px rgba(148,163,184,0.35);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

/* FAQ GRID + ACCORDION ---------------------------------------------------- */

.faq-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.1rem;
}

.faq-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

/* CONTACT PAGE ------------------------------------------------------------ */

.contact-layout {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.contact-panel {
  background: linear-gradient(135deg,#001b34,#003c7a);
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-soft);
}

.contact-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-panel p {
  font-size: 0.9rem;
  color: rgba(226,232,240,0.9);
}

.contact-panel ul {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contact-panel li + li {
  margin-top: 0.35rem;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Form controls */

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
  margin-bottom: 0.7rem;
  resize: vertical;
}

textarea {
  min-height: 140px;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

/* RENOGY BANNER ----------------------------------------------------------- */

.renogy-card {
  margin-top: 2.2rem;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 0.9rem;
}

/* FOOTER ------------------------------------------------------------------ */

footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  padding: 1.5rem 1rem 2.5rem;
}

footer a {
  color: var(--primary);
}

/* RESPONSIVE -------------------------------------------------------------- */

@media (max-width: 960px) {
  main {
    padding-inline: 1.2rem;
  }

  .hero {
    grid-template-columns: minmax(0,1fr);
    padding: 1.9rem 1.7rem;
  }

  .hero-media {
    margin-top: 0.5rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 900px) {
  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 56px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(15,23,42,0.28);
    padding: 0.9rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 180px;
    display: none;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  main {
    padding-inline: 1rem;
  }

  .hero {
    padding: 1.7rem 1.4rem;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions a {
    width: 100%;
    justify-content: center;
  }

  .contact-form-card,
  .contact-panel {
    padding: 1.4rem 1.35rem;
  }
}
