/* GitHub Copilot Toolbox — static sales site (GitHub Pages)
   Visual direction: dark “neon cyan” UI (inspired by modern low-code / dev-tool aesthetics, e.g. Paradigm-style mobile UI on Dribbble). */

:root {
  --bg: #040506;
  --bg-mid: #070b10;
  --bg-elevated: rgba(10, 16, 26, 0.72);
  --border: rgba(0, 232, 255, 0.14);
  --border-strong: rgba(0, 232, 255, 0.35);
  --text: #f0f5f9;
  --muted: #8ba3b5;
  --accent: #00e8ff;
  --accent-dim: rgba(0, 232, 255, 0.12);
  --accent-glow: 0 0 28px rgba(0, 232, 255, 0.22);
  --accent-glow-strong: 0 0 40px rgba(0, 232, 255, 0.35);
  --deep-blue: #003844;
  --warm: #5ce1ff;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* Photo/texture under gradients. Wash must stay translucent or the image is invisible. */
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -30%, rgba(0, 100, 120, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(0, 232, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(0, 56, 68, 0.45), transparent 50%),
    linear-gradient(180deg, rgba(4, 5, 6, 0.62) 0%, rgba(5, 8, 12, 0.68) 45%, rgba(2, 3, 5, 0.74) 100%),
    url("../images/background.png?v=16");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size:
    auto,
    auto,
    auto,
    auto,
    cover;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    center center;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  text-decoration: none;
  color: #9ff6ff;
  text-shadow: 0 0 20px rgba(0, 232, 255, 0.35);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 5, 6, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0, 232, 255, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.logo span {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 232, 255, 0.45);
}

.nav-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Ghost / neon-outline buttons (Paradigm-style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.58rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  box-shadow: 0 0 0 0 rgba(0, 232, 255, 0);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--accent-glow);
}
.btn-primary {
  border-color: rgba(0, 232, 255, 0.55);
  color: #b8fbff;
  background: var(--accent-dim);
  box-shadow: inset 0 0 20px rgba(0, 232, 255, 0.06), var(--accent-glow);
}
.btn-primary:hover {
  background: rgba(0, 232, 255, 0.18);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--accent-glow-strong);
}
.btn-ghost {
  border-color: rgba(0, 232, 255, 0.22);
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(0, 232, 255, 0.06);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

.plain {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 32px rgba(0, 232, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}
.plain strong {
  color: #fff;
}

.hero-shot {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--accent-glow), 0 24px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pillars */
.pillars {
  padding: 2rem 0 4rem;
}

.pillars h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.pillar-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
}
.pillar:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px rgba(0, 232, 255, 0.08);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin: 0 0 0.5rem;
  color: #fff;
  font-weight: 600;
}
.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Gallery */
.gallery {
  padding: 2rem 0 4rem;
}

.gallery h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.gallery .sub {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.shots {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.85);
  box-shadow: 0 0 0 0 rgba(0, 232, 255, 0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
figure:hover {
  border-color: rgba(0, 232, 255, 0.28);
  box-shadow: 0 0 28px rgba(0, 232, 255, 0.1);
}
figure img {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

/* CTA band */
.cta-band {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(0, 232, 255, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(0, 56, 68, 0.4), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(0, 232, 255, 0.08);
}

.cta-band .wrap {
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.cta-band p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 42ch;
  margin-inline: auto;
}

.cta-band .cta-fallback {
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-band .cta-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mono-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--warm);
  margin-top: 1rem;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0, 232, 255, 0.25);
}

.site-footer .site-disclaimer {
  margin: 0.85rem 0 0;
  max-width: 52rem;
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-shot {
    animation: none;
    opacity: 1;
  }
  .btn:hover {
    transform: none;
  }
}

/* Click to enlarge screenshots */
img.zoomable {
  cursor: zoom-in;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
img.zoomable:hover {
  opacity: 0.97;
  box-shadow: inset 0 0 0 2px rgba(0, 232, 255, 0.4);
}
img.zoomable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.lightbox-open {
  overflow: hidden;
}

.lightbox-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-root[hidden] {
  display: none !important;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(2, 4, 8, 0.94);
  cursor: zoom-out;
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(100vw - 2rem, 1600px);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.lightbox-frame > * {
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  backdrop-filter: blur(8px);
  box-shadow: var(--accent-glow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow-strong);
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r);
  border: 1px solid var(--border-strong);
  box-shadow: var(--accent-glow-strong), 0 24px 100px rgba(0, 0, 0, 0.65);
}

figcaption.lightbox-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  max-width: 48rem;
}

@media (max-width: 600px) {
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    position: fixed;
    z-index: 2;
  }
}
