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

html {
  scroll-behavior: smooth;
}

/* Updated root variables for light/dark theme system */
:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --mobile-menu-bg: rgba(248, 250, 252, 0.95);
  --hero-bg: linear-gradient(135deg, #ffffff, #f8fafc, #ffffff);
  --dashboard-bg: rgba(248, 250, 252, 0.8);
  --dashboard-card-bg: rgba(255, 255, 255, 0.9);
  --feature-card-bg: rgba(255, 255, 255, 0.8);
  --feature-card-border: #e2e8f0;
  --accent-primary: #0ea5e9;
  --accent-secondary: #3b82f6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
}

/* Dark theme colors */
[data-theme="dark"] {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-hover: #475569;
  --card-bg: #0f172a;
  --card-border: #334155;
  --nav-bg: rgba(2, 6, 23, 0.95);
  --mobile-menu-bg: rgba(15, 23, 42, 0.95);
  --hero-bg: linear-gradient(135deg, #020617, #0f172a, #020617);
  --dashboard-bg: rgba(15, 23, 42, 0.5);
  --dashboard-card-bg: rgba(15, 23, 42, 0.5);
  --feature-card-bg: rgba(30, 41, 59, 0.5);
  --feature-card-border: #475569;
  --accent-primary: #22d3ee;
  --accent-secondary: #3b82f6;
  --accent-success: #22c55e;
  --accent-warning: #eab308;
  --accent-error: #ef4444;
  --accent-purple: #a855f7;
  --accent-orange: #f97316;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Added theme toggle button styles */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(180deg);
  transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-theme-toggle {
  width: 100%;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-primary);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  margin-left: 0.5rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  width: 2rem;
  height: 2rem;
  background-color: var(--accent-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  margin: 2px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  background-color: var(--mobile-menu-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("modern-building.png");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

[data-theme="dark"] .hero-image {
  opacity: 0.1;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Dashboard */
.hero-dashboard {
  position: relative;
}

.dashboard-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 1.5rem;
  filter: blur(3rem);
}

[data-theme="dark"] .dashboard-glow {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
}

.dashboard-card {
  position: relative;
  background: var(--dashboard-card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .dashboard-card {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-lights {
  display: flex;
  gap: 0.5rem;
}

.status-light {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-light.red {
  background-color: var(--accent-error);
}

.status-light.yellow {
  background-color: var(--accent-warning);
  animation-delay: 0.1s;
}

.status-light.green {
  background-color: var(--accent-success);
  animation-delay: 0.2s;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.property-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.property-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

[data-theme="dark"] .property-card {
  background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .property-card:hover {
  background: rgba(30, 41, 59, 0.7);
}

.property-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.property-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.property-card.cyan .property-title {
  color: var(--accent-primary);
}

.property-card.green .property-title {
  color: var(--accent-success);
}

.property-card.purple .property-title {
  color: var(--accent-purple);
}

.property-card.orange .property-title {
  color: var(--accent-orange);
}

.compatibility-section {
  margin-top: 1.5rem;
}

.compatibility-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.compatibility-indicator {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.compatibility-status {
  color: var(--accent-primary);
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-success), var(--accent-purple));
  border-radius: 9999px;
  animation: pulse 2s infinite;
}

.property-types {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1rem);
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  top: -1rem;
  right: -1rem;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.1));
}

.orb-2 {
  bottom: -1rem;
  left: -1rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  animation-delay: -3s;
}

[data-theme="dark"] .orb-1 {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
}

[data-theme="dark"] .orb-2 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}

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

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

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

.feature-card {
  background: var(--feature-card-bg);
  border: 1px solid var(--feature-card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.2);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(14, 165, 233, 0.2);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tax Section */
.tax-section {
  padding: 5rem 0;
}

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

.tax-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tax-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .tax-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
}

[data-theme="dark"] .tax-card:hover {
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.2);
}

.tax-content {
  display: flex;
  gap: 1rem;
}

.tax-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--accent-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.tax-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.tax-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Accounting Section */
.accounting {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

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

.accounting-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.accounting-dashboard {
  position: relative;
}

.dashboard-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.financial-reports {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
}

[data-theme="dark"] .report-item {
  background: rgba(15, 23, 42, 0.5);
}

.status-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.last-update {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
}

.benefit-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cta-section {
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 80px;
  padding-bottom: 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  color: var(--text-muted);
}

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

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .footer-content {
    grid-template-columns: 2fr 3fr;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .accounting-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu.active {
    display: block;
  }

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

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

  .hero-stats {
    justify-content: space-around;
  }
}