/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-dark-bg.png') center top / cover no-repeat;
  z-index: 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 100px);
  max-width: 1340px;
  padding: 0 40px;
  height: 80px;
  background: rgba(35, 55, 95, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 68px;
  transition: background .3s, top .3s, box-shadow .3s;
}
.nav.nav-scrolled {
  top: 16px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.nav-logo { height: 52px; }
.nav-menu { display: flex; gap: 50px; }
.nav-menu li { position: relative; }
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  opacity: .7;
  transition: opacity .2s;
  padding-bottom: 6px;
}
.nav-menu a.active { opacity: 1; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3B82F6;
  border-radius: 1px;
}
.nav-menu a:hover { opacity: 1; }

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 160px 0 40px 88px;
}
.hero-left { flex: 0 0 50%; }
.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: -80px;
}
.hero-right img {
  width: 100%;
  max-width: 664px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #3b82f6;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.badge-new {
  font-weight: 800;
  color: #3b82f6;
}

/* Heading */
.hero h1 {
  margin-top: 24px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.6;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  transition: transform .15s, opacity .15s;
}
.btn-primary {
  padding: 0 32px;
  background: #3b82f6;
  color: #fff;
}
.btn-secondary {
  padding: 0 30px;
  border: 1px solid #374151;
  color: #fff;
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); opacity: .9; }

/* ===== SHARED SECTION ===== */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px;
}
.section h2 {
  font-size: 28px;
  font-weight: 800;
}
.section-sub {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.5;
}

