/* Modern Classic Aero & Sky Blue Design System for LiveMessenger Landing */
:root {
  --primary-blue: #0066cc;
  --header-blue: #1e456e;
  --heading-orange: #e56637;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-gradient-start: #cde7fe;
  --bg-gradient-mid: #eef6fe;
  --border-light: #b0d3f0;
  --border-card: #a3c7e8;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 140px, #ffffff 380px);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav-link-active {
  font-weight: bold;
}

/* ==================== Top Navigation Bar ==================== */
.top-bar-container {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(220, 238, 254, 0.65) 100%);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  max-width: 990px;
  margin: 0 auto;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--header-blue);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  font-size: 12px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #224466;
  padding: 4px 6px;
  border-radius: 3px;
  transition: all 0.15s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary-blue);
  text-decoration: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #999999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 4px 0;
  min-width: 140px;
  z-index: 200;
}

.dropdown-menu.active {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.dropdown-item {
  padding: 6px 14px;
  color: #333;
  display: block;
  font-size: 12px;
}

.dropdown-item:hover {
  background: #e6f2ff;
  color: var(--primary-blue);
  text-decoration: none;
}

/* Search Bar */
.search-form {
  display: flex;
  align-items: center;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #a0a0a0;
  border-radius: 2px;
  padding: 1px 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-input {
  border: none;
  outline: none;
  padding: 2px 6px;
  font-size: 11px;
  width: 150px;
  color: #333;
}

.search-button {
  background: linear-gradient(180deg, #66bb44 0%, #449922 100%);
  border: 1px solid #337711;
  border-radius: 2px;
  color: white;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: filter 0.15s ease;
}

.search-button:hover {
  filter: brightness(1.1);
}

.search-button svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* Header Sign In Button */
.header-signin-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1e456e;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid #9dbcd4;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #e2effa 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.header-signin-btn:hover {
  border-color: #0066cc;
  background: #ffffff;
  text-decoration: none;
}

.user-icon {
  width: 15px;
  height: 15px;
  background: #88aacc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
}

/* Launch OS Live Messenger Button */
.launch-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #62c332 0%, #3e9818 50%, #2f7a10 100%);
  border: 1px solid #236109;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.launch-app-btn:hover {
  background: linear-gradient(180deg, #74d843 0%, #47aa1d 50%, #368a13 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.launch-app-btn:active {
  background: linear-gradient(180deg, #2f7a10 0%, #3e9818 100%);
  transform: translateY(0);
}

.user-badge-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #1e456e;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid #9dbcd4;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #e2effa 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-avatar-small {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #6fb003;
  object-fit: cover;
  flex-shrink: 0;
}

.user-name-text {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e456e;
  font-weight: 700;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #0066cc;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  text-decoration: underline;
}

.logout-btn:hover {
  color: #cc0000;
}

/* ==================== Main Content Layout ==================== */
.main-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 15px 40px;
  width: 100%;
}

.welcome-title {
  font-size: 23px;
  font-weight: 400;
  color: var(--header-blue);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

/* Top Section: Hero Showcase + Sidebar Action Card */
.hero-section {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
}

/* Hero Box (Left) */
.hero-box {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.85) 100%);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-text-content {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-heading {
  font-size: 21px;
  font-weight: 400;
  color: #154575;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero-description {
  font-size: 11.5px;
  color: #555555;
  line-height: 1.5;
}

/* Desktop App Mockup Frame (Right side of Hero) */
.hero-image-container {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.window-frame {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #7799bb;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.window-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.window-titlebar {
  background: linear-gradient(180deg, #b9d8f5 0%, #8ebae5 100%);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #7799bb;
  font-size: 10px;
  color: #1e3c5b;
  font-weight: 600;
}

.window-buttons {
  display: flex;
  gap: 3px;
}

.win-btn {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #6688aa;
  display: inline-block;
  background: linear-gradient(180deg, #ffffff, #cce0f5);
}

.win-btn.close {
  background: linear-gradient(180deg, #ff9999, #cc3333);
  border-color: #990000;
}

.window-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Sidebar Action Card (Right) */
.action-card {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.action-heading {
  font-size: 17px;
  font-weight: 400;
  color: var(--heading-orange);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.signup-btn {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #e3e3e3 100%);
  border: 1px solid #707070;
  border-radius: 3px;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
  text-decoration: none;
}

.signup-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  border-color: #333333;
  text-decoration: none;
}

.download-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2b84d2 0%, #155ea8 50%, #0d4682 100%);
  border: 1px solid #0a3a6b;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.15s ease;
  text-decoration: none !important;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.download-app-btn:hover {
  background: linear-gradient(180deg, #3895e6 0%, #1c6ec0 50%, #105296 100%);
  border-color: #0d4682;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.download-app-btn:active {
  background: linear-gradient(180deg, #0d4682 0%, #155ea8 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.action-signin-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 6px;
  display: inline-block;
}

.action-copy {
  font-size: 11px;
  color: #555555;
  line-height: 1.45;
}

/* ==================== Feature Grid (2 Columns) ==================== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 35px;
  border-top: 1px solid #d0e4f5;
  padding-top: 25px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text {
  font-size: 11.5px;
  color: #444444;
  line-height: 1.45;
}

.feature-name {
  font-weight: 700;
  color: #222222;
}

.feature-link {
  display: inline-block;
  font-size: 11px;
  color: var(--primary-blue);
  margin-top: 2px;
}

/* ==================== Footer ==================== */
.footer-container {
  border-top: 1px solid #d0e4f5;
  margin-top: auto;
  padding: 15px 0;
  background: #ffffff;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #666666;
}

.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-divider {
  color: #cccccc;
}

/* ==================== Modals ==================== */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  width: 380px;
  background: #ffffff;
  border: 1px solid #6688aa;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(180deg, #b9d8f5 0%, #8ebae5 100%);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #7799bb;
}

.modal-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e3c5b;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #557799;
  cursor: pointer;
  line-height: 1;
}

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

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: #444;
}

.form-control {
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
}

.form-control:focus {
  border-color: #0066cc;
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

.btn-primary {
  background: linear-gradient(180deg, #0078d7 0%, #005a9e 100%);
  color: #ffffff;
  border: 1px solid #004578;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==================== Responsive Layout ==================== */
@media (max-width: 820px) {
  .hero-section {
    flex-direction: column;
  }

  .action-card {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    background: #ffffff;
    padding: 15px;
    border: 1px solid var(--border-card);
    border-radius: 6px;
  }

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

  .nav-links {
    display: none;
  }
}