/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette - Minimalist Luxury (Option C) */
  --color-primary: #020617; /* Slate 950 */
  --color-primary-light: #1e293b; /* Slate 800 */
  --color-accent: #f59e0b; /* Amber 500 */
  --color-accent-hover: #d97706; /* Amber 600 */
  --color-bg: #f8fafc; /* Slate 50 */
  --color-surface: #ffffff;
  --color-border: #e2e8f0; /* Slate 200 */
  --color-text: #0f172a; /* Slate 900 */
  --color-text-muted: #64748b; /* Slate 500 */
  
  /* Dimensions */
  --topbar-height: 64px;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;

  /* Border Radius */
  --radius-base: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base Reset & Typography */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0;
}

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

a:hover {
  color: var(--color-accent-hover);
}

/* Layout */
#layout {
  flex: 1 0 auto;
  position: relative;
  display: block;
  background-color: var(--color-bg);
}

/* Topbar */
#topbar {
  height: var(--topbar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  position: sticky;
  top: 0;
}

#topbar h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-weight: 700;
}

/* Auth Buttons */
.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-base);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
}

.btn-modern-ghost {
  color: var(--color-text);
  background: transparent;
}

.btn-modern-ghost:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.btn-modern-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-modern-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Builders Theme-Responsive Button Styles */
.btn-builders-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  font-weight: 600;
  border-radius: var(--radius-base);
  transition: all 0.3s ease;
}

.btn-builders-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-builders-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  border-radius: var(--radius-base);
  transition: all 0.3s ease;
}

.btn-builders-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}


/* Responsive */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  #topbar {
    padding: 0 12px;
  }
  #topbar h1 {
    font-size: 1rem;
  }
  .logo-text {
    font-size: 1rem;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-topbar-list {
    padding: 8px 10px;
    gap: 4px;
    font-size: 0.8rem;
  }
  .auth-actions {
    gap: 6px;
  }
  .btn-modern {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

/* Footer */
#site-footer {
    background: var(--color-primary);
    color: white;
    padding: 32px 24px;
    margin-top: auto;
    z-index: 30;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-section p {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

    border: 1px solid var(--color-border);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.auth-link {
    color: var(--color-accent);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Form Styles Override for Auth */
.asteriskField {
    color: #ef4444; /* Red 500 */
}
/* Glassmorphism utility - Refined for better legibility */
.glass-panel {
    background: rgba(15, 23, 42, 0.4); /* Darker background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-wrapper {
    position: relative;
    min-height: calc(85vh - var(--topbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
    background: #0f172a;
}

/* Dark overlay for better text contrast */
.hero-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    #layout {
        height: auto;
    }
    
    .hero-wrapper {
        min-height: auto; /* Allow natural scrolling */
        padding-top: 40px;
        padding-bottom: 80px; /* Safe space from footer */
    }

    .landing-title {
        font-size: 2.25rem; /* Better fit for mobile */
    }

    .value-props {
        margin-top: 40px;
        gap: 16px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(13, 148, 136, 0.15);
    color: var(--color-accent);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.landing-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: white; /* High contrast */
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.landing-lead {
    font-size: 1.25rem;
    color: #e2e8f0; /* Slate 200 */
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-premium {
    padding: 16px 36px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-primary {
    background: var(--color-accent);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}

.btn-premium-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.prop-card {
    padding: 32px;
    text-align: left;
    transition: transform 0.3s ease;
}

.prop-card:hover {
    transform: translateY(-5px);
}

.prop-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.prop-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.prop-desc {
    color: #cbd5e1; /* Slate 300 */
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Toast Notifications - Premium Floating System */
.message-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    min-width: 320px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: toast-slide-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

@keyframes toast-slide-in {
    from { transform: translateX(120%) scale(0.95); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toast-slide-out {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(120%) scale(0.95); opacity: 0; }
}

.toast-message.hiding {
    animation: toast-slide-out 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.toast-success .toast-icon { background: #ecfdf5; color: #10b981; }
.toast-error .toast-icon { background: #fef2f2; color: #ef4444; }
.toast-warning .toast-icon { background: #fffbeb; color: #f59e0b; }
.toast-info .toast-icon { background: #eff6ff; color: #3b82f6; }

.toast-content {
    flex-grow: 1;
}

.toast-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.btn-toast-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    opacity: 0.4;
    transition: all 0.2s;
    padding: 4px;
    margin: -4px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.btn-toast-close:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Modern navigation links */
.nav-link-modern {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted) !important;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
}

.nav-link-modern:hover {
    color: var(--color-accent) !important;
}

.nav-link-modern.active {
    color: var(--color-primary) !important;
    font-weight: 600;
    border-bottom-color: var(--color-accent);
}

/* Dropdown Modern Styling */
.dropdown-menu-modern {
  border-radius: 16px !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-lg) !important;
  background-color: var(--color-surface) !important;
  padding: 8px !important;
  margin-top: 8px !important;
  min-width: 200px !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-modern .dropdown-item {
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--color-text-muted) !important;
  transition: all 0.15s ease !important;
}

.dropdown-menu-modern .dropdown-item:hover {
  background-color: rgba(245, 158, 11, 0.08) !important;
  color: var(--color-accent) !important;
}

.dropdown-menu-modern .dropdown-item.active {
  background-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
}

.dropdown-menu-modern .dropdown-divider {
  border-top: 1px solid var(--color-border) !important;
  margin: 6px 0 !important;
}

/* Logo Dropdown Trigger Styling */
.logo-dropdown-trigger::after {
    display: none !important;
}

.logo-dropdown-trigger {
    transition: all 0.2s ease;
}

.logo-dropdown-trigger:hover .logo-text {
    color: var(--color-accent) !important;
}


