/* X-RAVE — Hi-tech & Bold
   No build tools. Pure HTML/CSS/JS.
*/
:root{
  --bg0:#06070a;
  --bg1:#0b0d12;
  --panel:#0f121a;
  --panel2:#0a0c11;
  --text:#e9ecf4;
  --muted:#a8b0c2;
  --line:rgba(255,255,255,.08);
  --accent:#ff2b2b;
  --accent2:#b00016;
  --ok:#27f3b1;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, Kanit, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 70% -10%, rgba(255,43,43,.25), transparent 60%),
              radial-gradient(900px 600px at 10% 10%, rgba(39,243,177,.08), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
b{font-weight:700}

.bg{position:fixed; inset:0; z-index:-1; pointer-events:none}
#gridCanvas{width:100%; height:100%; display:block; opacity:.42; filter:contrast(120%)}
.bgGlow{position:absolute; inset:-20%; background:
  radial-gradient(closest-side at 18% 20%, rgba(255,43,43,.14), transparent 62%),
  radial-gradient(closest-side at 82% 70%, rgba(255,255,255,.06), transparent 64%); mix-blend-mode:screen; opacity:.7}

.container{max-width:1160px; margin:0 auto; padding:0 20px}

.topbar{
  position:fixed; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: linear-gradient(180deg, rgba(6,7,10,.86), rgba(6,7,10,.45));
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  z-index:50;
}

.brand{display:flex; gap:12px; align-items:center; user-select:none}
.brandMark{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,43,43,.25), rgba(176,0,22,.08));
  border:1px solid rgba(255,43,43,.35);
  box-shadow: 0 10px 30px rgba(255,43,43,.14);
  font-weight:900; letter-spacing:.5px;
  position:relative; overflow:hidden;
}
.brandMark::after{
  content:"";
  position:absolute; inset:-40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform:rotate(20deg) translateX(-40%);
  animation: sweep 3.8s linear infinite;
}
@keyframes sweep{to{transform:rotate(20deg) translateX(65%)}}

.brandText{display:flex; flex-direction:column; line-height:1.05}
.brandText .t1{font-weight:900; letter-spacing:1px}
.brandText .t2{font-size:12px; color:var(--muted); letter-spacing:2.2px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{
  font-size:13px; letter-spacing:.6px; text-transform:uppercase;
  color:rgba(233,236,244,.86);
  padding:10px 10px;
  border-radius:999px;
  border:1px solid transparent;
  transition: transform .15s ease, background .2s ease, border .2s ease, color .2s ease;
}
.nav a:hover{transform:translateY(-1px); background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.08)}
.nav a.cta{
  background: linear-gradient(135deg, rgba(255,43,43,.85), rgba(176,0,22,.85));
  border-color: rgba(255,43,43,.55);
  box-shadow: 0 14px 40px rgba(255,43,43,.20);
}

.navToggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  align-items:center; justify-content:center;
  gap:5px; flex-direction:column;
}
.navToggle span{width:18px; height:2px; background:rgba(233,236,244,.92); border-radius:99px}

.hero{position:relative; padding-top:86px; min-height:92vh; display:flex; align-items:stretch}
.heroMedia{position:absolute; inset:0; overflow:hidden}
.heroMedia img{width:100%; height:100%; object-fit:cover; opacity:.28; transform:scale(1.02)}
.heroScrim{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 22% 20%, rgba(255,43,43,.28), transparent 55%),
    radial-gradient(800px 520px at 80% 40%, rgba(39,243,177,.08), transparent 60%),
    linear-gradient(180deg, rgba(6,7,10,.25), rgba(6,7,10,.92) 78%, rgba(6,7,10,1));
}

.heroGrid{position:relative; display:grid; grid-template-columns: 1.2fr .8fr; gap:22px; padding:58px 0 34px}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  font-size:12px; color:rgba(233,236,244,.86);
  letter-spacing:2.4px; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.10);
  padding:10px 12px; border-radius:999px;
  background:rgba(10,12,17,.55);
}
.heroCopy h1{
  margin:14px 0 10px;
  font-family: Kanit, Inter, sans-serif;
  font-size:52px; line-height:1.05;
  letter-spacing:-.6px;
}
.heroCopy .accent{color:var(--accent)}
.lead{margin:10px 0 18px; color:rgba(233,236,244,.82); font-size:16px; line-height:1.7; max-width:60ch}

