:root {
    --bg-color: #4DE9D9; /* Requested bright aqua background */
    --surface-color: #ffffff; /* White cards for contrast */
    --surface-hover: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.1);
    --text-primary: #0f172a; /* Dark slate text for readability */
    --text-secondary: #475569;
    
    /* Complementary Warm Accents (Orange/Red/Gold) */
    --accent-color: #ea580c; 
    --accent-hover: #c2410c;
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    --gradient-glow: rgba(239, 68, 68, 0.4);
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 1rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-auth { display: flex; gap: 1rem; }

/* Buttons */
.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--gradient-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 var(--gradient-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.w-100 { width: 100%; }

/* Views */
.view { display: none; padding-top: 80px; }
.view.active { display: block; }

.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    border: 1px solid #f59e0b; /* Thin gold border */
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.4); /* Slight white tint */
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero p {
    font-size: 1.25rem;
    color: #1e293b; /* Darker text for the bright background */
    margin-bottom: 2rem;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    color: var(--accent-color);
    border-radius: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

/* Code Window Mockup */
.code-window {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.window-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-header .title {
    margin-left: 1rem;
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.code-window pre {
    padding: 1.5rem;
    overflow-x: auto;
    color: #0f172a; /* Dark text for light code window */
    font-family: monospace;
    font-size: 0.875rem;
    background: #ffffff;
}

/* Features Grid */
.features { 
    max-width: 1200px; 
    margin: 4rem auto; 
    padding: 2rem; 
    border: 1px solid #f59e0b; /* Thin gold border */
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.4);
}
.features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #0f172a; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.feature-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 1rem; }
.feature-card p { color: var(--text-secondary); }

/* Pricing */
.pricing { 
    max-width: 800px; 
    margin: 4rem auto; 
    padding: 2rem; 
    border: 1px solid #f59e0b; /* Thin gold border */
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.4);
}
.pricing h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #0f172a;}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pricing-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.pricing-card.popular {
    border-color: var(--accent-color);
    border-width: 2px;
    box-shadow: 0 20px 25px -5px rgba(234, 88, 12, 0.2);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    font-family: var(--font-display);
}
.pricing-card .interval { font-size: 1rem; color: var(--text-secondary); }

.features-list { list-style: none; margin-bottom: 2rem; }
.features-list li { margin-bottom: 0.75rem; color: var(--text-secondary); }

/* Dashboard */
.dashboard-container { max-width: 1000px; margin: 2rem auto; padding: 2rem; }
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dash-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.key-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.key-box code { font-family: monospace; color: var(--accent-color); font-size: 1.1rem; }

.usage-stats { display: flex; gap: 2rem; margin-top: 1rem; }
.stat-box .stat-label { color: var(--text-secondary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px;}
.stat-box .stat-value { font-size: 2rem; font-weight: 700; font-family: var(--font-display); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem; cursor: pointer;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}
.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

/* Footer */
.site-footer {
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    margin-top: auto; /* Pushes footer to the bottom */
    text-align: center;
    backdrop-filter: blur(10px);
}

.site-footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.site-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 0.5rem 0;
}

.site-footer .footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.site-footer .attribution {
    font-size: 0.75rem;
    color: #64748b;
}

.site-footer .attribution a {
    color: #64748b;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; gap: 2rem;}
    .hero-actions { justify-content: center; flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .dashboard-cards { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* SaaS Layout - Ultra Modern Floating Style */
.view.saas-layout {
    display: none;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(77, 233, 217, 0.6) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.15) 0%, transparent 60%),
                #e0f8f5;
    padding: 2rem;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}
.view.saas-layout.active {
    display: flex;
}

/* Sidebar - Floating Glassmorphism */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(77, 233, 217, 0.3);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    color: var(--surface-color);
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: left;
    background: transparent;
    border: none;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.08) 0%, transparent 100%);
    color: #ea580c;
    border-right: 4px solid #f59e0b;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    max-width: 1000px;
    margin-left: 0;
    padding: 0;
}

.dash-tab {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-top: 3px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02), 0 4px 6px rgba(77, 233, 217, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-card:hover {
    transform: translateY(-3px);
    border-top-color: #f59e0b;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.08);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    gap: 1.5rem;
}
.pricing-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}
.pricing-card:hover {
    transform: translateY(-5px);
}
.pricing-card.popular {
    border: 2px solid #ea580c;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.15);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}

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