:root{
  --bg0:#070b18;
  --bg1:#0b1430;

  --ink:rgba(255,255,255,0.92);
  --muted:rgba(255,255,255,0.75);
  --muted2:rgba(255,255,255,0.72);

  --line:rgba(120,150,255,0.18);
  --line2:rgba(120,150,255,0.35);

  --shadow:0 16px 50px rgba(0,0,0,0.35);
  --shadow2:0 16px 40px rgba(0,0,0,0.25);

  --radius:22px;

  --max:1080px;

  --glowA: rgba(120, 220, 255, 0.18);
  --glowB: rgba(74, 134, 255, 0.14);
}

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

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink);
  line-height:1.55;
}

/* Starfield background */
.bg-digital{
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(30,80,255,0.25), transparent 65%),
    radial-gradient(900px 500px at 10% 30%, rgba(0,200,255,0.20), transparent 60%),
    radial-gradient(900px 500px at 90% 70%, rgba(0,120,255,0.18), transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 0 1px, transparent 2px) 0 0/120px 120px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.28) 0 1px, transparent 2px) 0 0/140px 140px,
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.22) 0 1px, transparent 2px) 0 0/160px 160px,
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.20) 0 1px, transparent 2px) 0 0/180px 180px,
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

/* Home top navigation (no logo) */
.home-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:20;
  padding:14px 0;
  background: rgba(7,11,24,0.40);
  border-bottom: 1px solid rgba(120,150,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-header-inner{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* HERO (homepage) */
.hero{
  padding:56px 0 40px;
  text-align:center;
}

/* account for fixed home nav */
.home .hero{
  padding-top:120px;
}

.hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.logo{
  width:340px;
  height:auto;
  filter:drop-shadow(0 14px 30px rgba(0,0,0,0.35));
}

h1{
  margin:0;
  font-size:clamp(32px,4vw,52px);
  letter-spacing:-0.5px;
  line-height:1.12;
  text-shadow:0 18px 40px rgba(0,0,0,0.35);
}

.lead{
  max-width:70ch;
  margin:10px auto 0;
  color:var(--muted);
  font-size:16px;
}

/* Sections */
.content{
  padding:28px 0;
}

/* Full-width body alignment with controlled paragraph line-length */
.text-block{
  max-width:100%;
  margin:0;
}

.text-block > p,
.text-block > ul{
  max-width:92ch;
}

.text-block > ul{
  margin-left:18px;
}

h2{
  margin:0 0 10px;
  font-size:24px;
  letter-spacing:-0.2px;
}

p{
  margin:0 0 14px;
  color:var(--muted);
}

ul{
  margin:10px 0 16px 18px;
  padding:0;
  color:var(--muted);
}

li{ margin:6px 0; }

.muted{
  color:var(--muted2);
  max-width:68ch;
}

/* Top nav styling (shared with pages) */
.page-nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

.page-nav a{
  text-decoration:none;
  color:rgba(255,255,255,0.78);
  font-size:0.95rem;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}

.page-nav a:hover{
  color:rgba(255,255,255,0.92);
  background: rgba(9,18,48,0.35);
  border-color: rgba(120,150,255,0.14);
}

.page-nav a[aria-current="page"]{
  color:rgba(255,255,255,0.95);
  background: rgba(9,18,48,0.55);
  border-color: rgba(120,150,255,0.22);
}

/* Lenses (homepage cards) */
.lenses .muted{
  margin:0.25rem 0 1.25rem;
}

.lens-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
  margin-top:32px;
}

/* cards as links */
.lens-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.lens-card{
  background:rgba(9,18,48,0.55);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow2);
  padding:26px 22px 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position:relative;
  overflow:hidden;
}

.lens-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 18% 20%, var(--glowA), transparent 55%),
    radial-gradient(circle at 80% 85%, var(--glowB), transparent 60%);
  opacity:0;
  transition: opacity 200ms ease;
  pointer-events:none;
}

.lens-card:hover{
  transform: translateY(-3px);
  border-color: rgba(120,150,255,0.35);
  background: rgba(9,18,48,0.62);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.42),
    0 0 24px rgba(120,220,255,0.10),
    0 0 18px rgba(74,134,255,0.08);
}

.lens-card:hover::before{ opacity:1; }

.lens-card:focus-visible{
  outline: 2px solid rgba(120,220,255,0.55);
  outline-offset: 3px;
}

.lens-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:12px;
}

.lens-head h3{
  margin:0;
  font-size:1.18rem;
  font-weight:700;
  color:rgba(255,255,255,0.94);
}