/* ===== THE PROBLEM ===== */
.problem-section { background: #0f172a; }
.problem-box {
  display: flex;
  margin-top: 24px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.problem-visual {
  flex: 0 0 480px;
  min-height: 420px;
  background: #000;
  overflow: hidden;
}
.problem-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.problem-content {
  flex: 1;
  padding: 51px 40px;
}
.problem-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.problem-tabs li {
  font-size: 20px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: color .2s;
}
.problem-tabs li.active {
  font-weight: 800;
  color: #fff;
}
.problem-desc {
  margin-top: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.5;
}
.problem-divider {
  margin-top: 12px;
  border: none;
  border-top: 1px solid #fff;
}

/* ===== THE SOLUTION ===== */
.solution-section { background: #0f172a; }
.solution-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.solution-header h2 { white-space: nowrap; }
.solution-header .section-sub { max-width: 609px; text-align: right; }
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.solution-card {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.solution-card-img {
  height: 240px;
  overflow: hidden;
}
.solution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution-card h3 {
  margin: 38px 40px 0;
  font-size: 22px;
  font-weight: 800;
}
.solution-card p {
  margin: 12px 40px 0;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.6;
}
.tags {
  display: flex;
  gap: 15px;
  margin: 28px 40px 40px;
}
.tag {
  padding: 6px 24px;
  border: 1px solid #374151;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  background: #000;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.how-section > h2,
.how-section > .section-sub,
.how-section > .how-grid {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-top: 48px;
  row-gap: 48px;
}
.how-item { padding-right: 24px; }
.how-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  display: block;
}
.how-item h4 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 6px;
}
.how-item p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.6;
}
.how-divider-v {
  width: 2px;
  background: #fff;
  align-self: stretch;
  margin: 0 16px;
}

/* ===== USE CASES ===== */
.usecases-section { background: #0f172a; overflow: hidden; }
.usecases-marquee {
  margin-top: 32px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.usecases-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.usecases-track:hover { animation-play-state: paused; }
.uc-card {
  flex-shrink: 0;
  width: 391px;
  min-height: 240px;
  background: #000;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.uc-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 48px;
  filter: brightness(0) saturate(100%) invert(55%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(87%);
}
.uc-card h4 {
  font-size: 17px;
  font-weight: 800;
}
.uc-card p {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.55;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== WHY GUARDIUMONE ===== */
.why-section {
  background: #000;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.why-section > h2,
.why-section > .section-sub,
.why-section > .why-list {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
}
.why-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-item {
  background: #1f2937;
  border: 1px solid #374151;
  border-bottom: none;
  overflow: hidden;
}
.why-item:first-child { border-radius: 12px 12px 0 0; }
.why-item:last-child { border-radius: 0 0 12px 12px; border-bottom: 1px solid #374151; }
.why-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 30px;
  cursor: pointer;
  user-select: none;
}
.why-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #3b82f6;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.why-title {
  font-size: 16px;
  font-weight: 800;
  flex: 1;
}
.why-chevron {
  font-size: 24px;
  color: #9ca3af;
  transition: transform .25s;
}
.why-item.expanded .why-chevron { transform: rotate(180deg); }
.why-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.why-item.expanded .why-item-body { max-height: 120px; }
.why-item-body p {
  padding: 12px 30px 24px 86px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  background: #000;
  line-height: 1.5;
}

/* ============================================
   TABLET — max-width: 1024px
   ============================================ */
@media (max-width: 1024px) {
  /* Nav */
  .nav {
    top: 16px;
    width: calc(100% - 40px);
    padding: 0 24px;
    height: 64px;
    border-radius: 32px;
  }
  .nav.nav-scrolled { top: 10px; }
  .nav-logo { height: 40px; }
  .nav-hamburger { display: flex; }
  .nav-menu { display: none; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content {
    padding: 120px 40px 40px;
  }
  .hero-left { flex: 0 0 55%; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 15px; }
  .hero-right { margin-top: -40px; }
  .hero-right img { width: 100%; max-width: 420px; }

  /* Sections */
  .section { padding: 48px 40px; }
  .section h2 { font-size: 24px; }
  .section-sub { font-size: 15px; }

  /* Full-width bg sections - tablet padding */
  .how-section > h2,
  .how-section > .section-sub,
  .how-section > .how-grid {
    padding-left: 40px;
    padding-right: 40px;
  }
  .why-section > h2,
  .why-section > .section-sub,
  .why-section > .why-list {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-footer { margin-top: 60px; }

  /* Problem */
  .problem-box { flex-direction: row; }
  .problem-visual { flex: 0 0 340px; min-height: 300px; }
  .problem-tabs li { font-size: 16px; }
  .problem-desc { margin-top: 48px; }

  /* Solution */
  .solution-header { flex-direction: column; gap: 8px; }
  .solution-header .section-sub { text-align: left; max-width: none; }
  .solution-card h3 { font-size: 20px; margin: 28px 24px 0; }
  .solution-card p { margin: 10px 24px 0; }
  .tags { margin: 20px 24px 28px; gap: 10px; flex-wrap: wrap; }

  /* How It Works */
  .how-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    gap: 0;
  }
  .how-divider-v { display: none; }
  .how-item {
    padding: 32px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .how-item:nth-child(odd):not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  /* Remove bottom border from last row */
  .how-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Use Cases */
  .uc-card { width: 320px; min-height: 210px; }
}

/* ============================================
   MOBILE — max-width: 600px
   ============================================ */
@media (max-width: 600px) {
  /* Hero */
  .hero-content { padding: 110px 20px 40px; flex-direction: column; }
  .hero-left { flex: none; width: 100%; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 14px; margin-top: 16px; }
  .hero-sub br { display: none; }
  .badge { font-size: 11px; padding: 6px 12px; gap: 6px; max-width: 100%; }
  .cta-group { flex-direction: column; gap: 12px; margin-top: 28px; }
  .btn-primary, .btn-secondary { width: 100%; height: 52px; font-size: 15px; border-radius: 12px; }
  .btn-secondary { border-color: rgba(255, 255, 255, 0.3); }
  .hero-right { margin-top: 32px; }
  .hero-right img { max-width: 100%; border-radius: 12px; }

  /* Sections */
  .section { padding: 40px 20px; }
  .section h2 { font-size: 20px; }
  .section-sub { font-size: 13px; }

  /* Full-width bg sections - mobile padding */
  .how-section > h2,
  .how-section > .section-sub,
  .how-section > .how-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .why-section > h2,
  .why-section > .section-sub,
  .why-section > .why-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer { margin-top: 40px; }

  /* Problem */
  .problem-box { flex-direction: column; }
  .problem-visual { flex: none; min-height: 200px; }
  .problem-content { padding: 32px 20px; }
  .problem-tabs li { font-size: 15px; }
  .problem-desc { margin-top: 32px; font-size: 13px; }

  /* Solution */
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card-img { height: 180px; }
  .solution-card h3 { font-size: 18px; margin: 24px 20px 0; }
  .solution-card p { margin: 8px 20px 0; font-size: 13px; }
  .tags { margin: 16px 20px 24px; }
  .tag { padding: 5px 16px; font-size: 12px; }

  /* How It Works */
  .how-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .how-divider-v { display: none; }
  .how-item { padding-right: 0; }
  .how-item h4 { font-size: 16px; }
  .how-item p { font-size: 13px; }

  /* Use Cases */
  .uc-card { width: 280px; min-height: 200px; }
  .uc-icon { width: 28px; height: 28px; margin-bottom: 32px; }
  .uc-card h4 { font-size: 15px; }
  .uc-card p { font-size: 12px; }

  /* Why */
  .why-item-header { padding: 16px 20px; gap: 12px; }
  .why-icon { width: 20px; height: 20px; }
  .why-title { font-size: 14px; }
  .why-item-body p { padding: 8px 20px 20px 64px; font-size: 13px; }
}

/* ===== MOBILE FULL-SCREEN MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(to bottom, #0a0a0a 0%, #111111 60%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}
.mobile-menu-header .nav-logo {
  height: 44px;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity .2s;
}
.mobile-menu-close:hover {
  opacity: 1;
}
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-links li {
  text-align: center;
}
.mobile-menu-links a {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 8px;
  transition: color .2s;
}
.mobile-menu-links a.active {
  color: #3B82F6;
  font-weight: 600;
}
.mobile-menu-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #3B82F6;
  border-radius: 1px;
}

/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu-overlay { display: none; }
}

/* ===== DEMO MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  position: relative;
  width: 90%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0a0a0a;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 48px 48px 40px;
  text-align: center;
  transform: translateY(20px);
  transition: transform .3s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: #fff; }

.modal-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid #374151;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.modal-title {
  margin-top: 20px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}
.modal-sub {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Booking CTA */
.modal-booking-cta {
  margin-top: 32px;
  text-align: center;
}
.btn-book {
  display: inline-flex;
  width: 100%;
  height: 56px;
  font-size: 16px;
  border-radius: 12px;
}

/* Contact cards */
.modal-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.modal-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 12px;
  text-align: left;
}
.modal-contact-card .material-icons-outlined {
  font-size: 22px;
  color: #9ca3af;
}
.modal-contact-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.modal-contact-card p {
  margin-top: 4px;
  font-size: 14px;
  color: #9ca3af;
}

/* Form */
.modal-form {
  margin-top: 24px;
  padding: 28px;
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 12px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0a0a0a;
  border: 1px solid #1f2937;
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #4b5563; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #3b82f6; }
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  background: #3b82f6;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-submit:hover { opacity: .9; }

/* Mobile modal */
@media (max-width: 768px) {
  .modal { padding: 32px 20px 28px; }
  .modal-title { font-size: 28px; }
  .modal-contact-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000;
  border-top: 1px solid #1f2937;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1f2937;
}
.footer-brand { max-width: 360px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: #9ca3af;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}
.footer-bottom span {
  font-size: 13px;
  color: #4b5563;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 13px;
  color: #4b5563;
  transition: color .2s;
}
.footer-legal a:hover { color: #9ca3af; }

@media (max-width: 600px) {
  .footer-inner { padding: 40px 20px 28px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
