/* =============================================
   SpeciFR — Main stylesheet
   ============================================= */

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

:root {
  --teal: #00ADEE;
  --teal-light: #E6F5FD;
  --teal-mid: #B3DFFE;
  --pink: #E91E8C;
  --pink-light: #FCE4F3;
  --text: #0F172A;
  --text-secondary: #475569;
  --muted: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFB;
  --bg-dark: #0F172A;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --max-w: 1200px;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ─── LANGUAGE ─── */
body.lang-en .lpl { display: none !important; }
body.lang-pl .len { display: none !important; }


/* ─── TYPOGRAPHY ─── */
.display {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

h1, .h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

section {
  padding: clamp(1.75rem, 3vw, 3rem) 0;
}

section.alt { background: var(--bg-alt); }
section.dark {
  background: var(--bg-dark);
  color: #FFFFFF;
}
section.dark .lead { color: #94A3B8; }
section.dark .label { color: #64748B; }


/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 2rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--teal); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--text);
  color: #fff;
}

.nav-cta {
  padding: 9px 22px;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #0098D4;
  transform: translateY(-1px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  :root { --nav-h: 64px; }
}


/* ─── HERO ─── */
.hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  position: relative;
}

.hero-bg-accent {
  position: absolute;
  top: -30%;
  right: -18%;
  width: 1400px;
  height: 1400px;
  background: radial-gradient(circle, rgba(0,173,238,0.14) 0%, transparent 55%);
  pointer-events: none;
}

.hero-bg-accent-2 {
  position: absolute;
  bottom: -35%;
  left: -15%;
  width: 1150px;
  height: 1150px;
  background: radial-gradient(circle, rgba(233,30,140,0.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Large faded brand word in background */
.hero-word {
  position: absolute;
  right: -1%;
  bottom: -6%;
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(0,173,238,0.03);
  -webkit-text-stroke: 1.5px rgba(0,173,238,0.11);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: 999px;
  margin-bottom: 2.5rem;
}

.hero-tag span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero .lead {
  max-width: 620px;
  margin-bottom: 3rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(0,173,238,0.35);
}

.btn-primary:hover {
  background: #0098D4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,173,238,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}


.hero-scroll {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
}


/* ─── SECTION HEADER ─── */
.section-header {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.section-header .label { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1.25rem; }
.section-header .lead { max-width: 640px; }
.section-header.centered { text-align: center; }
.section-header.centered .lead { margin: 0 auto; }


/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-text p + p { margin-top: 1.25rem; }

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ─── Heading accent bar — full-height gradient left border ─── */
.section-accent { display: none; }

.section-header h2,
.about-text h2,
.challenge-inner h3,
.module-text h3,
.contact-inner h2 {
  padding-left: 18px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--teal), var(--pink)) 1;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stat-grid { grid-template-columns: 1fr 1fr; }
}


/* ─── CHALLENGES OVERVIEW ─── */
.challenges-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.challenge-thumb {
  background: var(--bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--transition);
}

.challenge-thumb:hover { background: var(--bg-alt); }

.challenge-thumb .num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.04em;
  line-height: 1;
}

.challenge-thumb .title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 900px) {
  .challenges-overview { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .challenges-overview { grid-template-columns: 1fr; }
}


/* ─── CHALLENGE SECTIONS — tight spacing ─── */
#ch01, #ch02, #ch03, #ch04 {
  padding: clamp(0.5rem, 1vw, 1rem) 0;
}

/* ─── CHALLENGE DETAIL ─── */
.challenge-section {
  padding: clamp(0.75rem, 1.5vw, 1.5rem) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.challenge-section:last-of-type { border-bottom: none; }

.challenge-big-num {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 6rem);
  transform: translateY(-50%);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px #94A3B8;
  pointer-events: none;
  user-select: none;
}

.challenge-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.challenge-num-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.challenge-num-label .line {
  width: 32px;
  height: 2px;
  background: var(--teal);
}

.challenge-num-label span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.challenge-inner h3 {
  margin-bottom: 1.5rem;
}

.challenge-inner p + p { margin-top: 1rem; }
.challenge-inner p { color: var(--text-secondary); line-height: 1.75; }

.challenge-inner ul {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.challenge-inner ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.challenge-inner ul li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.55em;
}

@media (max-width: 768px) {
  .challenge-big-num {
    right: -1rem;
    opacity: 0.5;
    font-size: clamp(6rem, 25vw, 10rem);
  }
}


/* ─── MODULE ─── */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0,173,238,0.12);
  border: 1px solid rgba(0,173,238,0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.module-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.module-text .module-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
}

.feature-list li:hover { border-color: var(--teal-mid); }

.feature-list li .feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-list li .feat-icon svg {
  width: 14px; height: 14px;
  stroke: var(--teal);
}

.module-note {
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-visual {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.module-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.module-placeholder .ph-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-placeholder .ph-icon svg {
  width: 32px; height: 32px;
  stroke: var(--teal);
}

.module-placeholder p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 260px;
}

@media (max-width: 900px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-visual { display: none; }
}


/* ─── SCREENSHOTS ─── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
}

.screenshot-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  height: var(--collapsed-h, 300px);
  transition: height 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--transition),
              border-color var(--transition);
  cursor: zoom-in;
}

.screenshot-frame:hover {
  height: var(--natural-h, var(--collapsed-h, 300px));
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  border-color: var(--teal-mid);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Zoom hint icon */
.screenshot-frame::after {
  content: '';
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300ADEE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.screenshot-frame:hover::after {
  opacity: 1;
}

.screenshot-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}


/* ─── ROADMAP ─── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.roadmap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  border-radius: 3px 3px 0 0;
}

.roadmap-card .card-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.roadmap-card h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.roadmap-footer {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--text);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.roadmap-footer p {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.roadmap-footer .rf-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.25rem;
}

@media (max-width: 1024px) {
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}


/* ─── CTA / CONTACT ─── */
.contact-section {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,173,238,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233,30,140,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.contact-inner .label { color: var(--muted); }

.contact-inner h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.contact-inner .lead {
  color: #94A3B8;
  margin-bottom: 3rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,173,238,0.4);
}

.btn-contact:hover {
  background: #18919C;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,173,238,0.5);
}

.contact-email {
  font-size: 0.95rem;
  color: #64748B;
}

.contact-email a {
  color: #94A3B8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.contact-email a:hover { color: var(--teal); }


/* ─── FOOTER ─── */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid #1E293B;
  background: var(--bg-dark);
}

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

footer img { height: 28px; filter: brightness(0) invert(1); opacity: 0.7; }

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
}

.footer-email {
  font-size: 0.8rem;
  color: #475569;
  transition: color var(--transition);
}

.footer-email:hover { color: var(--teal); }

@media (max-width: 580px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}


/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-img-wrap {
  overflow: auto;
  max-height: calc(90vh - 60px);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-img-wrap img {
  display: block;
  max-width: 85vw;
  height: auto;
  border-radius: var(--radius);
}

.lightbox-caption {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  align-self: flex-start;
}


/* ─── SCROLL INDICATOR ─── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--teal);
}

.scroll-top svg {
  width: 18px; height: 18px;
}
