:root {
  --primary: #2F5C4B;
  --accent: #D47A5A;
  --primary-hover: #24473a;
  --bg-color: #0f111a;
  --panel-bg: rgba(25, 28, 41, 0.6);
  --navbar-bg: rgba(15, 17, 26, 0.95);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f0f2f5;
  --text-muted: #9aa0a6;
  --bg-image: radial-gradient(at 0% 0%, rgba(47, 92, 75, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(212, 122, 90, 0.15) 0px, transparent 50%);
  --panel-backdrop: blur(16px);
  --panel-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

:root[data-theme="light"] {
  --bg-color: #f8fafc;
  --panel-bg: rgba(255, 255, 255, 0.8);
  --navbar-bg: rgba(255, 255, 255, 0.98);
  --showcase-bg: rgba(0, 0, 0, 0.03);
  --panel-border: rgba(0, 0, 0, 0.1);
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-image: radial-gradient(at 0% 0%, rgba(47, 92, 75, 0.1) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(212, 122, 90, 0.1) 0px, transparent 50%);
  --panel-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

.glass {
  background: var(--panel-bg);
  backdrop-filter: var(--panel-backdrop);
  -webkit-backdrop-filter: var(--panel-backdrop);
  border: 1px solid var(--panel-border);
  border-radius: 4px; /* Clean sharp corners matching main app */
  box-shadow: var(--panel-shadow);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: #ffffff; /* Solid white background as requested */
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo svg {
  color: var(--primary); /* Uses the primary theme color */
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(47, 92, 75, 0.4));
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: #2F5C4B;
}

.btn-login {
  background: linear-gradient(90deg, #2F5C4B, #24473a);
  color: white;
  padding: 0.6rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 92, 75, 0.4);
}

/* Reusable inline brand text style */
.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-name .highlight {
  color: #2F5C4B;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(47, 92, 75, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  padding-top: 80px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  animation: fadeInLeft 1s ease-out;
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}

.hero-image-container img {
  width: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-block;
  background: rgba(47, 92, 75, 0.1);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(47, 92, 75, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--panel-border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Features */
.features {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Showcase Section (For the Articles Image) */
.showcase {
  padding: 5rem 5%;
  background: var(--showcase-bg, rgba(0,0,0,0.2));
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.showcase-content {
  flex: 1;
}

.showcase-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.showcase-image {
  flex: 1;
}

.showcase-image img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
  background-color: var(--footer-bg, #0f111a);
  padding: 3rem 5% 2rem;
  color: var(--text-main);
  border-top: 1px solid var(--panel-border);
}

:root[data-theme="light"] .footer {
  --footer-bg: #eff4fc;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.footer-brand .logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--panel-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-bottom-left a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom-left a:hover {
  color: var(--primary);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.footer-bottom-right:hover {
  color: var(--text-main);
}

/* Animations */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .hero, .showcase-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .showcase {
    padding: 3rem 1rem;
  }
  .features {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  .logo svg {
    width: 20px;
    height: 20px;
  }
  .btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-cta a {
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-image-container img {
    max-height: 300px;
  }
  .showcase-content h2 {
    font-size: 1.6rem;
  }
}
