:root {
  --bg: #212121;
  --surface: #2f2f2f;
  --surface-2: #3a3a3a;
  --text: #ececec;
  --muted: #b4b4b4;
  --line: #444444;
  --accent: #10a37f;
  --accent-hover: #0d8f6f;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-header h2,
.hero-copy h1 {
  margin: 0;
  line-height: 1.1;
}

.section-header p,
.hero-copy p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(56, 56, 56, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #5a5a5a;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 0 14px;
}

.mobile-menu.open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 8px 0;
  color: var(--muted);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.secondary:hover {
  background: var(--surface);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-preview {
  padding: 24px;
}

.preview-stack {
  display: grid;
  gap: 14px;
}

.preview-row,
.preview-gallery,
.preview-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(255, 255, 255, 0.01);
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.preview-box,
.preview-line,
.preview-square,
.preview-input {
  background: var(--surface-2);
  border-radius: 12px;
}

.preview-box {
  min-height: 90px;
}

.preview-lines {
  display: grid;
  gap: 8px;
}

.preview-line {
  height: 12px;
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-square {
  aspect-ratio: 1 / 1;
}

.preview-form {
  display: grid;
  gap: 10px;
}

.preview-input {
  height: 46px;
}

.preview-input.large {
  height: 100px;
}

.explanations {
  display: grid;
  gap: 28px;
}

.explanation-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.explanation-item.reverse .image-card {
  order: 2;
}

.explanation-item.reverse .text-card {
  order: 1;
}

.image-card,
.text-card {
  overflow: hidden;
}

.image-card img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.text-card {
  padding: 36px;
  display: flex;
  align-items: center;
}

.text-card h3 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
}

.text-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.gallery-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  padding: 30px;
}

.contact-email {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: var(--surface-2);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  width: min(1000px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111;
}

.lightbox-caption {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid var(--line);
  background: rgba(47, 47, 47, 0.9);
  color: var(--text);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.lightbox-nav {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  flex: 0 0 auto;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(58, 58, 58, 0.95);
}

@media (max-width: 900px) {
  .hero-grid,
  .explanation-item,
  .contact-row {
    grid-template-columns: 1fr;
  }

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

  .text-card h3 {
    font-size: 28px;
  }

  .explanation-item.reverse .image-card,
  .explanation-item.reverse .text-card {
    order: initial;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .footer-inner {
    flex-direction: column;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 22px;
  }

  .lightbox-prev {
    left: 22px;
  }

  .lightbox-next {
    right: 22px;
  }

  .lightbox-caption {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 50px;
  }
}

@media (max-width: 520px) {
  .gallery-grid,
  .preview-gallery {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .text-card {
    padding: 24px;
  }
}


/* Success popup */
.success-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.success-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.success-popup-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #2f2f2f 0%, #262626 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  padding: 28px 24px 22px;
  text-align: center;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.3s ease;
}

.success-popup.show .success-popup-card {
  transform: translateY(0) scale(1);
}

.success-popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: white;
  background: radial-gradient(circle at 30% 30%, #19c79a, var(--accent));
  box-shadow: 0 12px 30px rgba(16, 163, 127, 0.35);
  animation: popupPulse 1.6s ease-in-out infinite;
}

.success-popup-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
}

.success-popup-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.success-popup-button {
  min-width: 140px;
}

@keyframes popupPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(16, 163, 127, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 16px 36px rgba(16, 163, 127, 0.5);
  }
}


.brand img {
  height: 40px;
  width: auto;
  display: block;
}

/* Logo hover effect */
.brand img {
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.brand:hover img {
  transform: scale(1.08);
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(16, 163, 127, 0.35));
}


.footer-contact {
  text-align: left;
  line-height: 1.8;
  justify-self: end;
  width: fit-content;
}

.footer-contact a {
  color: var(--text);
}

.footer-contact a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .footer-contact {
    text-align: left;
    justify-self: start;
  }
}


.hero-status-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-status-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.hero-status-box {
  width: min(760px, 100%);
  padding: 42px 36px;
  text-align: center;
}

.hero-status-box h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
}

.hero-status-box p {
  color: var(--muted);
}

.hero-status-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .hero-status-box {
    padding: 30px 22px;
  }
}
