/*
 * LexRegPulse Landing Page Styles
 *
 * This stylesheet defines the look and feel of the LexRegPulse landing page.
 * The palette is based on dark navy, navy and teal tones to evoke trust,
 * sophistication and technological innovation. The layout uses responsive
 * design to ensure the page looks great on both desktop and mobile.
 */

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

html {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  color: #1f2937;
  line-height: 1.6;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: #0099cc;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 2rem;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #003366;
  letter-spacing: 0.5px;
}

header .logo svg {
  margin-right: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li {
  font-weight: 500;
}

nav a {
  color: #003366;
  transition: color 0.2s ease;
}
nav a:hover {
  color: #0099cc;
}

/* Login Button */
nav .btn-login {
  background-color: #11A5BD;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
nav .btn-login:hover {
  background-color: #0d8a9e;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 400px;
  margin-top: calc(64px + env(safe-area-inset-top, 0px));
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 3rem 1rem;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-primary {
  display: inline-block;
  background-color: #0099cc;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.hero .btn-primary:hover {
  background-color: #0075a8;
}

/* What's New Widget - Sticky Note Style */
.whats-new-widget {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 2px 2px 0 #d97706;
  text-align: left;
  transform: rotate(1deg);
}

.whats-new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #d97706;
}

.whats-new-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
  font-family: 'Poppins', sans-serif;
}

.whats-new-version {
  font-size: 0.7rem;
  font-weight: 600;
  color: #b45309;
  background: rgba(217, 119, 6, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.whats-new-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.whats-new-list li {
  font-size: 0.75rem;
  color: #78350f;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.whats-new-list li:last-child {
  margin-bottom: 0;
}

.whats-new-list .tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.whats-new-list .tag.new {
  background: #059669;
  color: white;
}

.whats-new-list .tag.improved {
  background: #2563eb;
  color: white;
}

.whats-new-list .tag.fix {
  background: #dc2626;
  color: white;
}

/* Hide widget on small screens */
@media (max-width: 768px) {
  .whats-new-widget {
    display: none;
  }
}

/* Generic primary button style for non-hero contexts */
.btn-primary {
  display: inline-block;
  background-color: #0099cc;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #0075a8;
  color: #ffffff;
}

/* Section common styles */
section {
  padding: 4rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #003366;
  font-family: 'Poppins', sans-serif;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background-color: #f6f9fc;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  fill: #0099cc;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #003366;
  font-family: 'Poppins', sans-serif;
}

.feature-card p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Alternating backgrounds */
.bg-light {
  background-color: #ffffff;
}
.bg-grey {
  background-color: #f6f9fc;
}
.bg-dark {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
}

.bg-dark h2 {
  color: #ffffff;
}
.bg-dark p {
  color: #e2e8f0;
}

/* Key Capabilities section - reduced bottom padding */
#analytics {
  padding: 4rem 2rem 2.5rem 2rem;
}

/* Contact section specific styling */
#contact {
  padding: 3rem 2rem 2rem 2rem;
}

/* Footer */
footer {
  background-color: #07172b;
  color: #ffffff;
  padding: 2rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-left a:hover {
  color: #0099cc;
}

.footer-right {
  flex: 1 1 auto;
  text-align: right;
}

/* Responsive adjustments */
/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  color: #003366;
  margin-bottom: 0.5rem;
  text-align: left;
}

.modal-content > p {
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.modal-close:hover {
  color: #003366;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  color: #003366;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0099cc;
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.hidden-field {
  display: none;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
}

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success p {
  color: #059669;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #003366;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  header nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  header nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  nav .btn-login {
    margin: 0.5rem 1.5rem;
    display: inline-block !important;
  }

  .hero h1 {
    font-size: 1.75rem;
    white-space: normal;
    line-height: 1.3;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero {
    min-height: auto;
    padding: 2rem 1rem;
    margin-top: 76px;
  }
  header {
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: #ffffff;
    padding-top: 12px;
    height: 76px;
  }
  header .logo {
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  section {
    padding: 3rem 1.5rem;
  }
  section h2 {
    font-size: 1.6rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
  #analytics {
    padding: 3rem 1.5rem 2rem 1.5rem;
  }
  #contact {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }
  footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
  .modal-content {
    padding: 1.5rem;
    margin: 0.5rem;
  }
}