:root{
  --brand-blue:#0060E6;
  --brand-dark:#0A1B3E;
  --brand-ink:#0E1222;
  --brand-bg:#090F1F;
  --brand-card: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.10);
  --text:#EAF1FF;
  --muted:#B9C6E0;
  --accent:#4BE1B4;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,96,230,0.25), transparent 60%),
    radial-gradient(1000px 600px at -10% 20%, rgba(75,225,180,0.15), transparent 60%),
    var(--brand-bg);
  line-height:1.6;
}

.nowrap{white-space:nowrap}
.container{width:min(1120px, 92%); margin-inline:auto}

/* Header / Nav  */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(to bottom, rgba(9,15,31,0.85), rgba(9,15,31,0.55));
  border-bottom:1px solid var(--stroke);
}
.nav{display:flex; align-items:center; gap:16px; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text)}
.brand-mark{display:grid; place-items:center; width:28px; height:28px}
.brand-mark svg{width:100%; height:100%}
.logo-shield{fill:var(--brand-blue)}
.logo-glyph{fill:#9EC7FF}
.brand-text{font-weight:700; letter-spacing:.2px}

.primary-nav ul{display:flex; gap:16px; list-style:none; margin:0; padding:0}
.primary-nav a{color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:10px}
.primary-nav a:hover{color:var(--text); background:rgba(255,255,255,0.06)}
.menu-toggle{display:none}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; border-radius:999px; border:1px solid var(--stroke);
  padding:10px 16px; text-decoration:none; cursor:pointer; font-weight:600;
  color:var(--text); background:transparent;
}
.btn:hover{border-color:rgba(255,255,255,0.2)}
.btn-primary{
  background:linear-gradient(180deg, #3A8CFF, var(--brand-blue));
  border-color:transparent;
  box-shadow: 0 10px 24px rgba(0,96,230,0.35);
}
.btn-primary:hover{filter:brightness(1.05)}
.btn-ghost{background:rgba(255,255,255,0.06)}
.btn-ghost:hover{background:rgba(255,255,255,0.10)}
.btn.wide{width:100%}

/* Hero */
.hero { padding-top: 40px; padding-bottom: 40px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:32px; align-items:start;
}
.hero h1{font-size: clamp(28px, 4vw, 44px); line-height:1.1; margin:0 0 12px}
.lead{color:var(--muted); font-size: clamp(16px, 2vw, 18px); margin:0 0 18px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}

.hero-badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.badge{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px;
  background:rgba(255,255,255,0.06); border:1px solid var(--stroke); border-radius:999px;
  font-size:14px; color:#DAE6FF;
}

/* Text column */
.hero-grid{ align-items:start; }
.hero-copy{
  display:flex;
  flex-direction:column;
  max-width: 640px;
}

/* Read more area — mobile-first (tight under text) */
.read-more-copy{
  margin-top:8px;
  padding-top:0;
  padding-bottom:16px;
  display:flex;
  justify-content:flex-start;
}
.read-more-copy .btn{ width:fit-content; }

/* Smooth scroll + offset for sticky header */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }

