/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #5b78a8;
  --accent-light: #7a96c0;
  --accent-dark:  #3d5a8a;
  --bg:           #ffffff;
  --bg-alt:       #f4f6f9;
  --bg-dark:      #1e2538;
  --text:         #1e2538;
  --text-muted:   #5a6275;
  --border:       #d8dde8;
  --shadow:       0 2px 16px rgba(0,0,0,.09);
  --radius:       10px;
  --max-w:        1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
section:nth-child(even) { background: var(--bg-alt); }

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-brand img { height: 84px; width: auto; border-radius: 0; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ===== HERO ===== */
#hero {
  background: linear-gradient(160deg, #e6ebf4 0%, #ffffff 60%);
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-text h1 span { color: var(--accent); }
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.hero-img {
  border-radius: 12px;
  box-shadow: var(--shadow), 0 8px 40px rgba(0,0,0,.13);
  overflow: hidden;
}
.hero-img img { width: 100%; border-radius: 12px; }

.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-muted);
}
.badge-pill {
  background: #e6ebf4;
  color: var(--accent-dark);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .82rem;
  font-weight: 500;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ===== SCREENSHOTS ===== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}
.screenshot-item .img-wrap {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.screenshot-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.screenshot-caption {
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ===== LIGHTBOX / GALLERY POPUP ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }

.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 0;
}
#lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 4px 60px rgba(0,0,0,.6);
  object-fit: contain;
  transition: opacity .2s;
}
#lightbox-img.fading { opacity: 0; }

/* Prev / Next arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
  user-select: none;
}
.lb-arrow:hover { background: rgba(255,255,255,.28); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

/* Close button */
#lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 10;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
#lightbox-close:hover { background: rgba(255,255,255,.25); }

/* Caption + counter bar */
.lb-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 18px;
  gap: 16px;
}
#lb-caption {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  flex: 1;
}
#lb-counter {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  white-space: nowrap;
}

/* Thumbnail strip */
.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 24px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.lb-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.lb-thumb:hover { opacity: .8; }
.lb-thumb.active { border-color: var(--accent-light); opacity: 1; }

/* ===== USE CASES ===== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.usecase-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.usecase-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-dark);
}
.usecase-card p { color: var(--text-muted); font-size: .93rem; }

/* ===== HIGHLIGHTS STRIP ===== */
.highlights {
  background: var(--accent);
  color: #fff;
  padding: 40px 0;
}
.highlights-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}
.highlight-item strong { font-size: 1.7rem; display: block; }
.highlight-item span { font-size: .9rem; opacity: .85; }

/* ===== CTA ===== */
#cta { background: linear-gradient(135deg, #3d5a8a 0%, #5b78a8 100%); color: #fff; text-align: center; }
#cta .section-title { color: #fff; }
#cta .section-sub { color: rgba(255,255,255,.8); }
.btn-white { background: #fff; color: var(--accent-dark); font-weight: 700; }
.btn-white:hover { background: #e8f5ee; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 36px 0;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-brand { color: #fff; font-weight: 600; font-size: 1rem; }
.footer-contact { font-size: .9rem; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: #fff; }
.cookie-notice {
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.cookie-notice strong { color: rgba(255,255,255,.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .hero-img { order: -1; }
  .nav-links { display: none; }
  .highlights-inner { flex-direction: column; gap: 16px; }
  section { padding: 48px 0; }
}
