/* Brightgrid Solar Solutions Funnel
   SVP Funnels / Tiny Team Digital Studio */

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #e6f2ff;
  background: radial-gradient(circle at top, #071425 0%, #040814 50%, #02040a 100%);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Optional background circuits pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("assets/brightgrid-bg-circuits.png");
  background-size: 300px auto;
  background-repeat: repeat;
  mix-blend-mode: screen;
  z-index: -2;
}

/* Color palette */
:root {
  --midnight: #050e1d;
  --deep-blue: #071a33;
  --accent-blue: #19b4ff;
  --accent-teal: #35ffd7;
  --accent-orange: #ffb347;
  --panel-blue: #1e3860;
}

/* Utility */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section.dark {
  background: radial-gradient(circle at top, #05152b 0%, #031120 55%, #020711 100%);
}

.section.darker {
  background: radial-gradient(circle at top, #03101f 0%, #020914 60%, #02040a 100%);
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Oswald", system-ui, sans-serif;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 3.3vw, 3.3rem);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

p {
  line-height: 1.75;
  color: #c9ddf8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ffb347, #ffe27a);
  color: #1b1302;
  box-shadow: 0 14px 36px rgba(255, 183, 71, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(255, 183, 71, 0.75);
}

.btn.secondary {
  background: rgba(7, 27, 52, 0.95);
  color: #e8f2ff;
  border-color: rgba(113, 172, 255, 0.7);
}

.btn.secondary:hover {
  background: rgba(9, 32, 59, 1);
}

.btn.ghost {
  background: transparent;
  color: #e8f2ff;
  border-color: rgba(25, 180, 255, 0.8);
}

.btn.ghost:hover {
  background: rgba(4, 18, 36, 0.9);
}

.btn.tiny {
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
}

.btn.full-width {
  width: 100%;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(2, 10, 22, 0.97),
    rgba(2, 12, 27, 0.9),
    transparent
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 71, 122, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 1rem;
  background: radial-gradient(circle at 30% 0%, #ffe27a, #ff9248 40%, #ff5d2f 80%);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #190901;
  box-shadow: 0 0 0 2px rgba(25, 180, 255, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  letter-spacing: 0.16em;
  font-size: 1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #8bb1e0;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.main-nav a {
  color: #d5e6ff;
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  transition: width 0.18s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav .nav-cta {
  padding-inline: 1.1rem;
  padding-block: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 180, 255, 0.75);
}

/* HERO */
.hero {
  position: relative;
  padding: 5.4rem 0 4.3rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle at 5% 0%, #1fb7ff 0, transparent 55%),
    radial-gradient(circle at 95% 0%, #ffb347 0, transparent 55%),
    radial-gradient(circle at 50% 110%, #35ffd7 0, transparent 60%);
  opacity: 0.75;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 30rem;
}

.hero-lead {
  margin-bottom: 1.3rem;
  max-width: 36rem;
}

.hero-points {
  list-style: none;
  margin-bottom: 1.4rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, var(--accent-blue), var(--accent-orange));
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #a9c8ef;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 470px;
  border-radius: 1.5rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
}

/* TRUST BAR */
.trust-bar {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(35, 76, 130, 0.8);
  border-bottom: 1px solid rgba(35, 76, 130, 0.8);
  background: radial-gradient(circle at top, #041020 0, #030a14 55%, #02060e 100%);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.trust-inner p {
  color: #e2efff;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-badges span {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 134, 215, 0.8);
  font-size: 0.8rem;
  color: #c9ddff;
}

/* Sections */
.section-grid {
  align-items: center;
}

.section-copy p + p {
  margin-top: 0.7rem;
}

/* Checklists */
.section-copy .checklist {
  list-style: none;
  margin-top: 1rem;
}

.section-copy .checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.section-copy .checklist li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  color: var(--accent-blue);
}

/* Section media */
.section-media img {
  width: 100%;
  border-radius: 1.4rem;
  object-fit: cover;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.85);
}

/* Steps */
.steps {
  list-style: none;
  margin-top: 0.8rem;
  counter-reset: solar-step;
  max-width: 520px; /* keeps the text column neat */
}

.steps li {
  counter-increment: solar-step;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.steps li::before {
  content: counter(solar-step);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #02040a;
  background: radial-gradient(circle at 30% 0%, var(--accent-blue), var(--accent-orange));
  margin-top: 2px; /* nudges the circle in line with the text */
}

/* inner content + label for each step */
.steps .step-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-stage {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d5e6ff;
  font-weight: 600;
}

.steps .step-content p {
  margin: 0;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  letter-spacing: 0.08em;
}

.section-header p {
  max-width: 620px;
  margin-inline: auto;
}

/* Card grids */
.card-grid {
  display: grid;
  gap: 1.6rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards */
.card {
  background: radial-gradient(circle at top, #071529 0, #050f22 55%, #040814 100%);
  border-radius: 1.4rem;
  padding: 1.7rem 1.6rem;
  border: 1px solid rgba(46, 106, 184, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.card.featured {
  border-color: rgba(25, 180, 255, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}

.card-tag {
  font-size: 0.86rem;
  color: #a7c4ef;
  margin-bottom: 0.75rem;
}

.card ul {
  list-style: none;
  margin: 0.6rem 0 1.2rem;
}

.card ul li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* Systems grid alignment */
.systems-grid {
  align-items: stretch;
}

/* Store products */
.store-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-meta {
  font-size: 0.82rem;
  color: #a7c4ef;
}

.product-price {
  font-weight: 600;
  color: var(--accent-teal);
}

/* Lead form */
.lead-form {
  background: radial-gradient(circle at top, #071529 0%, #050e20 65%);
  padding: 1.8rem 1.7rem 1.6rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(64, 130, 212, 0.85);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.95);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9bb9e6;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: #020814;
  border-radius: 0.9rem;
  border: 1px solid rgba(92, 145, 220, 0.8);
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  color: #e6f2ff;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(25, 180, 255, 0.45);
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.form-footnote {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #9bb9e6;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(41, 92, 153, 0.85);
  padding: 1.8rem 0 2.3rem;
  background: radial-gradient(circle at top, #040f21 0%, #020610 70%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #c1d7fb;
}

.footer-brands {
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 0;
  }

  .hero-media img {
    max-width: 390px;
  }

  .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    gap: 0.8rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, 100%);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid.three,
  .card-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-block: 3.6rem;
  }

  .lead-form {
    padding: 1.5rem 1.3rem 1.3rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
