/* ==========================================================================
   Renewable Energy ERP — "Solar Generation Monitoring" bespoke design
   Only the HERO + FEATURES sections are redesigned; everything is scoped
   under .re-scope (plus the page-only .re-header-bg on the navbar) so no
   other page is affected.
   ========================================================================== */
.re-scope {
    --re-ink: #10241a;
    --re: #16a34a;           /* emerald green primary */
    --re-2: #22b455;
    --re-3: #15803d;         /* deep green */
    --re-amber: #f59e0b;     /* solar amber accent */
    --re-amber-2: #fbbf24;
    --re-soft: #e8f7ed;
    --re-soft-2: #f2fbf5;
    --re-line: #dcefe3;
    --re-muted: #557463;
    --re-grad: linear-gradient(120deg, #22b455 0%, #16a34a 55%, #15803d 100%);
    --re-grad-amber: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
    color: #24443a;
}
.re-scope section { overflow: hidden; }

/* page-only header background so the navbar blends into the hero */
.re-header-bg {
    background:
        radial-gradient(1100px 320px at 86% 130%, #d6f2df 0%, rgba(214,242,223,0) 70%),
        #f4fcf7;
}

/* ---- shared bits ---- */
.re-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--re-3); background: var(--re-soft);
    padding: .45rem .9rem; border-radius: 2rem; border: 1px solid var(--re-line);
}
.re-kicker.on-dark { color: #bff0cd; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.re-h { font-weight: 800; letter-spacing: -.02em; color: var(--re-ink); line-height: 1.12; }
.re-grad-txt {
    background: var(--re-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.re-lead { color: var(--re-muted); font-size: 1.075rem; line-height: 1.7; }

/* buttons */
.re-btn {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
    padding: .85rem 1.5rem; border-radius: .85rem; border: 0; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    text-decoration: none;
}
.re-btn i { transition: transform .25s ease; }
.re-btn:hover i { transform: translate(2px,-2px); }
.re-btn-primary { background: var(--re-grad); color: #fff; box-shadow: 0 .8rem 1.6rem rgba(22,163,74,.32); }
.re-btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 1.2rem 2.2rem rgba(22,163,74,.42); }
.re-btn-ghost { background: #fff; color: var(--re-3); border: 1.5px solid var(--re-line); }
.re-btn-ghost:hover { color: var(--re-3); transform: translateY(-3px); border-color: var(--re); box-shadow: 0 1rem 2rem rgba(22,163,74,.14); }

/* ==========================================================================
   HERO
   ========================================================================== */
.re-hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 88% -8%, #d6f2df 0%, rgba(214,242,223,0) 60%),
        radial-gradient(900px 480px at 4% 112%, #fef1d6 0%, rgba(254,241,214,0) 55%),
        #f4fcf7;
}
.re-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(22,163,74,.10) 1.4px, transparent 1.4px);
    background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg,#000,transparent 76%);
    mask-image: linear-gradient(180deg,#000,transparent 76%); opacity: .55;
}
.re-hero .container { position: relative; z-index: 2; }
.re-hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
.re-hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.re-hero-trust .t { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--re-ink); font-size: .95rem; }
.re-hero-trust .t i { color: var(--re); font-size: 1.15rem; }

/* solar-generation dashboard mock card */
.re-dash-wrap { position: relative; }
.re-dash {
    position: relative; z-index: 2; background: #fff; border-radius: 1.6rem;
    border: 1px solid var(--re-line); box-shadow: 0 2.4rem 5rem rgba(16,36,26,.16);
    padding: 1.5rem 1.5rem 1.4rem;
}
.re-dash__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.re-avatar {
    width: 3rem; height: 3rem; border-radius: .9rem; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem;
    background: var(--re-grad-amber); box-shadow: 0 .5rem 1rem rgba(245,158,11,.4);
}
.re-dash__head h6 { margin: 0; font-weight: 800; color: var(--re-ink); font-size: 1rem; }
.re-dash__head span { font-size: .8rem; color: var(--re-muted); }
.re-pill-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 800; color: var(--re-3); background: var(--re-soft);
    padding: .32rem .7rem; border-radius: 2rem;
}
.re-pill-live .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #22b455; box-shadow: 0 0 0 0 rgba(34,180,85,.6); animation: repulse 1.7s infinite; }
@keyframes repulse { 70% { box-shadow: 0 0 0 .5rem rgba(34,180,85,0); } 100% { box-shadow: 0 0 0 0 rgba(34,180,85,0); } }

/* generation ring + meta */
.re-cover { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.2rem; }
.re-ring {
    --p: 82; width: 8rem; height: 8rem; border-radius: 50%; flex: none; position: relative;
    background: conic-gradient(var(--re-amber) calc(var(--p) * 1%), #e8f0ea 0);
}
.re-ring::after {
    content: ""; position: absolute; inset: .8rem; background: #fff; border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--re-line);
}
.re-ring__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.re-ring__c i { font-size: 1.05rem; color: var(--re-amber); line-height: 1; margin-bottom: .15rem; }
.re-ring__c b { font-size: 1.5rem; font-weight: 800; color: var(--re-ink); line-height: 1; }
.re-ring__c small { font-size: .64rem; color: var(--re-muted); margin-top: .2rem; }
.re-cover-meta { flex: 1; display: flex; flex-direction: column; gap: .8rem; }
.re-meta-top { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--re-ink); margin-bottom: .35rem; }
.re-meta-top span:last-child { color: var(--re-muted); font-weight: 700; }
.re-bar { height: .5rem; border-radius: 2rem; background: #e9f1eb; overflow: hidden; }
.re-bar > i { display: block; height: 100%; border-radius: 2rem; }
.re-bar .out { background: var(--re-grad-amber); width: 76%; }
.re-bar .pr { background: linear-gradient(90deg,#22b455,#16a34a); width: 94%; }

/* mini stat tiles */
.re-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; border-top: 1px dashed var(--re-line); padding-top: 1.1rem; }
.re-stat { background: var(--re-soft-2); border: 1px solid var(--re-line); border-radius: .8rem; padding: .7rem .5rem; text-align: center; }
.re-stat i { font-size: 1rem; color: var(--re); }
.re-stat b { display: block; font-size: 1.02rem; font-weight: 800; color: var(--re-ink); line-height: 1.1; margin-top: .2rem; }
.re-stat span { display: block; font-size: .64rem; color: var(--re-muted); margin-top: .1rem; }

/* floating badges */
.re-badge {
    position: absolute; z-index: 3; background: #fff; border-radius: .9rem;
    box-shadow: 0 1rem 2.4rem rgba(16,36,26,.16); padding: .7rem .95rem;
    display: flex; align-items: center; gap: .6rem; border: 1px solid var(--re-line);
    animation: refloat 5s ease-in-out infinite;
}
.re-badge .ic { width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; flex: none; }
.re-badge .ic--gen { background: var(--re-grad-amber); }
.re-badge .ic--ok { background: var(--re-grad); }
.re-badge b { display: block; font-size: .82rem; color: var(--re-ink); line-height: 1.1; }
.re-badge span { font-size: .72rem; color: var(--re-muted); }
.re-badge--tl { top: -2.4rem; left: -1.6rem; }
.re-badge--br { bottom: -1.9rem; right: -1.6rem; animation-delay: 1.4s; }
@keyframes refloat { 50% { transform: translateY(-10px); } }

/* ==========================================================================
   FEATURES — bento grid (9 cards + 1×2 promo hero)
   ========================================================================== */
.re-head { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.re-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.re-head p { margin-top: 1rem; }

.re-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.re-bento__hero {
    grid-column: span 1; grid-row: span 2; border-radius: 1.4rem; overflow: hidden; position: relative;
    background: var(--re-grad); color: #fff; padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.re-bento__hero::after { content: ""; position: absolute; top: -25%; right: -25%; width: 70%; height: 60%; background: radial-gradient(circle, rgba(251,191,36,.45), transparent 65%); }
.re-bento__hero .re-kicker { align-self: flex-start; position: relative; z-index: 2; }
.re-bento__hero h3 { color: #fff; font-weight: 800; font-size: 1.5rem; line-height: 1.2; position: relative; z-index: 2; }
.re-bento__hero p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 1.2rem; position: relative; z-index: 2; }
.re-bento__hero img { width: 100%; border-radius: 1rem; margin-top: auto; box-shadow: 0 1.4rem 2.6rem rgba(0,0,0,.22); position: relative; z-index: 2; }
.re-feat {
    background: #fff; border: 1px solid var(--re-line); border-radius: 1.2rem; padding: 1.5rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; height: 100%;
}
.re-feat:hover { transform: translateY(-.5rem); box-shadow: 0 1.6rem 3rem rgba(16,36,26,.12); border-color: transparent; }
.re-ico {
    width: 3.2rem; height: 3.2rem; border-radius: .95rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.re-ico img, .re-ico svg { width: 1.7rem; height: 1.7rem; }
/* icons are teal monochrome — recolor to each chip's accent */
.re-ico svg [fill]:not([fill="none"]) { fill: currentColor; }
.re-ico svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.re-feat h3 { font-size: 1.08rem; font-weight: 800; color: var(--re-ink); margin-bottom: .5rem; }
.re-feat p { font-size: .88rem; color: var(--re-muted); margin-bottom: .9rem; line-height: 1.5; }
.re-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.re-ticks li { position: relative; padding-left: 1.5rem; font-size: .84rem; color: #3a5a4c; line-height: 1.45; }
.re-ticks li::before {
    content: "\2713"; position: absolute; left: 0; top: 0; font-size: .7rem; font-weight: 700; color: var(--re-3);
    width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--re-soft);
    display: flex; align-items: center; justify-content: center;
}
/* icon color chips */
.re-c1 { background: #e6f6ec; color: #16a34a; } .re-c2 { background: #fdf0d8; color: #d18208; }
.re-c3 { background: #e6f5f6; color: #0f9aa3; } .re-c4 { background: #eaf0e2; color: #6a9a1f; }
.re-c5 { background: #e7f1ff; color: #2b7fff; } .re-c6 { background: #fbeee0; color: #d9730d; }
.re-c7 { background: #ecebfb; color: #6d5bd0; } .re-c8 { background: #e6f7ee; color: #0e9c6e; }
.re-c9 { background: #fdeef0; color: #d6407e; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .re-bento { grid-template-columns: 1fr 1fr; }
    .re-bento__hero { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; gap: 1.5rem; }
    .re-bento__hero img { margin-top: 0; width: 40%; }
    .re-badge--tl { left: .5rem; } .re-badge--br { right: .5rem; }
}
@media (max-width: 767px) {
    .re-bento { grid-template-columns: 1fr; }
    .re-bento__hero { flex-direction: column; } .re-bento__hero img { width: 100%; }
    .re-dash { margin-top: 1rem; }
    .re-badge { display: none; }
}

/* legacy contact textarea marker kept for the untouched lower sections */
.gen-1 { height: 150px; }
