/* MyBlox marketing site styles
   Brand: green script "My" (#4CAF50-ish) + dark teal "Blox" (#1F5F5B)
*/

:root {
  --primary: #10b981;       /* emerald 500 — matches app UI */
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --brand-dark: #1F5F5B;    /* dark teal from Blox wordmark */
  --brand-green: #4CAF50;   /* script My green */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--brand-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { color: var(--gray-700); }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo { height: 40px; }

nav a {
  margin-left: 24px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover { color: var(--primary-dark); text-decoration: none; }

nav a.btn { color: #fff; margin-left: 16px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 .accent { color: var(--primary); }

.hero .lead {
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--gray-600);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-tag {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.hero-tag strong {
  color: var(--brand-dark);
  font-size: 1.1rem;
}

/* Stats */
.stats {
  background: var(--brand-dark);
  padding: 48px 0;
  color: #fff;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Features */
.features {
  padding: 100px 0;
}

.section-lead {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 3rem;
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
  padding: 100px 0;
  background: #fff;
}

.screenshot-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.screenshot-main img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(31, 95, 91, 0.15);
  border: 1px solid var(--gray-200);
  display: block;
}

.screenshot-main .screenshot-caption {
  text-align: center;
  margin-top: 24px;
}

.screenshot-main .screenshot-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.screenshot-main .screenshot-caption p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-600);
}

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

.screenshot-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 95, 91, 0.1);
  border: 1px solid var(--gray-200);
  display: block;
  transition: transform 0.2s;
}

.screenshot-item:hover img {
  transform: translateY(-4px);
}

.screenshot-item .screenshot-caption {
  margin-top: 16px;
  padding: 0 8px;
}

.screenshot-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.screenshot-item .screenshot-caption p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Comparison */
.comparison {
  background: var(--gray-50);
  padding: 100px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
}

.comparison-card.other {
  border: 2px solid var(--gray-200);
  opacity: 0.85;
}

.comparison-card.myblox {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}

.comparison-card .badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.comparison-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 16px 0 24px;
}

.comparison-card .price span {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 6px;
}

.comparison-card ul {
  list-style: none;
}

.comparison-card li {
  padding: 10px 0;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.comparison-card li:last-child { border: none; }

.comparison-card.other li::before {
  content: "✗ ";
  color: var(--gray-400);
  margin-right: 6px;
}

/* Pricing */
.pricing {
  padding: 100px 0;
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.pricing-card h3 {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.big-price {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
}

.big-price span {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--gray-700);
}

.pricing-card li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

.pricing-example {
  background: var(--gray-50);
  padding: 16px;
  border-radius: 12px;
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 24px 0;
}

.pricing-example strong { color: var(--brand-dark); }

/* Contact */
.contact {
  background: var(--gray-50);
  padding: 100px 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  margin-bottom: 20px;
}

.contact-form button {
  width: 100%;
}

.contact-alt {
  text-align: center;
  margin-top: 24px;
  color: var(--gray-500);
}

/* Footer */
footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
}

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

.footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero { padding: 60px 0 40px; }
  .hero .lead { font-size: 1.05rem; }

  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-value { font-size: 2rem; }

  .features,
  .comparison,
  .pricing,
  .contact { padding: 60px 0; }

  .feature-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  nav a:not(.btn) { display: none; }

  .contact-form { padding: 24px; }
}

/* --- Click-to-enlarge lightbox for screenshots --- */
.screenshot-showcase img.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .screenshot-showcase img.zoomable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  cursor: zoom-out;
  animation: lb-fade 0.15s ease-out;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
  opacity: 0.85;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