.heroBadges{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(15,18,26,.55);
  font-size:13px; color:rgba(233,236,244,.88)
}
.badge .dot{width:7px; height:7px; border-radius:999px; background:var(--ok); box-shadow:0 0 0 4px rgba(39,243,177,.12)}

.heroActions{display:flex; gap:12px; margin:10px 0 12px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(233,236,244,.92);
  font-weight:700;
  transition: transform .15s ease, background .2s ease, border .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.btn.primary{
  background: linear-gradient(135deg, rgba(255,43,43,.92), rgba(176,0,22,.90));
  border-color: rgba(255,43,43,.55);
  box-shadow: 0 16px 44px rgba(255,43,43,.22);
}
.btn.ghost{background:rgba(10,12,17,.35)}
.btn.full{width:100%}

.miniMeta{display:flex; gap:14px; margin-top:12px; flex-wrap:wrap}
.metaItem{
  background:rgba(15,18,26,.55);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:12px 14px;
  min-width:220px;
}
.metaLabel{font-size:12px; letter-spacing:1.2px; text-transform:uppercase; color:rgba(168,176,194,.95)}
.metaValue{font-size:22px; font-weight:900; margin-top:2px}
.metaValue .unit{font-size:12px; font-weight:700; color:rgba(168,176,194,.95); margin-left:6px}

.heroPanel{
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(15,18,26,.75), rgba(10,12,17,.55));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroPanel::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(800px 220px at 30% 0%, rgba(255,43,43,.25), transparent 55%),
              radial-gradient(700px 220px at 80% 20%, rgba(255,255,255,.06), transparent 55%);
  pointer-events:none;
}
.panelTitle{
  position:relative;
  padding:18px 18px 10px;
  font-size:12px;
  letter-spacing:2.4px;
  text-transform:uppercase;
  color:rgba(233,236,244,.86);
}
.panelBody{position:relative; padding:0 18px 18px; display:flex; flex-direction:column; gap:12px}
.panelRow{
  display:grid; grid-template-columns: 44px 1fr; gap:12px;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(6,7,10,.35);
}
.panelIcon{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:rgba(255,43,43,.12);
  border:1px solid rgba(255,43,43,.28);
  font-weight:900; color:rgba(233,236,244,.92)
}
.panelText{color:rgba(233,236,244,.84); line-height:1.55}
.panelFoot{
  margin-top:4px;
  display:flex; align-items:center; gap:10px;
  color:rgba(168,176,194,.95); font-size:13px;
}
.pulse{
  width:10px; height:10px; border-radius:99px; background:var(--accent);
  box-shadow: 0 0 0 0 rgba(255,43,43,.35);
  animation:pulse 1.6s ease infinite;
}
@keyframes pulse{50%{box-shadow:0 0 0 10px rgba(255,43,43,0)}}

.heroScroll{position:absolute; left:0; right:0; bottom:18px; display:flex; justify-content:center}
.scrollHint{display:flex; gap:10px; align-items:center; color:rgba(233,236,244,.72); font-size:12px; letter-spacing:2px; text-transform:uppercase}
.mouse{
  width:18px; height:28px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  position:relative;
}
.mouse::after{
  content:"";
  position:absolute; left:50%; top:6px; width:4px; height:4px;
  border-radius:99px; background:rgba(233,236,244,.80);
  transform:translateX(-50%);
  animation:scroll 1.4s ease infinite;
}
@keyframes scroll{50%{transform:translate(-50%, 8px); opacity:.55} 100%{opacity:.9}}

.section{padding:76px 0}
.section.alt{background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00))}
.sectionHead{margin-bottom:24px}
.sectionHead h2{
  margin:0 0 10px;
  font-family: Kanit, Inter, sans-serif;
  font-size:34px;
  letter-spacing:-.4px;
}
.sectionHead p{margin:0; color:rgba(168,176,194,.95); line-height:1.7; max-width:82ch}

.grid{display:grid; gap:16px}
.cards{grid-template-columns: repeat(3, 1fr)}
.card{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(15,18,26,.72), rgba(10,12,17,.42));
  box-shadow: 0 14px 42px rgba(0,0,0,.40);
  overflow:hidden;
}
.cardBody{padding:16px 16px 18px}
.card h3{margin:0 0 10px; font-size:18px}
.card p{margin:0; color:rgba(168,176,194,.95); line-height:1.65}