/* Icons (mask) */
.icon{width:18px; height:18px; display:inline-block; background:currentColor; mask-size:contain; mask-repeat:no-repeat; mask-position:center}
.icon.shield{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2l7 3v5c0 5-3.3 9.6-7 11-3.7-1.4-7-6-7-11V5l7-3z"/></svg>')}
.icon.lock{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6 10h12v10H6V10zm2 0V7a4 4 0 118 0v3h-2V7a2 2 0 10-4 0v3H8z"/></svg>')}
.icon.clock{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2a10 10 0 100 20 10 10 0 000-20zm1 5v5l4 2-1 1-5-3V7h2z"/></svg>')}
.icon.qr{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M3 3h8v8H3V3zm2 2v4h4V5H5zm6 0h2v2h-2V5zm4 0h6v6h-6V5zm2 2v2h2V7h-2zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm10 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-4 4h2v2h-2v-2zm4 0h2v4h-2v-4zm-6 0h2v2h-2v-2z"/></svg>')}

/* Glass card */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border:1px solid var(--stroke);
  border-radius:20px;
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.brand-logo { height:32px; width:auto; display:block; }

/* === App screenshot frame === */
.hero-card{ padding:0 }
.app-shot{
  margin:0 auto;
  padding:14px;
  border-radius:42px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border:1px solid var(--stroke);
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  aspect-ratio: 9 / 18.5; /* portrait iPhone 16 */
  width: clamp(220px, 30vw, 320px);
  overflow:hidden;
}
.app-shot img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:38px;
  border:1px solid var(--stroke);
  background: rgba(5,10,22,.6);
}

/* Cards/notes */
.card-note{color:var(--muted); font-size:13px; margin:10px 4px 0; text-align:center}

/* Sections */
.section{padding:64px 0}
.section.alt{background:linear-gradient(180deg, rgba(255,255,255,.05), transparent)}
.section-head h2{margin:0 0 6px; font-size: clamp(22px, 3.2vw, 32px)}
.section-head p{margin:0 0 24px; color:var(--muted)}

.grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:18px}
.feature{padding:18px; border-radius:16px; background:rgba(255,255,255,.04); border:1px solid var(--stroke)}
.feature h3{margin:6px 0 6px}
.feature p{margin:0; color:var(--muted)}

.feature-icon{width:28px; height:28px; margin-bottom:10px; background:#9EC7FF; opacity:.95; border-radius:8px}
.feature-icon.lock{mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6 10h12v10H6V10zm2 0V7a4 4 0 118 0v3h-2V7a2 2 0 10-4 0v3H8z"/></svg>') center / contain no-repeat}
.feature-icon.shield{mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2l7 3v5c0 5-3.3 9.6-7 11-3.7-1.4-7-6-7-11V5l7-3z"/></svg>') center / contain no-repeat}
.feature-icon.doc{mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6 2h8l6 6v14H6V2zm8 1.5V9h5.5"/></svg>') center/contain no-repeat}
.feature-icon.qr{mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M3 3h8v8H3V3zm2 2v4h4V5H5zm6 0h2v2h-2V5zm4 0h6v6h-6V5zm2 2v2h2V7h-2zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm10 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-4 4h2v2h-2v-2zm4 0h2v4h-2v-4zm-6 0h2v2h-2v-2z"/></svg>') center/contain no-repeat}
.feature-icon.nfc{mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M5 2h14a2 2 0 012 2v16a2 2 0 01-2 2H5a2 2 0 01-2-2V4a2 2 0 012-2zm10.5 8.5v3a3.5 3.5 0 11-7 0v-3a2 2 0 114 0v3a1.5 1.5 0 11-3 0v-3h1v3a.5.5 0 001 0v-3a2 2 0 114 0z"/></svg>') center/contain no-repeat}
.feature-icon.bolt{mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M13 2L3 14h7l-1 8 10-12h-7l1-8z"/></svg>') center/contain no-repeat}
.feature-icon.gear{mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M19.4 13a7.7 7.7 0 000-2l2-1.5-2-3.5-2.3.9a7.8 7.8 0 00-1.7-1L13 2h-4l-.4 2.8a7.8 7.8 0 00-1.7 1l-2.3-.9-2 3.5L4.6 11a7.7 7.7 0 000 2L2.2 14.5l2 3.5 2.3-.9a7.8 7.8 0 001.7 1L9 22h4l.4-2.8a7.8 7.8 0 001.7-1l2.3.9 2-3.5L19.4 13zM12 15a3 3 0 110-6 3 3 0 010 6z"/></svg>') center/contain no-repeat}
.feature-icon.chart{mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M4 19h16v2H4v-2zM6 7h2v10H6V7zm5 4h2v6h-2v-6zm5-6h2v12h-2V5z"/></svg>') center/contain no-repeat}
.feature-icon.api{mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M7 7l-4 5 4 5h3l-4-5 4-5H7zm10 0h-3l4 5-4 5h3l4-5-4-5zM10 3h4v18h-4V3z"/></svg>') center/contain no-repeat}

/* Info text */
.compliance-note{margin-top:18px; font-size:14px; color:#CFE2FF}

/* Innovation/demo */
.innovation .innov-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:16px}
.innov-card{padding:18px; min-height:120px}

.demo .demo-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:22px; align-items:center}
.demo-card{padding:18px}

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

/* Footer */
.site-footer{border-top:1px solid var(--stroke); padding:28px 0; background:rgba(0,0,0,.2)}
.footer-grid{display:grid; grid-template-columns:1.2fr 1fr 1.2fr; gap:18px; align-items:start}
.links-col{display:grid; gap:8px}
.links-col a{color:var(--muted); text-decoration:none}
.links-col a:hover{color:var(--text)}
.lead-form{display:flex; gap:8px; flex-wrap:wrap}
.lead-form input{
  flex:1 1 220px; padding:10px 12px; border-radius:12px; border:1px solid var(--stroke);
  background:rgba(255,255,255,.06); color:var(--text); outline:none;
}
.lead-form input::placeholder{color:#A6B5D4}
.lead-form .form-msg{margin:4px 0 0; font-size:13px; color:#CFE2FF}

.visually-hidden{position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap}

/* Modal */
.modal{position:fixed; inset:0; display:none}
.modal[aria-hidden="false"]{display:block}
.modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.5)}
.modal-card{
  position:relative; max-width:520px; margin:10vh auto; padding:20px;
}
.modal-close{
  position:absolute; right:10px; top:8px; font-size:28px; line-height:1; background:transparent; border:0; color:#fff; cursor:pointer
}

/* Hover motion on glass */
.glass:hover{transform:translateY(-1px)}
.glass{transition:transform .15s ease}

/* ====== Responsive ====== */
@media (max-width: 1080px){
  .hero-grid{grid-template-columns: 1.05fr 0.95fr}
  .app-shot{width: clamp(240px, 34vw, 340px)}
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .app-shot{width:min(420px, 86vw)}
  .app-shot img{max-height:60vh}
  .innovation .innov-grid{grid-template-columns:repeat(2, 1fr)}
  .grid-3{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr}
}

/* Desktop-only: sink Read more to bottom on wide screens */
@media (min-width: 981px){
  .hero-copy{display:flex; flex-direction:column;}
  .read-more-copy{
    margin-top:auto;
    padding-top:250px;
    padding-bottom:40px;
    justify-content:center;
  }
}

/* Phone tweaks */
@media (max-width: 640px){
  .grid-3{grid-template-columns:1fr}
  .innovation .innov-grid{grid-template-columns:1fr}

  .primary-nav ul{display:none}
  .menu-toggle{
    display:inline-flex; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.06);
    border:1px solid var(--stroke); color:var(--text)
  }
  .primary-nav[data-open="true"] ul{
    display:flex; position:absolute; top:56px; left:0; right:0; padding:10px 4%;
    background:rgba(9,15,31,.95); border-bottom:1px solid var(--stroke)
  }

  .hero{padding-top:32px; padding-bottom:28px}
  .lead{margin:0 0 10px}
  .cta-row{margin-top:0}
  .hero-badges{margin-top:10px}

  /* Keep Read more tight under text on phones */
  .read-more-copy{
    margin-top:6px !important;
    padding-top:6px !important;
    padding-bottom:12px;
    justify-content:flex-start;
  }
  .read-more-copy .btn{margin:0}

root { --phone-ratio: 9/18.4; }

  .app-shot{
    aspect-ratio: var(--phone-ratio) !important;
    padding:14px !important;
    border-radius:42px !important;
    border:1px solid var(--stroke) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)) !important;
    backdrop-filter: blur(10px) saturate(130%) !important;
    overflow:hidden !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .app-shot img{
    max-width:100% !important;
    max-height:100% !important;
    width:auto !important;
    height:auto !important;

    object-fit:contain !important;
    object-position:50% 50% !important;

    /* inner radius = outer(42) - padding(14) = 28 */
    border-radius:28px !important;

    border:1px solid var(--stroke) !important;
    background: rgba(5,10,22,.6);
  }
}

