/* Minimal modern responsive styles */
:root{
  --bg:#0f1720; /* deep slate */
  --card:#0b1220;
  --muted:#9aa4b2;
  --accent:#7dd3fc; /* cyan */
  --glass: rgba(255,255,255,0.03);
  --radius:12px;
  --max-width:900px;
  --gap:18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  /* Use a single solid background color instead of a two-color gradient
     to remove the lighter band visible in the page background. */
  background: var(--bg);
  color:#e6eef6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

.topbar{
  position:fixed;
  inset:0 0 auto 0;
  /* flattened translucent surface instead of subtle white gradient */
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,0.03);
  z-index:1000;
}
.topbar-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  gap:var(--gap);
  align-items:center;
  padding:14px 20px;
}
.brand .logo{
  font-weight:700;
  color:var(--accent);
  text-decoration:none;
  font-size:1.05rem;
}

.logo-img{height:34px;width:auto;display:block;border-radius:8px}

/* main hero logo (reduced by ~33%) */
.main-logo{display:block;max-width:106px;width:40%;height:auto;margin:0;border-radius:12px}

/* Hero layout: logo beside text on wide screens */
.hero-inner{display:flex;align-items:center;gap:18px}
.hero-text{flex:1}

@media (min-width:720px){
  /* ~33% smaller than previous 220px */
  .main-logo{max-width:147px;width:147px}
  .hero h1{font-size:1.75rem}
}

.nav{margin-left:8px;display:flex;gap:12px}
.nav a{color:var(--muted);text-decoration:none;padding:8px;border-radius:8px}
.nav a:hover{color:#fff;background:var(--glass)}

.container{padding:110px 18px 40px;max-width:var(--max-width);margin:0 auto}
.container.small{padding:18px}

.hero{padding:28px 18px;border-radius:var(--radius);margin-bottom:18px;background: transparent}
.hero h1{margin:0 0 6px;font-size:1.6rem}
.lead{color:var(--muted);margin:0}

.card{background: rgba(255,255,255,0.01);padding:18px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
.card h2{margin-top:0}
.btn{display:inline-block;padding:10px 14px;background:var(--accent);color:#042231;text-decoration:none;border-radius:10px;font-weight:600}
/* small vertical gap between consecutive cards */
.card + .card{margin-top:14px}
/* Feature card specifics */
.card.feature{display:block;gap:12px}
.card.feature ul{margin:12px 0 0 20px;color:var(--muted)}
.card.feature li{margin-bottom:8px}

/* Masonry gallery (CSS columns) */
.masonry-grid{column-count:3;column-gap:14px}
.masonry-grid figure{break-inside:avoid;margin:0 0 14px;border-radius:10px;overflow:hidden}
.masonry-grid img{width:100%;height:auto;display:block}

@media (max-width:900px){
  .masonry-grid{column-count:2}
}
@media (max-width:520px){
  .masonry-grid{column-count:1}
}

/* Lightbox modal */
.lightbox{position:fixed;inset:0;background:rgba(2,6,10,0.85);display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;transition:opacity .18s ease}
.lightbox[aria-hidden="false"]{visibility:visible;opacity:1}
.lb-stage{max-width:92vw;max-height:86vh;display:flex;align-items:center;justify-content:center}
.lb-img{max-width:100%;max-height:100%;border-radius:8px}
.lb-close,.lb-prev,.lb-next{position:fixed;background:transparent;border:0;color:#fff;font-size:28px;padding:10px;cursor:pointer}
.lb-close{right:18px;top:18px}
.lb-prev{left:18px;top:50%;transform:translateY(-50%)}
.lb-next{right:18px;top:50%;transform:translateY(-50%)}

.footer{border-top:1px solid rgba(255,255,255,0.02);padding:18px 0;margin-top:36px}
.small{opacity:0.9;color:var(--muted)}

/* Responsive tweaks */
@media (max-width:720px){
  /* Keep logo and text side-by-side on small screens by using a row layout
     and reducing the logo width so it doesn't push the text below. Also
     adjust topbar padding and hide the main nav on small screens. */
  .topbar-inner{padding:12px 14px}
  .nav{display:none}
  .hero-inner{flex-direction:row;align-items:center;gap:12px}
  .main-logo{width:28%;max-width:106px;margin-bottom:0}
  .container{padding-top:96px}
  .hero h1{font-size:1.3rem}
}

/* Accessibility focus */
:focus{outline:3px solid rgba(125,211,252,0.14);outline-offset:2px}
