/* =========================
   CSS VARIABLES & RESET
========================= */

:root{
  --bg: #0b0f14;
  --panel: #0f1620;
  --panel2:#0c121a;
  --text:#e6edf3;
  --muted:#a9b6c3;
  --brand:#3b82f6;
  --brand2:#60a5fa;
  --border: rgba(230,237,243,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
               "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(900px 400px at 80% 10%, rgba(96,165,250,.18), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* =========================
   LAYOUT
========================= */

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

.section{
  padding: 72px 0;
}

.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-top: 1px solid rgba(230,237,243,.06);
  border-bottom: 1px solid rgba(230,237,243,.06);
}

/* =========================
   TYPOGRAPHY
========================= */

h1{
  font-size: clamp(34px, 4vw, 46px);
  margin: 12px 0 10px;
  letter-spacing: .2px;
}

h2{
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 10px;
}

h3{
  margin: 0 0 8px;
  font-size: 18px;
}

h4{
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #9ecbff;
}

.subtitle,
.card p,
ul,
.clean li,
.footnote,
.caption,
.shot figcaption{
  color: var(--muted);
}

.subtitle{ margin: 0 0 14px; }
.footnote{ font-size: 13px; }

/* =========================
   HEADER
========================= */

.site-header{
  padding: 56px 0 30px;
}

.header-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}

.badge{
  display:inline-block;
  padding: 6px 10px;
  border:1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: 13px;
}

/* =========================
   BUTTONS & LINKS
========================= */

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border:1px solid var(--border);
  color: var(--text);
  text-decoration:none;
  background: rgba(255,255,255,.03);
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(230,237,243,.2);
}

.btn.primary{
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(59,130,246,.75));
  border-color: rgba(59,130,246,.55);
}

.btn.primary:hover{
  background: linear-gradient(180deg, rgba(59,130,246,1), rgba(59,130,246,.8));
}

.link{
  color: var(--brand2);
  text-decoration:none;
}

.link:hover{ text-decoration:underline; }

/* =========================
   CARDS & GRIDS
========================= */

.grid-2,
.grid-3,
.gallery{
  margin-top: 16px;
  display:grid;
  gap: 14px;
}

.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.gallery{ grid-template-columns: repeat(3, 1fr); }

.card{
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(15,22,32,.7);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.card-actions{
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(96,165,250,.45);
  background: rgba(96,165,250,.06);
}

/* =========================
   MEDIA / GALLERY
========================= */

.hero-card,
.shot{
  border-radius: var(--radius);
  border:1px solid var(--border);
  overflow:hidden;
  background: rgba(15,22,32,.6);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.hero-card img,
.shot img{
  width:100%;
  height:auto;
  display:block;
}

.caption{
  padding: 10px 12px;
  border-top:1px solid var(--border);
  font-size: 13px;
}

/* =========================
   CODE BLOCKS
========================= */

pre{
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border:1px solid rgba(230,237,243,.14);
  background: rgba(0,0,0,.45);
  overflow-x: auto;
}

code{
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: #e6edf3;
}

/* =========================
   LIGHTBOX
========================= */

.zoomable{
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.zoomable:hover{
  transform: scale(1.02);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox img{
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.lightbox-close:hover{ opacity: 0.7; }
.hidden{ display: none; }

/* =========================
   DOCUMENTATION SECTION
========================= */

#documentation{
  margin: 40px 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.015),
    rgba(255,255,255,0)
  );
}

/* =========================
   FOOTER
========================= */

.site-footer{
  padding: 18px 0 30px;
  border-top: 1px solid rgba(230,237,243,.06);
}

.footer-row{
  display:flex;
  justify-content: space-between;
  align-items:center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 920px){
  .header-grid{ grid-template-columns: 1fr; }
  .grid-2,
  .grid-3,
  .gallery{ grid-template-columns: 1fr; }
}