.lens-icon{
  width:84px;
  height:84px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lens-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.lens-desc{
  margin:0;
  color:rgba(255,255,255,0.78);
  line-height:1.55;
}

.lens-cta{
  display:inline-block;
  margin-top:14px;
  font-size:0.95rem;
  color:rgba(140, 200, 255, 0.85);
  letter-spacing:0.1px;
}

.lens-card:hover .lens-cta{
  color:rgba(180, 235, 255, 0.95);
}

/* CTA panel (homepage + pages) */
.cta{
  margin-top:6px;
  background:rgba(9,18,48,0.55);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-placeholder{
  margin-top:14px;
  border:2px solid var(--line2);
  border-radius:14px;
  padding:16px;
  color:rgba(255,255,255,0.65);
  text-align:center;
  font-style:italic;
  background:rgba(9,18,48,0.35);
}

/* Footer */
.site-footer{
  margin-top:36px;
  padding:22px 0;
  border-top:1px solid rgba(120,150,255,0.15);
  background: linear-gradient(180deg, rgba(7,11,24,0.25), rgba(7,11,24,0.45));
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.9rem;
  color:rgba(255,255,255,0.6);
}

.footer-left,
.footer-right{
  white-space:nowrap;
}

/* Lens pages: header/nav/hero/buttons/grids */
.page-header{
  padding:16px 0;
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(7,11,24,0.55);
  border-bottom: 1px solid rgba(120,150,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.brand-logo{
  width:190px;
  height:auto;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.35));
}

.page-hero{
  padding:22px 0 10px;
}

.page-hero-card{
  background:rgba(9,18,48,0.55);
  border:1px solid rgba(120,150,255,0.18);
  border-radius:18px;
  box-shadow:var(--shadow2);
  padding:22px;
  position:relative;
  overflow:hidden;
  display:flex;
  gap:18px;
  align-items:flex-start;
}


.page-hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 18% 20%, rgba(120, 220, 255, 0.16), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(74, 134, 255, 0.12), transparent 60%);
  opacity:1;
  pointer-events:none;
}

/* Banner row: force icon + title to stay on one line */
.page-hero-top{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:nowrap;          /* key fix */
  position:relative;
}

/* Ensure the text column can shrink without dropping below icon */
.page-hero-top > :nth-child(2){
  flex:1 1 auto;
  min-width:0;               /* key fix */
}

.page-hero-icon{
  width:120px;
  height:120px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.page-hero-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.page-title{
  margin:0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height:1.2;
  letter-spacing:-0.3px;
}

.page-subtitle{
  margin:8px 0 0;
  color:rgba(255,255,255,0.78);
  max-width:72ch;
}

.page-hero-actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  position:relative;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:600;
  letter-spacing:0.1px;
  border:1px solid transparent;
}

.btn-primary{
  color: rgba(255,255,255,0.92);
  background: linear-gradient(180deg, rgba(50,120,255,0.55), rgba(25,85,220,0.35));
  border-color: rgba(120,220,255,0.22);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}

.btn-primary:hover{
  border-color: rgba(120,220,255,0.35);
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}

.btn-ghost{
  color: rgba(255,255,255,0.85);
  background: rgba(9,18,48,0.35);
  border-color: rgba(120,150,255,0.14);
}

.btn-ghost:hover{
  color: rgba(255,255,255,0.95);
  border-color: rgba(120,150,255,0.24);
  background: rgba(9,18,48,0.48);
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin: 14px 0 18px;
}

.info-card{
  background: rgba(9,18,48,0.50);
  border: 1px solid rgba(120,150,255,0.16);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.info-card h3{
  margin:0 0 8px;
  font-size:1.02rem;
  color: rgba(255,255,255,0.92);
}

.info-card p{
  margin:0;
  color: rgba(255,255,255,0.74);
}

.deliverables{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin: 12px 0 18px;
}

.deliverable{
  background: rgba(9,18,48,0.50);
  border: 1px solid rgba(120,150,255,0.16);
  border-radius: 16px;
  padding: 16px;
}

.deliverable h3{
  margin:0 0 8px;
  font-size:1.02rem;
  color: rgba(255,255,255,0.92);
}

.deliverable p{
  margin:0;
  color: rgba(255,255,255,0.74);
}

/* Responsive */
@media (max-width: 900px){
  .lens-grid{ grid-template-columns:1fr; }

  /* collapse the 3-column grids on smaller screens */
  .info-grid{ grid-template-columns:1fr; }
  .deliverables{ grid-template-columns:1fr; }

  /* make banner more compact */
  .page-hero-icon{ width:88px; height:88px; }
  .page-title{ font-size: 26px; }
}

@media (max-width: 720px){
  .container{ width: calc(100% - 28px); }
  .logo{ width:270px; }
  .hero{ padding:44px 0 28px; }

  .home .hero{ padding-top:110px; }

  .footer-inner{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }

  .text-block > p,
  .text-block > ul{
    max-width:100%;
  }

  .page-nav{ gap:10px; }
  .page-nav a{ padding:7px 9px; }
}

.page-hero-copy{flex:1;min-width:0;}
@media (max-width: 720px){.page-hero-card{flex-direction:column;}}
