/* Fulgorex Landing — Production v1.0 */
:root {
  --footer-bg: #617395;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: #000;
}

/* Fixed background video */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

/* Fallback background image */
.bg-fallback {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  display: none;
}

/* Video loading indicator */
.video-loading {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.video-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  z-index: 10;
  background: rgba(61, 73, 95, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

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

/* Overlay when modal opens */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
  z-index: 25;
}

/* Main sections */
main {
  padding-top: 0;
}

/* Section-specific dimming overlays */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.6); /* Much darker - aggressive start */
  z-index: -1;
  pointer-events: none;
}

.section:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(70, 157, 208, 0.6);
  z-index: -1;
  pointer-events: none;
}

.section:nth-child(3)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 73, 95, 0.6);
  z-index: -1;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: clamp(60vh, 70vh, 80vh);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 16px;
  padding: 192px 20px 100px 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: #469dd0;
}

.subtitle {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--text-dim);
}

.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Metrics Section */
.metrics-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
  flex-wrap: wrap;
  position: relative;
}



.metric {
  text-align: center;
  padding: 24px 32px;
  min-width: 140px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive design for metrics */
@media (max-width: 768px) {
  .metrics-section {
    gap: 40px;
    margin-top: 12px;
  }
  
  .metric {
    padding: 20px 24px;
    min-width: 120px;
  }
  
  .metric-value {
    font-size: 28px;
  }
  
  .metric-label {
    font-size: 12px;
  }
}

.section {
  position: relative;
  padding: 60px 20px 40px;
  max-width: 100%;
  margin: 0 auto;
}

.section:first-of-type {
  padding-top: 192px;
}

.section:last-of-type {
  padding-bottom: 144px;
}

.section h2 {
  margin: 0 0 24px 0;
  font-size: clamp(22px, 3.2vw, 32px);
  text-align: center;
}



/* Problem Cards Grid */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.problem-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-height: 200px;
  justify-content: flex-start;
}

.problem-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.problem-card:hover {
  background: rgba(255, 255, 255, 1.0);
  border-color: rgba(255, 255, 255, 1.0);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(70, 157, 208, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.problem-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #3d495f;
  line-height: 1.2;
}

.problem-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  opacity: 1;
}

/* Responsive design for problem cards */
@media (max-width: 768px) {
  .problem-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }
  
  .problem-card {
    padding: 20px;
  }
}

/* Value Cards Grid */
.value-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 32px auto;
}

.value-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-height: 200px;
  justify-content: flex-start;
}

.value-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.value-card:hover {
  background: rgba(255, 255, 255, 1.0);
  border-color: rgba(255, 255, 255, 1.0);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.value-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #3d495f;
  line-height: 1.2;
}

.value-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  opacity: 1;
}

/* Responsive design for value cards */
@media (max-width: 768px) {
  .value-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
    margin-bottom: 24px;
  }
  
  .value-card {
    padding: 20px;
  }
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
  will-change: transform;
}

.btn.primary {
  background: linear-gradient(135deg, #469dd0 0%, #3d495f 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  box-shadow: 0 4px 20px rgba(70, 157, 208, 0.3);
}

.btn.primary:hover { 
  background: linear-gradient(135deg, #5ba8e0 0%, #4a5a6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(70, 157, 208, 0.4);
}
.btn.primary:active { 
  transform: translateY(0px) scale(0.99); 
}

.btn.secondary {
  background: #ffffff;
  color: #3d495f;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.btn.secondary:hover {
  background: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn.secondary:active {
  transform: translateY(0px) scale(0.99);
}



/* Footer */
.site-footer {
  background: #3d495f;
  padding: 28px 20px;
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.footer-middle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 4px;
}

.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-logo img {
  height: 24px;
}

.footer-spacer {
}

.footer-contact h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

.footer-copyright {
  display: flex;
  align-items: center;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.contact-item a:hover {
  opacity: 1;
}

.contact-icon {
  font-size: 16px;
  opacity: 0.8;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
}

.small { font-size: 13px; opacity: 0.9; }
.tiny { font-size: 12px; opacity: 0.8; }

/* Modal */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(860px, 92vw);
}

.modal-card {
  position: relative;
  background: rgba(61, 73, 95, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 20px;
  color: var(--text);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-card h3 {
  margin: 0 0 4px 0;
  font-size: 22px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.05);
}

.close:active {
  transform: scale(0.95);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 16px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

label span em { font-style: normal; color: #ffd1d1; }

input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.2);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
}

input:focus, textarea:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(199,210,254,0.25);
}

label.full { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Dialog centering */
dialog::backdrop { background: transparent; }
dialog[open] {
  display: grid;
  place-items: center;
  inset: 0;
  position: fixed;
  z-index: 30;
}

/* Modal animation */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
