:root {
  --brand-blue:    #082c59;
  --accent-blue:   #2563eb;
  --hero-azure:    #a18cd1;
  --hero-purple-end: #6d5bba;
  --teal:          #06b6d4;
  --text:          #213045;
  --light-gray:    #f7fafc;
  --card-shadow:   0 6px 24px 0 rgba(46,54,80,0.08);
  --white:         #fff;
  --footer-bg:     var(--accent-blue);
  --footer-link:   #bfdbfe;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light-gray);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: var(--brand-blue);
  color: #fff;
  border-bottom: 1px solid #dee3ec;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 12px rgba(30, 44, 80, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.nav-brand a.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 38px;
  width: auto;
  margin-right: 12px;
  user-select: none;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-menu li a {
  color: #e6efff;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.nav-menu li a:hover,
.nav-menu li a:focus {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  outline: none;
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.57rem 1.4rem;
  font-size: 1.07rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(46, 54, 80, 0.06);
  transition: background 0.17s, color 0.17s, box-shadow 0.14s;
}
.btn-login {
  background: var(--white);
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}
.btn-login:hover,
.btn-login:focus {
  background: var(--accent-blue);
  color: var(--white);
  outline: none;
}
.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  border: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1e40af;
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #f0f8ff;
  color: #1e40af;
}
.btn-logout {
  background: #ef4444;
  color: var(--white);
  font-weight: 700;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 1rem;
  transition: background 0.2s;
}
.btn-logout:hover,
.btn-logout:focus {
  background: #c81e1e;
}

/* Hero / Home Section */
.hero {
  background: linear-gradient(135deg, var(--hero-azure) 0%, var(--hero-purple-end) 100%);
  padding: 5.8rem 1rem 4rem 1rem;
  text-align: center;
  box-shadow: 0 4px 32px rgba(18, 44, 98, 0.03);
  font-family: 'Inter', sans-serif;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.05rem;
  letter-spacing: 0.52px;
  color: var(--white);
}
.hero-title .highlight {
  color: #e3ffcc;
  font-weight: 900;
  letter-spacing: 0;
}
.hero-subtitle {
  font-size: 1.25rem;
  max-width: 730px;
  margin: 0 auto 2rem auto;
  color: #d1d7f7;
  font-weight: 500;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1.11rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* About Section */
.about {
  padding: 4rem 1rem;
  background: var(--white);
  text-align: center;
}
.about .container {
  max-width: 900px;
  margin: 0 auto;
}
.about .section-title {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
}
.about p {
  font-size: 1.1rem;
  color: #385276;
  line-height: 1.5;
}

/* Explore Product Section */
.features {
  padding: 4.5rem 1rem;
  background: var(--light-gray);
  text-align: center;
}
.features .container {
  max-width: 900px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.1rem;
  margin-bottom: 2.1rem;
  font-weight: 800;
  color: var(--brand-blue);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2.2rem;
}
.feature-card {
  background: var(--white);
  padding: 2.3rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.17s, box-shadow 0.17s;
}
.feature-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 14px 32px 0 rgba(28, 64, 134, 0.10);
}
.feature-icon {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}
.feature-card h3 {
  margin-bottom: 0.7rem;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 1.1rem;
}
.feature-card p {
  color: #386488;
  font-size: 1.09rem;
}

/* Market Section */
.market {
  padding: 3rem 1rem 2rem 1rem;
  background: #f0f6ff;
  text-align: center;
}
.market .container {
  max-width: 900px;
  margin: 0 auto;
}
.market .section-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  color: var(--brand-blue);
}
.market p {
  font-size: 1.16rem;
  margin-bottom: 2rem;
  color: #384a5e;
  line-height: 1.5;
}
.market-highlights {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.market-highlights > div {
  flex: 1 1 180px;
  padding: 1.1rem 0.5rem;
  background: #e8eefc;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(40,80,150,0.05);
  margin-bottom: 0.7rem;
}
.market-highlights strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}
.market-highlights span {
  display: block;
  font-size: 0.99rem;
  color: #426ead;
}
@media (max-width: 650px) {
  .market-highlights {
    flex-direction: column;
    gap: 1rem;
  }
  .market-highlights > div {
    font-size: 1rem;
  }
}

/* Footer styles with reduced height */
.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 0.75rem 1rem; /* Reduced from 1.5rem */
}
.footer .container {
  max-width: 900px;
  margin: 0 auto;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem; /* Reduced gap */
  min-height: auto;
}
.footer-contact {
  flex: 0 0 auto;
  max-width: 300px;
  font-size: 0.85rem; /* Smaller font */
  line-height: 1.1;
  margin-bottom: 0;
}
.footer-contact h2 {
  font-size: 1rem; /* Smaller heading */
  margin-bottom: 0.1rem; /* Reduced margin */
  font-weight: 700;
  color: var(--white);
}
.footer-contact p {
  margin-bottom: 0.4rem; /* Reduced margin */
  font-size: 0.85rem;
  color: var(--white);
}
.footer-contact form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.footer-contact input[type="text"],
.footer-contact input[type="email"],
.footer-contact textarea {
  width: 100%;
  padding: 0.2rem 0.4rem; /* Reduced padding */
  margin-bottom: 0.4rem; /* Reduced margin */
  border: 1.5px solid #93c5fd;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  background: #3b82f6;
  color: var(--white);
  box-sizing: border-box;
  height: 24px; /* Reduced height */
  transition: border-color 0.2s ease;
}
.footer-contact textarea {
  min-height: 40px; /* Reduced height */
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  height: auto;
}
.footer-contact input[type="text"]:focus,
.footer-contact input[type="email"]:focus,
.footer-contact textarea:focus {
  outline: none;
  border-color: #93c5fd;
  background: #60a5fa;
}
.footer-contact button {
  font-weight: 700;
  border-radius: 8px;
  padding: 0.25rem 0.8rem; /* Reduced padding */
  font-size: 0.85rem;
  background: var(--white);
  color: var(--accent-blue);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(38, 99, 235, 0.3);
  transition: background 0.3s, color 0.3s;
}
.footer-contact button:hover,
.footer-contact button:focus {
  background: #1e40af;
  color: var(--white);
}
.contact-success {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: #22c55e;
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(32, 143, 82, 0.08);
  text-align: left;
}
.footer-info {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start; /* Align top to save space vertically */
  justify-content: flex-end;
  font-size: 0.85rem;
  color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .navbar .inner,
  .container {
    max-width: 100%;
    padding: 0 18px;
  }
  .features .container,
  .footer .container,
  .about .container {
    padding: 0 18px;
  }
}
@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }
  .footer-contact {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .footer-contact h2 {
    font-size: 1.2rem;
  }
  .footer-contact form label,
  .footer-contact input[type="text"],
  .footer-contact input[type="email"],
  .footer-contact textarea,
  .footer-contact button {
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
    margin-bottom: 1rem;
  }
  .footer-contact textarea {
    min-height: 80px;
  }
  .footer-info {
    justify-content: flex-start;
    font-size: 1rem;
  }
}
@media (max-width: 650px) {
  .navbar .inner {
    flex-direction: column;
    gap: 1.2rem;
  }
  .nav-menu {
    gap: 0.85rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* Accessibility focus styles */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