.product img{width:100%; height:220px; object-fit:cover; filter:contrast(108%) saturate(105%)}
.spec{margin:0; padding-left:18px; color:rgba(168,176,194,.95); line-height:1.65}
.spec li{margin:6px 0}
.spec b{color:rgba(233,236,244,.92)}

.noteBar{
  margin-top:18px;
  display:flex; gap:12px; align-items:flex-start;
  border-radius: var(--radius2);
  border:1px solid rgba(255,43,43,.22);
  background: linear-gradient(90deg, rgba(255,43,43,.10), rgba(10,12,17,.55));
  padding:14px 16px;
}
.noteIcon{width:34px; height:34px; border-radius:14px; display:grid; place-items:center; background:rgba(255,43,43,.14); border:1px solid rgba(255,43,43,.25)}
.noteText{color:rgba(233,236,244,.84); line-height:1.65}

.split{display:grid; grid-template-columns: .95fr 1.05fr; gap:18px; align-items:start}
.frame{
  width:100%;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.stack{display:flex; flex-direction:column; gap:14px}
.feature{
  display:grid; grid-template-columns: 44px 1fr; gap:12px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,17,.35);
  padding:14px;
}
.fIcon{width:44px; height:44px; border-radius:16px; display:grid; place-items:center; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08)}
.fBody h3{margin:0 0 6px; font-size:18px}
.fBody p{margin:0; color:rgba(168,176,194,.95); line-height:1.65}
.miniImgRow img{margin-top:10px; width:100%; border-radius:18px; border:1px solid rgba(255,255,255,.08)}
.details{margin-top:10px}
.details summary{cursor:pointer; color:rgba(233,236,244,.90); font-weight:800}
.details ul{margin:10px 0 0; padding-left:18px; color:rgba(168,176,194,.95); line-height:1.65}
.quote{
  margin-top:14px;
  padding:14px 16px;
  border-left:3px solid rgba(255,43,43,.85);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  color:rgba(233,236,244,.86);
  line-height:1.7;
}

.marketGrid{grid-template-columns: 1fr 1fr}
.chartBox{height:320px; width:100%}
.chartHint{margin-top:10px; color:rgba(168,176,194,.90); font-size:13px; line-height:1.6}
.kpiRow{grid-template-columns: repeat(4, 1fr); margin-top:16px}
.kpi{padding:16px}
.kpiLabel{color:rgba(168,176,194,.95); font-size:12px; letter-spacing:2px; text-transform:uppercase}
.kpiValue{font-size:30px; font-weight:900; margin-top:6px}
.kpiSub{margin-top:8px; color:rgba(168,176,194,.92); font-size:13px; line-height:1.55}

.swotGrid{grid-template-columns: 1fr 1fr}
.swot{padding:16px}
.swotHead{display:flex; align-items:center; gap:10px; margin-bottom:10px; font-weight:900}
.tag{
  width:28px; height:28px; border-radius:12px; display:grid; place-items:center;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10)
}
.swot ul{margin:0; padding-left:18px; color:rgba(168,176,194,.95); line-height:1.65}
.swot.s{border-color: rgba(39,243,177,.18)}
.swot.o{border-color: rgba(255,255,255,.12)}
.swot.w{border-color: rgba(255,43,43,.16)}
.swot.t{border-color: rgba(255,43,43,.16)}

.manager{
  margin-top:18px;
  display:flex; gap:14px; align-items:center;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(90deg, rgba(255,43,43,.08), rgba(10,12,17,.55));
  overflow:hidden;
}
.manager img{width:180px; height:180px; object-fit:cover; filter:contrast(110%)}
.mgrBody{padding:14px 16px}
.mgrTitle{color:rgba(168,176,194,.95); letter-spacing:2px; text-transform:uppercase; font-size:12px}
.mgrName{font-size:22px; font-weight:900; margin-top:4px}
.mgrRole{color:rgba(168,176,194,.95); margin-top:2px}
.mgrLine{height:1px; background:rgba(255,255,255,.10); margin:12px 0}
.mgrNote{color:rgba(233,236,244,.84); line-height:1.7}

