/* Tesla Energy – new theme. Plain CSS, prefix "te-". No npm build required. */
:root{--navy:#06142f;--navy2:#0a2250;--yellow:#ffc400;--green:#27c24c;--ink:#0d1b3a;--muted:#55627c;--bg:#f3f7fc;--line:#e1e8f2}
*{box-sizing:border-box}
body.te-body{margin:0;font-family:'Plus Jakarta Sans',sans-serif;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased}
.te-body a{text-decoration:none;color:inherit}
.te-body img{max-width:100%;display:block}
.te-body h1,.te-body h2,.te-body h3,.te-body h4,.te-body p,.te-body ul{margin:0;padding:0}
.te-body ul{list-style:none}
.te-wrap{max-width:1240px;padding:0 24px;position:relative;z-index:2}
.te-eyebrow{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--yellow);display:flex;align-items:center;gap:10px;margin-bottom:10px}
.te-eyebrow::after{content:'';width:34px;height:2px;background:var(--yellow)}
.te-h2{font-size:clamp(26px,3.2vw,38px);font-weight:800;line-height:1.15;color:var(--navy)}
.te-g{color:var(--green)}.te-y{color:var(--yellow)}
.te-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:999px;font-weight:700;font-size:14px;background:var(--yellow);color:var(--navy)!important;box-shadow:0 8px 22px rgba(255,196,0,.35);transition:.2s;border:0;cursor:pointer}
.te-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.te-btn.sm{padding:9px 18px;font-size:13px}
.te-play{display:inline-flex;align-items:center;gap:10px;color:#fff;font-weight:600;font-size:14px}
.te-play i{width:42px;height:42px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;font-size:13px}

/* Header */
.te-header{position:fixed;top:0;left:0;right:0;z-index:50;transition:.3s}
.te-header.scrolled{background:rgba(6,20,47,.96);backdrop-filter:blur(14px);box-shadow:0 4px 24px rgba(0,0,0,.25)}
.te-nav{max-width:1240px;margin:0 auto;padding:0 24px;min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.te-nav img.logo{height:54px;width:auto;object-fit:contain}
.te-links{display:flex;align-items:center;gap:6px;flex:1;justify-content:center}
.te-link{position:relative}
.te-link>a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;color:#fff;font-size:13.5px;font-weight:600;border-radius:8px;position:relative}
.te-link>a:hover{color:var(--yellow)}
.te-link>a.active{color:var(--yellow)}
.te-link>a.active::after{content:'';position:absolute;left:14px;right:14px;bottom:0;height:2px;background:var(--yellow);border-radius:2px}
.te-sub{position:absolute;top:100%;left:0;min-width:200px;background:var(--navy);border-radius:12px;padding:8px;box-shadow:0 14px 40px rgba(0,0,0,.4);opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s}
.te-link:hover .te-sub{opacity:1;visibility:visible;transform:none}
.te-sub a{display:block;padding:10px 14px;color:#dbe5f7;font-size:13.5px;border-radius:8px}
.te-sub a:hover{background:rgba(255,255,255,.08);color:var(--yellow)}
.te-burger{display:none;background:rgba(255,255,255,.12);border:0;color:#fff;width:44px;height:44px;border-radius:10px;font-size:18px;cursor:pointer}
.te-mm-ov{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:9998;opacity:0;visibility:hidden;transition:.3s}
.te-mm-ov.on{opacity:1;visibility:visible}
.te-mm{position:fixed;top:0;right:-100%;width:84%;max-width:380px;height:100vh;background:linear-gradient(180deg,#0a2250,#06142f);z-index:9999;transition:right .35s;overflow-y:auto}
.te-mm.on{right:0}
.te-mm-h{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid rgba(255,255,255,.1);color:#fff;font-weight:800}
.te-mm-h button{background:rgba(255,255,255,.1);border:0;color:#fff;width:38px;height:38px;border-radius:10px;cursor:pointer}
.te-mm a.i,.te-mm .row{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;color:#fff;font-weight:600;border-bottom:1px solid rgba(255,255,255,.06)}
.te-mm a.i.active,.te-mm .row.active{color:var(--yellow)}
.te-mm .row button{background:rgba(255,255,255,.1);border:0;color:#fff;width:30px;height:30px;border-radius:6px;cursor:pointer}
.te-mm .subm{max-height:0;overflow:hidden;transition:max-height .35s;background:rgba(0,0,0,.2)}
.te-mm .subm.on{max-height:400px}
.te-mm .subm a{display:block;padding:12px 22px 12px 40px;color:#cdd9ee;font-size:14px}

/* Hero */
.te-hero{position:relative;min-height:780px;background:var(--navy);overflow:hidden;color:#fff;display:flex;align-items:flex-start}
.te-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.4s ease}
.te-slide.active{opacity:1}
.te-hero::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(6,20,47,.88) 0%,rgba(6,20,47,.55) 45%,rgba(6,20,47,.1) 100%),linear-gradient(180deg,rgba(6,20,47,.7) 0%,transparent 28%)}
.te-hero::after{content:'';position:absolute;left:-10%;right:-10%;bottom:-1px;height:90px;background:#fff;border-radius:50% 50% 0 0/100% 100% 0 0;z-index:2}
.te-hero-in{padding-top:160px;padding-bottom:200px;max-width:640px}
.te-tag{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:500;margin-bottom:18px}
.te-tag::before,.te-tag::after{content:'';width:30px;height:2px;background:var(--yellow)}
.te-hero h1{font-size:clamp(38px,5.6vw,66px);line-height:1.05;font-weight:800;margin-bottom:22px}
.te-hero p.lead{font-size:16px;line-height:1.6;max-width:520px;margin-bottom:28px;color:#e6eefc}
.te-hero-btns{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.te-fbar{position:absolute;left:50%;transform:translateX(-50%);bottom:28px;width:min(1180px,calc(100% - 48px));z-index:4;background:rgba(7,24,58,.92);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:22px;display:grid;grid-template-columns:repeat(4,1fr);padding:22px 10px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.te-fitem{display:flex;gap:16px;align-items:center;padding:0 24px;border-right:1px solid rgba(255,255,255,.14);color:#fff}
.te-fitem:last-child{border:0}
.te-fitem i{font-size:36px;color:var(--yellow);width:46px;text-align:center}
.te-fitem b{display:block;font-size:15px;line-height:1.2}.te-fitem small{font-size:11.5px;color:#b7c6e2}

/* About */
.te-about{padding:70px 0 60px;background:#fff;position:relative}
.te-about-g{display:grid;grid-template-columns:1.05fr 1fr 220px;gap:40px;align-items:center}
.te-collage{position:relative;height:380px}
.te-collage .a{position:absolute;left:0;top:0;width:82%;height:88%;object-fit:cover;border-radius:26px;transform:skewY(-4deg);box-shadow:0 20px 40px rgba(6,20,47,.2)}
.te-collage .b{position:absolute;right:0;bottom:0;width:42%;height:52%;object-fit:cover;border-radius:22px;border:6px solid #fff;box-shadow:0 14px 30px rgba(6,20,47,.25)}
.te-about p{color:var(--muted);font-size:14px;line-height:1.75;margin:16px 0 22px}
.te-bul li{display:flex;gap:12px;align-items:center;font-weight:700;font-size:13px;color:var(--navy);margin-bottom:20px;line-height:1.25}
.te-bul i{width:42px;height:42px;flex:none;border-radius:50%;background:var(--navy);color:var(--green);display:grid;place-items:center;border:2px solid var(--green)}

/* Impact */
.te-impact{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;padding:60px 0 90px;position:relative;overflow:hidden;border-radius:0}
.te-impact::after{content:'';position:absolute;left:-10%;right:-10%;bottom:-1px;height:70px;background:var(--bg);border-radius:50% 50% 0 0/100% 100% 0 0}
.te-impact-g{display:grid;grid-template-columns:300px 1fr;gap:30px;align-items:center}
.te-impact h2{font-size:clamp(26px,3vw,36px);font-weight:800;line-height:1.1}
.te-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));border-left:1px solid rgba(255,255,255,.2)}
.te-stat{text-align:center;padding:6px 18px;border-right:1px solid rgba(255,255,255,.15)}
.te-stat:last-child{border:0}
.te-stat i{font-size:28px;color:var(--yellow);margin-bottom:8px;display:block}
.te-stat .n{font-size:20px;font-weight:800;display:block}
.te-stat small{font-size:12px;color:#b9c8e4}
.te-glow{position:absolute;right:-60px;top:-40px;width:340px;height:340px;background:radial-gradient(circle,rgba(39,194,76,.55),transparent 65%);pointer-events:none}

/* Solutions */
.te-sol{background:var(--bg);padding:20px 0 70px}
.te-sol-g{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:26px}
.te-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(6,20,47,.1);border:1px solid var(--line);transition:.25s}
.te-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(6,20,47,.16)}
.te-card .im{height:130px;background-size:cover;background-position:center}
.te-card .bd{padding:0 20px 20px;margin-top:-28px;position:relative}
.te-ic{width:56px;height:56px;border-radius:50%;background:var(--navy);color:var(--yellow);display:grid;place-items:center;font-size:22px;border:3px solid #fff;float:left;margin-right:12px}
.te-card h3{font-size:17px;font-weight:800;color:var(--navy);padding-top:32px;line-height:1.15;min-height:70px}
.te-card p{font-size:12.5px;color:var(--muted);margin:10px 0 14px;clear:both}
.te-card .more{font-size:12.5px;font-weight:700;color:var(--navy)}

/* Projects */
.te-proj{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;padding:40px 0}
.te-proj-g{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:center}
.te-proj h2{font-size:28px;font-weight:800;line-height:1.15;margin-bottom:12px}
.te-proj p{font-size:13px;color:#cbd8ef;margin-bottom:16px}
.te-trk-w{position:relative}
.te-trk{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px}
.te-trk::-webkit-scrollbar{display:none}
.te-trk a{flex:0 0 calc(25% - 11px);min-width:200px;scroll-snap-align:start;border-radius:12px;overflow:hidden;background:#0b2a5b;position:relative}
.te-trk img{width:100%;height:120px;object-fit:cover}
.te-trk span{display:block;padding:8px 10px;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.te-arw{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;border:1px solid rgba(255,255,255,.4);cursor:pointer;z-index:3}
.te-arw.l{left:-17px}.te-arw.r{right:-17px}

/* Testimonials */
.te-test{background:linear-gradient(120deg,#06142f,#0b2a5b);color:#fff;padding:44px 0;position:relative;overflow:hidden}
.te-test-g{display:grid;grid-template-columns:330px 1fr;gap:30px;align-items:center}
.te-test h2{font-size:26px;font-weight:800;margin-bottom:8px}
.te-test p.s{font-size:13px;color:#cbd8ef;margin-bottom:14px}
.te-ts{display:none;align-items:center;gap:22px}
.te-ts.active{display:flex}
.te-ts img{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--green);flex:none}
.te-ts q{display:block;font-size:14px;line-height:1.6;font-weight:500;quotes:none}
.te-ts small{display:block;margin:8px 0 4px;color:#cbd8ef}
.te-ts .st{color:var(--yellow);font-size:13px}
.te-tnav{display:flex;gap:10px;align-items:center}
.te-tnav button{width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;border:1px solid rgba(255,255,255,.4);cursor:pointer}

/* Extra data sections */
.te-sec{padding:70px 0;background:#fff}.te-sec.alt{background:var(--bg)}
.te-hd{text-align:center;margin-bottom:36px}.te-hd p{color:var(--muted);margin-top:8px}
.te-grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}
.te-grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:22px}
.te-nc .im{height:170px;object-fit:cover;width:100%}
.te-nc .bd{padding:18px}.te-nc small{color:var(--muted);font-size:12px}
.te-nc h3{font-size:16px;font-weight:800;margin:6px 0;color:var(--navy)}
.te-nc p{font-size:13px;color:var(--muted)}
.te-pill{display:inline-block;background:rgba(39,194,76,.12);color:#12852f;font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:999px}
.te-partner{padding:22px;text-align:center}.te-partner img{height:48px;margin:0 auto 12px;object-fit:contain}
.te-partner h4{font-size:14px;font-weight:700}.te-partner p{font-size:12px;color:var(--muted)}
.te-tip{padding:24px}.te-tip .te-ic{float:none;margin-bottom:14px;border-color:var(--bg)}
.te-tip h4{font-size:16px;font-weight:800;margin-bottom:8px;color:var(--navy)}.te-tip p{font-size:13px;color:var(--muted);margin-bottom:12px}
.te-biz{padding:24px;display:flex;flex-direction:column;gap:12px}
.te-biz .top{display:flex;gap:14px;align-items:center}
.te-biz .lg{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:20px;overflow:hidden;flex:none}
.te-biz .lg img{width:100%;height:100%;object-fit:cover}
.te-biz h3{font-size:17px;font-weight:800}.te-biz small{color:var(--muted)}
.te-biz p{font-size:13px;color:var(--muted)}
.te-biz .ft{display:flex;justify-content:space-between;align-items:center;margin-top:auto}

/* CTA */
.te-cta{background:var(--navy);color:#fff;text-align:center;padding:70px 0;position:relative;overflow:hidden}
.te-cta::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 0,rgba(39,194,76,.3),transparent 50%),radial-gradient(circle at 10% 100%,rgba(255,196,0,.18),transparent 45%)}
.te-cta h2{font-size:clamp(28px,4vw,44px);font-weight:800;margin-bottom:12px}
.te-cta p{color:#cbd8ef;max-width:560px;margin:0 auto 26px}
.te-cta .row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.te-btn.ghost{background:#fff}

/* Footer */
.te-foot{background:linear-gradient(135deg,#06142f,#0a2250);color:#cbd8ef;padding:56px 0 0;position:relative;overflow:hidden}
.te-foot::after{content:'';position:absolute;left:0;right:0;bottom:46px;height:3px;background:linear-gradient(90deg,transparent,var(--green),transparent);opacity:.8}
.te-foot-g{display:grid;grid-template-columns:1.2fr .8fr .8fr 1.2fr 1.3fr;gap:30px}
.te-foot h4{color:#fff;font-size:15px;font-weight:800;margin-bottom:16px}
.te-foot li{margin-bottom:10px;font-size:13px}.te-foot li a:hover{color:var(--yellow)}
.te-foot p{font-size:13px;line-height:1.6}
.te-soc{display:flex;gap:10px;margin-top:16px}
.te-soc a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:grid;place-items:center;color:#fff;font-size:14px}
.te-soc a:hover{background:var(--yellow);color:var(--navy)}
.te-ci{display:flex;gap:12px;font-size:13px;margin-bottom:12px;align-items:flex-start}.te-ci i{color:var(--yellow);margin-top:3px}
.te-news{display:flex;margin-top:12px;background:#fff;border-radius:10px;overflow:hidden}
.te-news input{flex:1;border:0;padding:12px;font-size:13px;outline:0;min-width:0}
.te-news button{background:var(--yellow);border:0;width:46px;cursor:pointer;color:var(--navy)}
.te-copy{margin-top:40px;border-top:1px solid rgba(255,255,255,.1);padding:16px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;position:relative;z-index:2}
.te-copy a{margin-left:16px}.te-copy a:hover{color:var(--yellow)}

/* Responsive */
@media(max-width:1100px){.te-about-g{grid-template-columns:1fr 1fr}.te-bul{grid-column:1/-1;display:flex;gap:24px;flex-wrap:wrap}.te-sol-g{grid-template-columns:repeat(2,1fr)}.te-foot-g{grid-template-columns:1fr 1fr 1fr}.te-fbar{grid-template-columns:repeat(2,1fr);gap:18px}.te-hero{min-height:880px}.te-fitem:nth-child(2){border:0}}
@media(max-width:1023px){.te-links,.te-nav>.te-btn{display:none}.te-burger{display:block}.te-impact-g,.te-proj-g,.te-test-g{grid-template-columns:1fr}.te-stats{border-left:0}}
@media(max-width:700px){.te-about-g,.te-sol-g,.te-foot-g{grid-template-columns:1fr}.te-hero{min-height:960px}.te-hero-in{padding-top:130px}.te-fbar{grid-template-columns:1fr}.te-fitem{border:0;padding:6px 16px}.te-collage{height:300px}.te-ts{flex-direction:column;text-align:center}.te-trk a{flex-basis:70%}.te-arw{display:none}}
