/* ApexView one-page landing
   Dark-first, simple, fast. */

:root{
  --bg:#060B14;
  --bg2:#07121f;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --border:rgba(255,255,255,.12);
  --text:#EAF1FF;
  --muted:rgba(234,241,255,.72);
  --muted2:rgba(234,241,255,.55);
  --shadow:0 24px 80px rgba(0,0,0,.55);
  --radius:18px;

  --blue:#2E8BFF;
  --cyan:#57E6FF;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 70% 10%, rgba(46,139,255,.20), transparent 60%),
              radial-gradient(900px 600px at 25% 30%, rgba(87,230,255,.12), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.35;
}

a{color:inherit}
.muted{color:var(--muted)}
.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}
.inline-link{
  margin-left:6px;
  color: rgba(87,230,255,.90);
  font-weight:650;
  text-decoration:none;
}
.inline-link:hover{
  text-decoration:underline;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Nav */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(6,11,20,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.brand-name{
  font-weight:760;
  letter-spacing:.2px;
}
.nav-links{
  display:flex;
  gap:16px;
  color:var(--muted);
}
.nav-links a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
}
.nav-links a:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  border-radius:14px;
  padding:10px 14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:650;
}
.btn:hover{background:rgba(255,255,255,.07)}
.btn-primary{
  border:1px solid rgba(87,230,255,.45);
  background: linear-gradient(135deg, rgba(46,139,255,.95), rgba(87,230,255,.80));
  box-shadow:0 18px 60px rgba(46,139,255,.22);
}
.btn-primary:hover{filter:brightness(1.04)}
.btn-ghost{
  background:rgba(255,255,255,.02);
}

