:root{
  --ink:#131b2c;
  --blue:#2662eb;
  --gray-600:#5d6473;
  --gray-400:#8b91a0;
  --border:#dfe2e7;
  --section-bg:#eef1f6;
  --amber:#f5a300;
  --white:#ffffff;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Poppins',system-ui,sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

/* ---------- Header ---------- */
.topbar{
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  max-width:1280px;
  margin:0 auto;
  padding:20px 40px;
  display:flex;
  align-items:center;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo__mark{
  width:32px;
  height:32px;
  border-radius:9px;
  background:#1f4fa8;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-style:italic;
  font-weight:700;
  font-size:15px;
}
.logo__name{
  font-weight:700;
  font-size:18px;
  color:var(--ink);
}

/* ---------- Hero ---------- */
.hero{
  padding:64px 40px 96px;
}
.hero__inner{
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:40px;
  align-items:center;
}
.hero__text h1{
  font-size:52px;
  line-height:1.14;
  font-weight:800;
  margin:0 0 28px;
  letter-spacing:-0.5px;
}
.hero__text h1 em{
  color:var(--blue);
  font-style:italic;
  font-weight:800;
}
.hero__text h1 .accent{
  color:var(--blue);
}
.hero__sub{
  font-size:18px;
  color:var(--gray-600);
  font-weight:400;
  margin:0;
  max-width:480px;
}

/* ---------- Hero art: stacked, overlapping, rotated cards ---------- */
.hero__art{
  display:flex;
  justify-content:center;
}
.stack{
  position:relative;
  width:100%;
  max-width:530px;
  height:400px;
}
.card{
  position:absolute;
  top:0;
  width:260px;
  height:390px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 40px -12px rgba(20,30,60,.28);
  background:#1c2230;
}
.card--code{
  left:0;
  transform:rotate(-7deg);
  z-index:1;
  padding:16px 14px;
  color:#d7dbe4;
  font-family:'Poppins',monospace;
}
.card--photo{
  left:130px;
  z-index:2;
  transform:rotate(0deg);
  box-shadow:0 24px 46px -12px rgba(20,30,60,.35);
}
.card--design{
  left:262px;
  z-index:1;
  transform:rotate(8deg);
  background:#242a38;
}

.card__topbar{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  color:#9aa1b0;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:10px;
}
.card__topbar .dot{
  width:8px;height:8px;border-radius:50%;background:#555c6d;flex:none;
}
.card__title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.card__row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.pill{
  font-size:10px;
  font-weight:600;
  padding:4px 10px;
  border-radius:6px;
}
.pill--send{ background:#5b4bdb; color:#fff; }
.pill--ok{ background:#1f9d55; color:#fff; }
.meta{ font-size:10px; color:#8a90a0; }
.card__tabs{
  display:flex;
  gap:14px;
  font-size:10px;
  color:#8a90a0;
  margin-bottom:12px;
}
.card__tabs .active{ color:#c9cde0; font-weight:600; }
.code{
  font-size:10.5px;
  line-height:1.65;
  color:#8fd6a3;
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
}

.card--photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.card__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(10,14,24,0) 45%, rgba(8,10,18,.72) 100%);
}

.design__body{
  display:flex;
  height:calc(100% - 34px);
}
.design__canvas{
  flex:1;
  background:#e7ebf1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}
.design__panel{
  width:88px;
  flex:none;
  background:#1b2130;
  padding:10px 8px;
  display:flex;
  flex-direction:column;
  gap:9px;
  border-left:1px solid rgba(255,255,255,.07);
  font-size:8px;
}
.panel__row{
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#7d8496;
  font-weight:600;
}
.panel__row--split{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
}
.panel__row b{
  color:#e7e9f0;
  font-weight:700;
}

.phone--search{
  width:120px;
  background:#fff;
  border-radius:10px;
  border:2px solid #10131f;
  padding:8px 8px 10px;
  display:flex;
  flex-direction:column;
  gap:5px;
  box-shadow:0 10px 20px rgba(10,15,30,.28);
}
.phone__status{
  font-size:7px;
  font-weight:700;
  color:#222;
}
.phone__heading{
  font-size:15px;
  font-weight:800;
  color:#10131f;
  line-height:1;
}
.phone__input{
  font-size:8px;
  color:#555;
  border:1px solid #10131f;
  border-radius:4px;
  padding:4px 6px;
}
.phone__label-sm{
  font-size:6px;
  font-weight:700;
  letter-spacing:.4px;
  color:#10131f;
  margin-top:1px;
}
.phone__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
}
.phone__grid span{
  display:block;
  aspect-ratio:1;
  border-radius:2px;
}
.phone__grid span:nth-child(1){ background:#c48a5a; }
.phone__grid span:nth-child(2){ background:#8a6a4b; }
.phone__grid span:nth-child(3){ background:#d9d9d9; }
.phone__grid span:nth-child(4){ background:#7a9b5e; }
.phone__grid span:nth-child(5){ background:#b98955; }
.phone__grid span:nth-child(6){ background:#4d5a63; }
.phone__cta{
  margin-top:3px;
  border:1px solid #10131f;
  border-radius:4px;
  text-align:center;
  font-size:6.5px;
  font-weight:700;
  letter-spacing:.4px;
  padding:4px 0;
  color:#10131f;
}

.caption{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  color:var(--amber);
  font-weight:700;
  font-style:italic;
  font-size:15px;
  line-height:1.3;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  z-index:5;
}
.caption--center{ text-align:left; }
.caption--right{ text-align:right; }

/* ---------- Stack strip ---------- */
.stackbar{
  background:var(--section-bg);
  padding:56px 40px 60px;
  text-align:center;
}
.stackbar__eyebrow{
  font-size:12px;
  letter-spacing:3px;
  color:var(--gray-400);
  font-weight:600;
  margin:0 0 28px;
}
.stackbar__list{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:1080px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  row-gap:16px;
}
.stackbar__list li{
  font-size:17px;
  color:var(--gray-600);
  font-weight:500;
}
.stackbar__list li em{
  font-style:italic;
}

/* ---------- Develop section ---------- */
.develop{
  max-width:1000px;
  margin:0 auto;
  padding:110px 40px 24px;
  text-align:center;
}
.develop h2{
  font-size:38px;
  font-weight:800;
  margin:0 0 26px;
}
.develop__lede{
  font-size:17px;
  color:var(--gray-600);
  line-height:1.75;
  margin:0 auto 56px;
  max-width:820px;
  font-weight:400;
}
.develop__lede .link{
  color:var(--blue);
  font-weight:700;
  font-style:normal;
}

.cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  padding-bottom:90px;
}
.feature-card{
  border:1px solid var(--border);
  border-radius:12px;
  padding:44px 32px 40px;
  text-align:center;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover{
  transform:translateY(-8px);
  border-color:var(--blue);
  background:#fbfcff;
  box-shadow:0 26px 50px -22px rgba(38,99,235,.38);
}
.feature-card__icon{
  color:var(--blue);
  margin:0 auto 20px;
  width:52px;
  height:52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  transition:background .25s ease, transform .25s ease, color .25s ease;
}
.feature-card:hover .feature-card__icon{
  background:rgba(38,99,235,.12);
  transform:scale(1.08) rotate(-6deg);
}
.feature-card h3{
  font-size:19px;
  font-weight:700;
  margin:0 0 14px;
  transition:color .25s ease;
}
.feature-card:hover h3{
  color:var(--blue);
}
.feature-card p{
  font-size:15px;
  color:var(--gray-600);
  margin:0;
  font-weight:400;
}

/* ---------- Community ---------- */
.community{
  background:var(--section-bg);
  padding:100px 40px 120px;
}
.community h2{
  max-width:1280px;
  margin:0 auto 56px;
  text-align:center;
  font-size:34px;
  line-height:1.3;
  font-weight:800;
}
.community h2 .accent-strong{
  color:var(--blue);
}
.community-card{
  max-width:1280px;
  margin:0 auto;
}
.community-card{
  display:block;
}
.community > .community-card{
  max-width:380px;
  width:100%;
  display:block;
  background:var(--white);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 24px 54px -28px rgba(20,30,60,.28);
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
}
.community > .community-card:hover{
  transform:translateY(-6px);
  box-shadow:0 30px 60px -24px rgba(20,30,60,.35);
}
.community-card__art{
  position:relative;
  height:290px;
  background:#f1f5f9;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 20px;
}
.community-card__art .ascii{
  position:absolute;
  inset:0;
  margin:0;
  padding:14px;
  font-family:'Courier New',monospace;
  font-size:9px;
  line-height:1.55;
  letter-spacing:1px;
  color:#ccd1da;
  white-space:pre-wrap;
  word-break:break-all;
  overflow:hidden;
  user-select:none;
}
.community-card__title{
  position:relative;
  z-index:2;
  font-weight:800;
  font-size:32px;
  line-height:1.05;
  color:#10131f;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:-.5px;
}
.community-card__subtitle{
  position:relative;
  z-index:2;
  color:#e13a30;
  font-weight:700;
  font-size:13px;
  margin-top:8px;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.3px;
}
.community-card__body{
  padding:26px 24px 30px;
}
.community-card__heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}
.community-card__heading h3{
  font-size:18px;
  font-weight:700;
  margin:0;
}
.community-card__body p{
  font-size:12px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--gray-600);
  margin:0;
  line-height:1.7;
  font-weight:500;
}
.link-arrow{
  color:var(--blue);
  flex-shrink:0;
}

/* ---------- CTA ---------- */
.cta{
  background:var(--blue);
  padding:90px 40px;
  text-align:center;
}
.cta h2{
  color:#fff;
  font-size:32px;
  font-weight:800;
  margin:0 0 32px;
}
.cta__buttons{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.btn{
  padding:14px 32px;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  display:inline-block;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.btn--light{
  background:#fff;
  color:var(--blue);
}
.btn--light:hover{
  background:#eef1f6;
  transform:translateY(-2px);
}
.btn--outline{
  background:transparent;
  color:#fff;
  border:1.5px solid #fff;
}
.btn--outline:hover{
  background:rgba(255,255,255,.14);
  transform:translateY(-2px);
}

/* ---------- Footer ---------- */
.footer{
  background:#101827;
  padding:26px 40px;
  position:relative;
}
.footer__inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#c6cad4;
  font-size:14px;
}
.footer__inner a{
  color:#c6cad4;
  text-decoration:none;
  transition:color .2s ease;
}
.footer__inner a:hover{
  color:#fff;
}
.scrolltop{
  position:absolute;
  right:24px;
  bottom:24px;
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--blue);
  color:#fff;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease, transform .2s ease;
}
.scrolltop:hover{
  background:#1d52d6;
  transform:translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero__inner{
    grid-template-columns:1fr;
  }
  .hero__text h1{ font-size:38px; }
  .stack{ height:340px; max-width:420px; margin:0 auto; }
  .card{ width:210px; height:330px; }
  .card--photo{ left:100px; }
  .card--design{ left:200px; }
  .stackbar__list{ justify-content:center; gap:32px; }
  .cards{ grid-template-columns:1fr; }
}
@media (max-width: 480px){
  .topbar__inner{ padding:16px 20px; }
  .hero{ padding:40px 20px 64px; }
  .hero__text h1{ font-size:30px; }
  .develop{ padding:70px 20px 24px; }
  .stackbar{ padding:40px 20px; }
  .community{ padding:64px 20px 80px; }
  .community h2{ font-size:26px; margin-bottom:40px; }
  .community > .community-card{ max-width:100%; }
  .cta{ padding:64px 20px; }
  .cta h2{ font-size:26px; }
  .footer{ padding:20px 20px 60px; }
  .footer__inner{ flex-direction:column; align-items:flex-start; gap:8px; }
  .scrolltop{ right:16px; bottom:16px; }
}
