*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #232f3e;
  --orange: #e77600;
  --orange-dark: #c75100;
  --teal: #007185;
  --bg: #eaeded;
  --text: #0f1111;
  --muted: #565959;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(15, 17, 17, 0.08);
  --max: 1080px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, "Segoe UI", "Amazon Ember", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }
a:hover { color: var(--orange); }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 40px;
  width: auto;
}

.brand span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover { color: var(--white); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(231, 118, 0, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid #888c8c;
}

.btn-secondary:hover { background: #f7fafa; color: var(--navy); }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #37475a 100%);
  color: var(--white);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 0 28px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 0.85rem;
  opacity: 0.75;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  border-radius: 6px;
  width: 100%;
}

/* Sections */
section {
  padding: 64px 0;
}

section:nth-of-type(even) {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #d5dbdb;
}

section:nth-of-type(even) .feature-card {
  background: var(--bg);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid #d5dbdb;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

section:nth-of-type(even) .step {
  background: var(--bg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Gallery albums (cover cards) */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d5dbdb;
  box-shadow: var(--shadow);
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

button.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 17, 17, 0.14);
  border-color: var(--orange);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(35, 47, 62, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-item figcaption,
.gallery-caption {
  display: block;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1rem;
}

/* Lightbox — one continuous gallery */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 17, 17, 0.82);
  cursor: pointer;
  padding: 0;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.lightbox-figure {
  margin: 0;
  background: #0f1111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-figure img {
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  background: #1a1a1a;
  display: block;
}

.lightbox-figure figcaption {
  padding: 14px 18px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  font-size: 0.9rem;
}

.lightbox-album {
  font-weight: 700;
  color: #fff;
}

.lightbox-caption {
  flex: 1;
  opacity: 0.9;
}

.lightbox-count {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-left: auto;
}

.lightbox-close {
  position: absolute;
  top: -8px;
  right: 40px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: var(--orange);
}

@media (max-width: 700px) {
  .lightbox-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .lightbox-nav {
    justify-self: center;
  }

  .lightbox-prev { order: 2; }
  .lightbox-figure { order: 1; }
  .lightbox-next { order: 3; }

  .lightbox-close {
    right: 8px;
    top: 8px;
  }
}

/* Video */
.video-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 24px;
  font-size: 0.95rem;
}

/* Download box */
.download-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid #d5dbdb;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

section#download { background: var(--bg); }

.download-box .btn-primary {
  font-size: 1.15rem;
  padding: 16px 32px;
  margin-bottom: 16px;
}

.download-reqs {
  text-align: left;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d5dbdb;
  font-size: 0.9rem;
  color: var(--muted);
}

.download-reqs ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.note-smartscreen {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8e1;
  border: 1px solid #e6c200;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #565959;
  text-align: left;
}

/* Comments */
#comments { background: var(--white); }

.comments-wrap {
  max-width: 720px;
  margin: 0 auto;
  min-height: 120px;
}

.comments-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed #888c8c;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer a { color: rgba(255, 255, 255, 0.9); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
}