.nav-toggle{
  display:none;
  width:44px;height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  padding:10px;
}
.nav-toggle span{
  display:block;
  height:2px;
  background:rgba(234,241,255,.85);
  margin:5px 0;
}
.nav-mobile{
  display:none;
  padding:12px 0 18px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.nav-mobile a{display:block; padding:10px 0; text-decoration:none; color:var(--muted)}
.nav-mobile .btn{margin-top:10px; width:100%}

/* Hero */
.hero{
  position:relative;
  padding:54px 0 20px 0;
}
.hero-bg{
  position:absolute;
  inset:0;
  background: radial-gradient(900px 500px at 30% 20%, rgba(46,139,255,.22), transparent 60%),
              radial-gradient(700px 420px at 75% 35%, rgba(87,230,255,.14), transparent 60%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:34px;
  align-items:center;
}
.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:600;
  width:max-content;
  max-width:100%;
  flex-wrap:wrap;
}
h1{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.05;
  margin:14px 0 12px 0;
  letter-spacing:-.6px;
}
.lead{
  font-size: clamp(16px, 1.5vw, 20px);
  color:var(--muted);
  margin:0 0 18px 0;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 18px 0;
}
.trust{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.trust-item{
  padding:8px 10px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-weight:600;
}
.fineprint{
  margin-top:16px;
  color:var(--muted2);
  font-size:13px;
}
.fineprint code{
  background:rgba(255,255,255,.06);
  padding:2px 6px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.10);
}

.hero-media{display:flex; justify-content:center}
.phone-frame{
  border-radius:28px;
  padding:10px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.phone-shot{
  display:block;
  width:100%;
  max-width:360px;
  height:auto;
  border-radius:22px;
}

/* Sections */
.section{padding:56px 0}
.section-head{margin-bottom:18px}
.section-head h2{
  font-size: clamp(24px, 2.4vw, 34px);
  margin:0 0 8px 0;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 22px 80px rgba(0,0,0,.35);
}
.card h3{
  margin:0 0 8px 0;
  font-size:18px;
}
.card p{margin:0; color:var(--muted)}

/* Screenshots carousel */
.shots{
  display:grid;
  grid-template-columns: 52px 1fr 52px;
  gap:10px;
  align-items:center;
  margin-top:14px;
}
.shot-stage{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  padding:14px;
  box-shadow: var(--shadow);
  display:flex;
  justify-content:center;
}
.shot-stage img{
  width:min(360px, 100%);
  height:auto;
  border-radius:22px;
}
.shot-nav{
  width:52px;height:52px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:26px;
  cursor:pointer;
}
.shot-nav:hover{background:rgba(255,255,255,.07)}
.shot-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}
.dot{
  width:10px;height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  cursor:pointer;
}
.dot.active{
  background: linear-gradient(135deg, rgba(46,139,255,.95), rgba(87,230,255,.80));
  border-color: rgba(87,230,255,.55);
}
.shot-caption{
  margin-top:12px;
  text-align:center;
  color:var(--muted);
  font-weight:600;
}

/* FAQ */
.faq details{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:14px 16px;
  margin:10px 0;
}
.faq summary{
  cursor:pointer;
  font-weight:700;
}
.answer{
  margin-top:10px;
  color:var(--muted);
}

/* CTA */
.section-cta{padding-top:40px; padding-bottom:34px}
.cta-box{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
  background: linear-gradient(135deg, rgba(46,139,255,.18), rgba(87,230,255,.10));
  border:1px solid rgba(87,230,255,.22);
  border-radius: 26px;
  padding:22px;
  box-shadow: var(--shadow);
}
.mini-points{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.mini-point{
  padding:8px 10px;
  border-radius:14px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-weight:650;
}

.simple-form{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
}
.simple-form input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.simple-form input::placeholder{color:rgba(234,241,255,.45)}
.simple-form button[disabled]{opacity:.55; cursor:not-allowed}
.form-note{
  margin:10px 0 0 0;
  color:var(--muted2);
  font-size:13px;
  grid-column:1 / -1;
}
.support{
  margin-top:14px;
  color:var(--muted);
  font-weight:600;
}
.support a{color:rgba(87,230,255,.90)}

/* Footer */
.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:18px;
  color:var(--muted2);
  font-size:13px;
}
.footer-links{display:flex; gap:12px}
.footer-links a{color:var(--muted2); text-decoration:none}
.footer-links a:hover{color:var(--text)}

.note{
  margin-top:14px;
  color:var(--muted2);
  font-size:13px;
}

/* Responsive */


/* Inner pages (install/privacy/terms/thanks) */
.page-wrap{
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}
.page-wrap.tight{
  padding: 48px 0;
}
.brand-row{
  text-decoration:none;
  display:inline-flex;
  gap:10px;
  align-items:center;
}

@media (max-width: 900px){
  .container{
    width: calc(100% - 32px);
  }

  .nav-links{display:none}
  .nav-cta{display:none}
  .nav-toggle{display:block}

  .nav-inner{
    padding:12px 0;
  }

  .hero{
    padding:40px 0 10px 0;
  }

  .hero-inner{
    grid-template-columns: 1fr;
    gap:18px;
  }

  h1{
    font-size: clamp(30px, 8vw, 42px);
    letter-spacing:-.4px;
  }

  .lead{
    font-size:16px;
  }

  .hero-actions{
    gap:10px;
  }
  .hero-actions .btn{
    width:100%;
    padding:12px 14px;
    border-radius:16px;
  }

  .phone-frame{padding:8px}
  .phone-shot{max-width:320px}

  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .cta-box{grid-template-columns:1fr}

  .simple-form{
    grid-template-columns: 1fr;
  }

  .shots{grid-template-columns: 44px 1fr 44px}
  .shot-nav{width:44px;height:44px}
  .shot-stage img{
    width:100%;
    max-width:320px;
  }

  .footer{
    flex-direction:column;
    align-items:flex-start;
  }
}



/* Mobile-first refinements (iPhone and small screens) */
@media (max-width: 600px){
  .container{
    width: calc(100% - 24px);
  }

  .section{
    padding: 28px 0;
  }

  .section-head{
    margin-bottom: 14px;
  }

  .section-head h2{
    font-size: 24px;
    line-height: 1.15;
  }

  .pill{
    font-size: 12px;
    padding: 7px 10px;
    gap: 8px;
  }

  .hero{
    padding: 28px 0 10px 0;
  }

  h1{
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.4px;
  }

  .lead{
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* Trust chips: 2 columns instead of a long wrap */
  .trust{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .trust-item{
    text-align: center;
    padding: 10px;
  }

  /* Screenshot carousel: keep the image large, put buttons below it */
  .shots{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "stage stage"
      "prev next";
    gap: 10px;
    align-items: stretch;
  }
  .shot-stage{
    grid-area: stage;
  }
  #prevShot{
    grid-area: prev;
  }
  #nextShot{
    grid-area: next;
  }
  .shot-nav{
    width: 100%;
    height: 44px;
  }
  .shot-stage img{
    max-width: 100%;
  }

  .shot-caption{
    font-size: 14px;
    line-height: 1.4;
  }

  .grid3{
    gap: 12px;
  }
  .card{
    padding: 16px;
  }

  /* Signup form area */
  form{
    width: 100%;
  }
  .form-row{
    flex-direction: column;
    gap: 10px;
  }
  input, select, textarea{
    width: 100%;
  }

  /* Inner pages padding */
  .page-wrap{
    padding: 28px 0;
  }
  .page-wrap.tight{
    padding: 22px 0;
  }
}

@media (max-width: 420px){
  .trust{
    grid-template-columns: 1fr;
  }
  .shot-dots{
    gap: 6px;
  }
  .btn{
    padding: 12px 14px;
  }
}

.mt-18{ margin-top:18px; }
