/* BASE & VARIABLES */
:root {
  /* Colors - Light Theme (Green & Red) */
  --bg: #F4F9F6;
  --surface-1: #FFFFFF;
  --surface-2: #E8F1EC;
  --text-1: #1A2821;
  --text-2: #5D7264;
  --accent-1: #198754; /* Green */
  --accent-2: #20C997; /* Lighter Green */
  --highlight: #DC3545; /* Red */
  --violet: #D32F2F; /* Red Alternative */
  --border-color: #CDE2D5;
  --nav-glass: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 4px 12px rgba(26, 40, 33, 0.05);
  --shadow-md: 0 12px 32px rgba(26, 40, 33, 0.08);
  --blueprint: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20zM20 0h20v20H0V0zM0 0h20v20H0V0z' fill='%23CDE2D5' fill-opacity='0.25' fill-rule='evenodd'/%3E%3C/svg%3E");
  
  /* Geometry */
  --radius: 30px;
  --radius-sm: 16px;
  --radius-pill: 100px;
  --border-width: 1px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1400px;
}

[data-theme="dark"] {
  --bg: #0F1411;
  --surface-1: #161E19;
  --surface-2: #1E2B23;
  --text-1: #E9F1EC;
  --text-2: #8E9F94;
  --accent-1: #20C997; /* Bright Green */
  --accent-2: #198754; /* Darker Green */
  --highlight: #FF4D4D; /* Bright Red */
  --violet: #FF6B6B; /* Bright Red Alternative */
  --border-color: #2D4335;
  --nav-glass: rgba(22, 30, 25, 0.9);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.8);
  --blueprint: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20zM20 0h20v20H0V0zM0 0h20v20H0V0z' fill='%232D4335' fill-opacity='0.25' fill-rule='evenodd'/%3E%3C/svg%3E");
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: var(--blueprint);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
}

h1 { font-size: clamp(3rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

.text-lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-2);
  max-width: 60ch;
}

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* CUSTOM BORDER SYSTEM (The Observatory Frame) */
.obs-frame {
  background: var(--surface-1);
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border-color);
  box-shadow: inset 0 0 0 6px var(--bg), var(--shadow-sm);
  padding: 3rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.obs-frame::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border-color);
  pointer-events: none;
  transition: border-color var(--transition);
}

.obs-frame:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: inset 0 0 0 6px var(--bg), var(--shadow-md);
}

.obs-frame:hover::before {
  border-color: var(--accent-1);
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-1);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s;
}

/* NAVIGATION */
.nav-wrapper {
  position: fixed;
  top: 2rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  transition: var(--transition);
}

.nav-wrapper.scrolled {
  top: 1rem;
}

.main-nav {
  background: var(--nav-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.nav-wrapper.scrolled .main-nav {
  padding: 0.5rem 1rem;
  max-width: 1000px;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.brand-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--highlight);
  border-radius: 50%;
}

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

.nav-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  background: var(--surface-1);
  color: var(--text-1);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn:hover {
  border-color: var(--text-2);
}

.btn-primary {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

.btn-primary:hover {
  background: var(--text-1);
  border-color: var(--text-1);
  color: #fff;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-1);
  position: absolute;
  transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 18px; }

/* HERO SECTION */
.hero {
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 5rem;
  display: grid;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-trust {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.trust-icon {
  color: var(--accent-1);
}

.hero-visual {
  position: relative;
  height: 600px;
}

.dashboard-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  background: var(--surface-1);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  z-index: 2;
}

.dashboard-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.dash-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-color); }
.dash-dot:nth-child(1) { background: #FF5F56; }
.dash-dot:nth-child(2) { background: #FFBD2E; }
.dash-dot:nth-child(3) { background: #27C93F; }

.dashboard-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  height: 300px;
}

.dash-panel {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
}

.floating-card {
  position: absolute;
  background: var(--nav-glass);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.fc-1 { top: 10%; right: -10%; animation-delay: 0s; }
.fc-2 { bottom: 10%; left: -5%; animation-delay: 2s; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* RESPONSIBLE NOTICE */
.responsible-banner {
  background: var(--surface-1);
  border-left: 4px solid var(--violet);
  padding: 2rem;
  margin: 4rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.responsible-banner svg {
  flex-shrink: 0;
  color: var(--violet);
}

/* SECTION LAYOUTS */
.section {
  padding: 8rem 0;
  position: relative;
}

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

/* COMPARISON HUB */
.compare-workspace {
  background: var(--surface-1);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-filters {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-2);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-2);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.software-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.software-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.software-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
}
.badge {
  background: var(--surface-2);
  color: var(--text-2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}
.feature-list { margin: 1rem 0; flex-grow: 1; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-2);
}
.feature-list li::before {
  content: '→';
  color: var(--accent-1);
}

/* STAGGERED REVIEWS */
.reviews-staggered {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.review-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.review-panel:nth-child(even) {
  direction: rtl;
}
.review-panel:nth-child(even) > * {
  direction: ltr;
}

.review-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.data-module {
  background: var(--surface-2);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.data-module h4 {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* HORIZONTAL GALLERY (ARTICLES) */
.article-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x mandatory;
}
.article-scroll::-webkit-scrollbar { display: none; } /* Chrome */

.article-card {
  min-width: 350px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.article-meta {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 1rem;
}

/* FAQ ACCORDION */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
details.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
summary.faq-question {
  padding: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-1);
  transition: transform 0.3s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-2);
}

/* CONTACT & LEGAL PANELS */
.split-screen-data {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
  background: var(--surface-1);
}

/* PREMIUM FOOTER */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.02);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--blueprint);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-mission p {
  color: var(--text-2);
  margin-top: 1rem;
  max-width: 400px;
}

.footer-nav h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { color: var(--text-2); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent-1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-2);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* OVERLAYS & UTILS */
.overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--surface-1);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  z-index: 9900;
  width: 90%;
  max-width: 600px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}
.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid, .review-panel, .split-screen-data {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .review-panel:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn:not(.btn-icon) { display: none; }
  .hamburger { display: block; }
  h1 { font-size: 2.5rem; }
  .obs-frame { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-visual { height: 400px; display: none; } /* Hide complex visual on small mobile to improve reading flow */
  .dashboard-mockup { width: 100%; }
}