:root{
  --bg:#0b0910;
  --bg2:#120d18;
  --text:#f8f7fb;
  --muted:#bbb6c8;
  --purple:#9b6cff;
  --hot:#c4a7ff;
  --line:#332940;
  --panel:#120e17;
  --panel2:#17111f;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:linear-gradient(#0b0910,#100c16);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
}
a{text-decoration:none;color:inherit}
.wrap{width:min(1160px,92%);margin:auto}
nav{padding:22px 0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.logo{font-weight:950;letter-spacing:.15em}
.logo i{font-style:normal;color:var(--purple)}
.mid{display:flex;gap:30px;color:#ddd}
.right{display:flex;justify-content:flex-end}

/* custom country dropdown */
.country{position:relative}
.country-btn{
  display:flex;align-items:center;gap:9px;border:1px solid #42334f;background:#120e17;color:white;
  border-radius:999px;padding:10px 14px;cursor:pointer;font:inherit
}
.country-btn:hover{border-color:#6b4f80}
.country-menu{
  display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:210px;padding:7px;background:#120e17;
  border:1px solid #42334f;border-radius:14px;box-shadow:0 18px 45px #0008;z-index:20
}
.country.open .country-menu{display:block}
.country-option{
  display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:#fff;
  padding:10px 11px;border-radius:9px;text-align:left;cursor:pointer;font:inherit
}
.country-option:hover{background:#1c1425}
.flag{width:18px;height:12px;border-radius:2px;box-shadow:0 0 0 1px #ffffff20;overflow:hidden;display:inline-block;flex:none;position:relative}
.flag-us{background:repeating-linear-gradient(to bottom,#b22234 0 1.2px,#fff 1.2px 2.4px)}
.flag-us:before{content:"";position:absolute;left:0;top:0;width:8px;height:6.5px;background:#3c3b6e}
.flag-mx{background:linear-gradient(to right,#006847 0 33.33%,#fff 33.33% 66.66%,#ce1126 66.66%)}
.flag-mx:before{content:"";position:absolute;width:2px;height:2px;border-radius:50%;background:#8a6a28;left:8px;top:5px}
.chev{font-size:.72rem;color:#a69dad;margin-left:2px}

.hero{padding:70px 0 34px;text-align:center;position:relative}
.pill{
  display:inline-block;border:1px solid #4a385a;background:#160f20;padding:7px 12px;border-radius:999px;
  color:var(--hot);font-size:.77rem;font-weight:800;letter-spacing:.12em
}
h1{
  font-size:clamp(3rem,8vw,6.8rem);line-height:.95;letter-spacing:-.055em;margin:24px auto 20px;max-width:1050px
}
.hero p{color:var(--muted);font-size:1.15rem;max-width:760px;margin:auto}
.actions{display:flex;justify-content:center;gap:12px;margin:28px 0 58px}
.btn{
  border:1px solid #4b395b;background:transparent;color:#fff;padding:14px 18px;border-radius:12px;
  font-weight:800;display:inline-flex;align-items:center;justify-content:center
}
.btn.primary{background:var(--purple);border-color:var(--purple);color:#fff}

.mock{
  margin:auto;max-width:980px;border:1px solid #4b385d;border-radius:26px;padding:18px;
  background:linear-gradient(145deg,#17101e,#0d0b10);box-shadow:0 40px 110px #6d28d92b
}
.screen{
  min-height:420px;border:1px solid #2c2236;border-radius:18px;
  background:
    radial-gradient(circle at 50% 22%,#4c1d9540,transparent 30%),
    linear-gradient(180deg,#0b0810,#0a080d);
  display:flex;align-items:center;justify-content:center;padding:28px 18px
}

.infra{width:min(860px,100%);display:flex;flex-direction:column;align-items:center}
.flow{
  display:grid;grid-template-columns:1fr auto 1fr auto 1.45fr;gap:16px;align-items:center;width:100%;
}
.arrow{
  color:#a987ff;font-size:2rem;font-weight:900;text-shadow:0 0 20px #7c3aed55;
}
.device-card{
  position:relative;background:linear-gradient(180deg,#16101d,#110d16);border:1px solid #5d4770;border-radius:20px;
  box-shadow:0 10px 30px #0005;padding:54px 14px 14px;
}
.device-card.small{min-height:215px}
.device-card.large{min-height:250px}
.tag{
  position:absolute;top:14px;left:14px;background:#20152d;border:1px solid #6d52a2;color:#decfff;
  font-size:.66rem;font-weight:800;padding:5px 9px;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;
  line-height:1;white-space:nowrap
}
.device-title{font-size:1.06rem;font-weight:900;margin:0 0 4px;text-align:left}
.device-sub{font-size:.78rem;color:#bca8d8;margin-bottom:12px;text-align:left}

.picture{
  background:radial-gradient(circle at 50% 10%,#ffffff12,transparent 35%), linear-gradient(180deg,#0f0c14,#0a080d);
  border:1px solid #3a2d49;border-radius:16px;display:flex;align-items:center;justify-content:center;
  min-height:110px;padding:12px;margin-bottom:12px
}
.labels,.logo-row{
  display:flex;gap:8px;flex-wrap:wrap;justify-content:center
}
.chip{
  border:1px solid #4c3a60;background:#0f0b13;color:#d9cced;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:700
}
.logo-badge{
  display:flex;align-items:center;gap:7px;border:1px solid #4c3a60;background:#100c15;color:#eee;
  border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:700
}
.logo-badge img{width:16px;height:16px;display:block}
.endpoint-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:100%;margin-top:18px
}
.endpoint-card{
  position:relative;background:linear-gradient(180deg,#15101b,#0f0b14);border:1px solid #4c395a;border-radius:18px;padding:50px 14px 14px
}
.endpoint-card .picture{min-height:92px}
.endpoint-title{font-size:.95rem;font-weight:900;margin:0 0 2px;text-align:left}
.endpoint-sub{font-size:.75rem;color:#bca8d8;margin-bottom:10px;text-align:left}

.services{padding:88px 0}
.head{text-align:center;max-width:740px;margin:auto}
.head h2{font-size:2.7rem;line-height:1.05}
.head p{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:35px}
.card{
  border:1px solid var(--line);background:#100c14;border-radius:22px;padding:25px;min-height:230px
}
.card:before{
  content:"";display:block;width:34px;height:4px;border-radius:99px;background:var(--purple);margin-bottom:24px
}
.card p{color:var(--muted)}

.band{
  border:1px solid var(--line);background:#110d16;padding:28px;border-radius:24px;
  display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center
}
footer{
  padding:26px 0 46px;color:#a9a4b5;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap
}

/* device SVG styling */
svg{display:block}
.server-face{fill:url(#rackGrad);stroke:#6d55a2}
.slot{fill:#0c0b10;stroke:#4d3b62}
.led{fill:#b78dff}
.gateway-face{fill:url(#gwGrad);stroke:#6d55a2}
.cloud-fill{fill:url(#cloudGrad);stroke:#7b5eb5}
.laptop-shell{fill:url(#lapGrad);stroke:#7657a8}
.screen-fill{fill:#17131f}
.ap-disc{fill:url(#apGrad);stroke:#7b60af}
.phone-shell{fill:url(#phoneGrad);stroke:#7558a9}

@media(max-width:960px){
  .flow{grid-template-columns:1fr;gap:12px}
  .arrow{transform:rotate(90deg);margin:auto}
}
@media(max-width:820px){
  nav{grid-template-columns:1fr auto}
  .mid{display:none}
  .cards{grid-template-columns:1fr 1fr}
  .band{grid-template-columns:1fr}
  .endpoint-grid{grid-template-columns:1fr}
}
@media(max-width:540px){
  .cards{grid-template-columns:1fr}
  h1{font-size:3.5rem}
}

.contact-copy h2{margin:0 0 16px;font-size:2.2rem}
.email-pills{display:flex;gap:10px;flex-wrap:wrap}
.email-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border-radius:999px;
  border:1px solid #4b395b;background:#171020;color:#fff;
  font-size:.92rem;font-weight:700;
  transition:.2s ease
}
.email-pill:hover{border-color:#8e68b3;transform:translateY(-1px);background:#1d1527}
.email-dot{width:7px;height:7px;border-radius:50%;background:#9b6cff;box-shadow:0 0 12px #9b6cff}

/* Multi-page production additions */
.page-hero{padding:92px 0 48px;max-width:840px}
.page-hero h1{margin:18px 0 20px;text-align:left;max-width:900px}
.page-hero p{color:var(--muted);font-size:1.15rem;max-width:720px}
.content-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:20px 0 90px}
.content-card{border:1px solid var(--line);background:#100c14;border-radius:22px;padding:28px}
.content-card h2,.content-card h3{margin-top:0}
.content-card p{color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px 0 90px}
.contact-panel{border:1px solid var(--line);background:#100c14;border-radius:22px;padding:30px}
.contact-panel p{color:var(--muted)}
.contact-list{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.contact-list .email-pill{width:max-content}
@media(max-width:800px){.content-grid,.contact-grid{grid-template-columns:1fr}}
