/* ATOMIX Landing — Blue theme, responsive */

:root {
  --blue-900: #0d2d5c;
  --blue-700: #1463ff;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --max-width: 1100px;
  --section-padding: 4rem 1.5rem;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--blue-900);
  color: var(--white);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Logo on dark: invert text to white via CSS if needed; we use logo-white.svg in header */
.site-header .logo img {
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--blue-100);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin: 0 0 1rem;
}

.hero-subline {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin: 0 0 2rem;
}

.hero-media {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13, 45, 92, 0.15);
}

.hero-media img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-600);
  text-decoration: none;
  color: var(--white);
}

/* Intro */
.intro {
  padding: var(--section-padding);
  background: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
  text-align: center;
}

.intro-lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-700);
}

.intro-list {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 1.25rem;
}

.intro-list li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.intro-media {
  margin-top: 2.5rem;
  text-align: center;
}

.intro-media img {
  max-width: 70%;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(13, 45, 92, 0.12);
  border: 1px solid var(--gray-200);
}

/* Features */
.features {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin: -0.5rem 0 2.5rem;
  font-size: 1.05rem;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block-reverse .feature-content {
  order: 2;
}

.feature-block-reverse .feature-media {
  order: 1;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0 0 0.75rem;
}

.feature-content p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
}

.feature-media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 45, 92, 0.12);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 1px solid var(--gray-200);
  font: inherit;
  transition: box-shadow 0.2s ease;
}

.feature-media:hover {
  box-shadow: 0 8px 28px rgba(13, 45, 92, 0.18);
}

.feature-media:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.feature-media img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(85vh, 85dvh);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2001;
  flex-shrink: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Benefits */
.benefits {
  padding: var(--section-padding);
  background: var(--white);
}

.benefits-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.benefits-media {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 45, 92, 0.12);
  border: 1px solid var(--gray-200);
}

.benefits-media img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.benefits-list {
  max-width: 640px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.benefits-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* Contact */
.contact {
  padding: var(--section-padding);
  background: var(--blue-50);
  text-align: center;
}

.contact-text {
  margin: 0 0 0.75rem;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-700);
}

.contact-email:hover {
  color: var(--blue-900);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--blue-100);
}

/* Responsive */
@media (max-width: 768px) {
  .feature-block,
  .feature-block-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .feature-block-reverse .feature-content,
  .feature-block-reverse .feature-media {
    order: unset;
  }

  .feature-media {
    order: 2;
  }

  .nav {
    gap: 1rem;
  }

  .hero {
    padding: 3rem 1rem 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-media {
    order: 2;
  }

  .benefits-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .benefits-list {
    margin: 0 auto;
  }

  :root {
    --section-padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }
}