.afterGrid{grid-template-columns: repeat(3, 1fr)}
.banner{
  margin-top:18px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,43,43,.12), rgba(10,12,17,.62));
  padding:16px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.bannerTitle{font-weight:900; font-size:18px}
.bannerText{margin-top:6px; color:rgba(168,176,194,.95); line-height:1.65; max-width:70ch}

.contact{position:relative; padding:74px 0 0}
.contactMedia{position:absolute; inset:0; overflow:hidden}
.contactMedia img{width:100%; height:100%; object-fit:cover; opacity:.22; filter:contrast(105%)}
.contactScrim{position:absolute; inset:0; background: linear-gradient(180deg, rgba(6,7,10,.58), rgba(6,7,10,.96) 62%, rgba(6,7,10,1))}
.contactGrid{position:relative; display:grid; grid-template-columns: 1fr .9fr; gap:18px; padding-bottom:48px}
.contactCard{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(15,18,26,.80), rgba(10,12,17,.50));
  box-shadow: var(--shadow);
  padding:18px;
}
.contactCard h2{margin:0 0 8px; font-family: Kanit, Inter, sans-serif; font-size:32px}
.muted{color:rgba(168,176,194,.95)}
.contactRows{margin:14px 0 14px; display:flex; flex-direction:column; gap:10px}
.cRow{display:grid; grid-template-columns: 110px 1fr; gap:12px; padding:10px 12px; border-radius:18px; background:rgba(6,7,10,.35); border:1px solid rgba(255,255,255,.08)}
.cKey{color:rgba(168,176,194,.95); font-size:12px; letter-spacing:2px; text-transform:uppercase}
.cVal a{color:rgba(233,236,244,.92); text-decoration:underline; text-underline-offset:4px}

.leadForm{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.row label{display:block; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:rgba(168,176,194,.95); margin-bottom:6px}
input, textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(6,7,10,.35);
  color:rgba(233,236,244,.92);
  padding:12px 12px;
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(255,43,43,.40); box-shadow: 0 0 0 4px rgba(255,43,43,.12)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.formHint{margin-top:8px; color:rgba(168,176,194,.85); font-size:12px; line-height:1.6}

.contactSide{display:flex; flex-direction:column; gap:14px}
.sideCard{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,17,.35);
  padding:16px;
}
.sideTitle{font-weight:900; margin-bottom:10px}
.sideList{margin:0; padding-left:18px; color:rgba(168,176,194,.95); line-height:1.65}
.sideKpis{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:8px}
.sk{border-radius:18px; border:1px solid rgba(255,255,255,.08); background:rgba(6,7,10,.35); padding:12px; text-align:center}
.sk .n{font-size:22px; font-weight:900}
.sk .t{color:rgba(168,176,194,.95); font-size:12px; letter-spacing:1px; text-transform:uppercase}
.sideNote{margin-top:10px; color:rgba(168,176,194,.95); line-height:1.6}

.footer{border-top:1px solid rgba(255,255,255,.06); padding:18px 0; margin-top:10px}
.footerRow{display:flex; justify-content:space-between; gap:12px; color:rgba(233,236,244,.74); font-size:13px}

/* Responsive */
@media (max-width: 1040px){
  .heroGrid{grid-template-columns:1fr; padding:44px 0 22px}
  .heroCopy h1{font-size:44px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr}
  .kpiRow{grid-template-columns:repeat(2,1fr)}
  .marketGrid{grid-template-columns:1fr}
  .contactGrid{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .nav{position:fixed; top:72px; right:12px; left:12px;
       flex-direction:column; gap:8px; padding:12px;
       border-radius: 18px; border:1px solid rgba(255,255,255,.12);
       background: rgba(6,7,10,.92);
       transform: translateY(-20px); opacity:0; pointer-events:none;
       transition: transform .18s ease, opacity .18s ease;
  }
  .nav.open{transform: translateY(0); opacity:1; pointer-events:auto}
  .nav a{width:100%; text-align:center; padding:12px}
  .navToggle{display:flex}
  .cards{grid-template-columns:1fr}
  .afterGrid{grid-template-columns:1fr}
  .swotGrid{grid-template-columns:1fr}
  .heroCopy h1{font-size:38px}
  .grid2{grid-template-columns:1fr}
}
