/* Xaffle Landing Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Global background with hero effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.1) 0%, 
        rgba(41, 182, 246, 0.1) 50%, 
        rgba(0, 134, 195, 0.1) 100%);
}

/* Global particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 134, 195, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--xaffle-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--xaffle-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--xaffle-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.4);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.1) 0%, 
        rgba(41, 182, 246, 0.1) 50%, 
        rgba(0, 134, 195, 0.1) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 134, 195, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 100vh;
    padding-top: 70px;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    background: var(--xaffle-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(41, 182, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border: 2px solid var(--border-color);
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--xaffle-blue);
    color: var(--xaffle-blue);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--xaffle-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    animation: slideInRight 1s ease-out;
}

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

/* Interactive Dashboard Demo */
.dashboard-demo {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    max-width: 600px;
    width: 100%;
}

.dashboard-demo:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.demo-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #28ca42; }

.demo-title {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.demo-dashboard {
    background: var(--bg-primary);
    min-height: 400px;
}

/* Demo Navigation */
.demo-navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.demo-navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-brand {
    display: flex;
    align-items: center;
}

.demo-logo {
    width: 24px;
    height: 24px;
}

.demo-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

.demo-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.demo-nav-item {
    position: relative;
}

.demo-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.demo-nav-link svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.demo-nav-item.active .demo-nav-link {
    background: var(--xaffle-gradient);
    color: white;
}

.demo-nav-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.demo-nav-item.active .demo-nav-link:hover {
    background: var(--xaffle-gradient);
    color: white;
}

.demo-navbar-right {
    display: flex;
    align-items: center;
}

.demo-theme-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--hover-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.demo-theme-toggle:hover {
    background: var(--active-bg);
}

.demo-sun-icon,
.demo-moon-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.demo-sun-icon {
    opacity: 1;
}

.demo-moon-icon {
    position: absolute;
    opacity: 0;
}

.dashboard-demo.dark .demo-sun-icon {
    opacity: 0;
}

.dashboard-demo.dark .demo-moon-icon {
    opacity: 1;
}

/* Demo Content */
.demo-content {
    padding: 16px;
    min-height: 300px;
    position: relative;
}

.demo-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-page.active {
    display: block;
}

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

/* Dashboard Page */
.demo-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.demo-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.demo-stat-header h3 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.demo-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xaffle-blue);
    margin: 0;
}

.demo-chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.demo-chart-container h3 {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.demo-chart {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 60px;
}

.demo-bar {
    flex: 1;
    background: var(--xaffle-gradient);
    border-radius: 2px 2px 0 0;
    min-height: 8px;
    animation: growUp 1s ease-out;
}

/* Accounts Page */
.demo-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.demo-page-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.demo-add-btn {
    background: var(--xaffle-gradient);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.demo-add-btn:hover {
    transform: translateY(-1px);
}

.demo-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.demo-account-avatar {
    width: 32px;
    height: 32px;
    background: var(--xaffle-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.demo-account-info {
    flex: 1;
}

.demo-account-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.demo-account-status {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.demo-account-status.active {
    background: var(--success-bg);
    color: var(--success-color);
}

.demo-account-status.inactive {
    background: var(--error-bg);
    color: var(--error-color);
}

/* Groups Page */
.demo-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.demo-group-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.demo-group-card h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.demo-group-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.demo-group-stats span:first-child {
    color: var(--text-secondary);
}

.demo-group-status.active {
    background: var(--success-bg);
    color: var(--success-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Messages Page */
.demo-messages-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    height: 250px;
}

.demo-messages-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    overflow-y: auto;
}

.demo-message-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 4px;
}

.demo-message-item:hover {
    background: var(--hover-bg);
}

.demo-message-item.active {
    background: var(--xaffle-gradient);
    color: white;
}

.demo-message-avatar {
    width: 24px;
    height: 24px;
    background: var(--xaffle-turquoise);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
}

.demo-message-info {
    flex: 1;
    min-width: 0;
}

.demo-message-name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.demo-message-preview {
    font-size: 0.65rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-messages-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.demo-message-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.demo-message-header h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.demo-message-body {
    flex: 1;
}

.demo-message-body p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

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

.feature-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--xaffle-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: var(--xaffle-gradient);
    opacity: 0.3;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--xaffle-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.3);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* CTA Section */
.cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.cta-gradient {
    background: var(--xaffle-gradient);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    font-size: 1.2rem;
    padding: 20px 40px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

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

.footer-description {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--xaffle-turquoise);
    border-radius: 1px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--xaffle-turquoise);
    transform: translateX(4px);
    padding-left: 8px;
}

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

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Theme Toggle Floating Button */
.theme-toggle-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--xaffle-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.theme-toggle-floating:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(41, 182, 246, 0.4);
}

.theme-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(180deg);
}

.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Dark Mode Styles */
.dark-mode {
    color-scheme: dark;
}

/* Dark mode global background */
.dark-mode::before {
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.08) 0%, 
        rgba(41, 182, 246, 0.08) 50%, 
        rgba(0, 134, 195, 0.08) 100%);
}

.dark-mode::after {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 134, 195, 0.3) 0%, transparent 50%);
}

.dark-mode .landing-nav {
    background: rgba(2, 11, 25, 0.1);
    border-bottom-color: rgba(64, 224, 208, 0.1);
}

.dark-mode .nav-cta {
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.dark-mode .nav-cta:hover {
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.5);
}

.dark-mode .hero-gradient {
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.08) 0%, 
        rgba(41, 182, 246, 0.08) 50%, 
        rgba(0, 134, 195, 0.08) 100%);
}

.dark-mode .hero-particles {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 134, 195, 0.3) 0%, transparent 50%);
}

.dark-mode .btn-primary {
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.4);
}

.dark-mode .btn-primary:hover {
    box-shadow: 0 15px 35px rgba(64, 224, 208, 0.5);
}

.dark-mode .btn-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-mode .btn-secondary:hover {
    border-color: var(--xaffle-turquoise);
    color: var(--xaffle-turquoise);
}

.dark-mode .dashboard-preview {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.dark-mode .features {
    background: var(--bg-secondary);
}

.dark-mode .feature-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .step-number {
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.4);
}

.dark-mode .cta-gradient {
    opacity: 0.08;
}

.dark-mode .theme-toggle-floating {
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.4);
}

.dark-mode .theme-toggle-floating:hover {
    box-shadow: 0 12px 35px rgba(64, 224, 208, 0.5);
}

/* Dark mode footer adjustments */
.dark-mode .footer {
    background: var(--bg-primary);
    border-top-color: var(--border-color);
}

/* Modern Pricing Section */
.pricing-hero {
    text-align: center;
    padding: 100px 0 60px 0;
    position: relative;
    z-index: 2;
}

.pricing-cards-container {
    display: flex;
    justify-content: center;
    padding: 0 20px 80px 20px;
    position: relative;
    z-index: 2;
}

.pricing-cards {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card-modern {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(64, 224, 208, 0.3);
}

.pricing-card-modern.featured {
    transform: scale(1.08);
    border: 2px solid var(--xaffle-turquoise);
    background: rgba(64, 224, 208, 0.08);
}

.pricing-card-modern.featured:hover {
    transform: scale(1.08) translateY(-12px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card-modern:hover .card-glow {
    opacity: 1;
}

.pricing-card-modern.featured .card-glow {
    opacity: 0.6;
}

.featured-label {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--xaffle-gradient);
    color: white;
    padding: 8px 24px;
    border-radius: 0 0 16px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
}

.card-content {
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-badge {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--xaffle-turquoise);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.plan-price-display {
    text-align: center;
    margin-bottom: 30px;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    vertical-align: top;
    margin-right: 4px;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.plan-features-list {
    flex: 1;
    margin-bottom: 30px;
}

.feature {
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.feature:hover {
    color: var(--xaffle-turquoise);
    padding-left: 8px;
}

.feature:last-child {
    border-bottom: none;
}

.plan-cta-btn {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid var(--xaffle-turquoise);
    background: transparent;
    color: var(--xaffle-turquoise);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-cta-btn:hover {
    background: var(--xaffle-turquoise);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.3);
}

.featured-btn {
    background: var(--xaffle-gradient);
    color: white;
    border: 2px solid transparent;
}

.featured-btn:hover {
    background: var(--xaffle-gradient);
    color: white;
    box-shadow: 0 12px 35px rgba(64, 224, 208, 0.4);
}

.pricing-guarantee {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
}

.guarantee-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(64, 224, 208, 0.3));
}

.guarantee-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.guarantee-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Pricing Mobile Responsive */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 80px 0 40px 0;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .pricing-card-modern {
        min-width: 280px;
        max-width: 400px;
    }

    .pricing-card-modern.featured {
        transform: none;
        order: -1;
    }

    .pricing-card-modern.featured:hover {
        transform: translateY(-8px);
    }

    .card-content {
        padding: 30px 24px;
    }

    .amount {
        font-size: 3rem;
    }

    .guarantee-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .pricing-cards-container {
        padding: 0 16px 60px 16px;
    }

    .pricing-card-modern {
        min-width: 260px;
    }

    .card-content {
        padding: 24px 20px;
    }

    .amount {
        font-size: 2.5rem;
    }

    .guarantee-content {
        padding: 24px 20px;
    }
}

/* Mobile Navigation */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-mobile-toggle:hover {
    background: var(--hover-bg);
}

.nav-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.nav-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-mobile-menu.active {
    display: flex;
    opacity: 1;
}

.nav-mobile-content {
    background: var(--bg-primary);
    margin: 80px 20px 20px;
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.nav-mobile-menu.active .nav-mobile-content {
    transform: translateY(0);
}

.nav-mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-mobile-link:hover {
    background: var(--hover-bg);
    color: var(--xaffle-turquoise);
}

.nav-mobile-cta {
    background: var(--xaffle-gradient);
    color: white;
    margin-top: 20px;
}

.nav-mobile-cta:hover {
    background: var(--xaffle-gradient);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 80px 0 40px 0;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .stat {
        padding: 20px;
    }

    /* Dashboard Demo Mobile */
    .dashboard-demo {
        max-width: 90%;
        transform: none;
        margin: 40px auto 0;
        font-size: 0.85rem;
    }

    .dashboard-demo:hover {
        transform: none;
    }

    .demo-navbar {
        padding: 6px 12px;
        height: 44px;
    }

    .demo-logo {
        width: 20px;
        height: 20px;
    }

    .demo-nav-menu {
        gap: 2px;
    }

    .demo-nav-link {
        padding: 4px 6px;
        font-size: 0.65rem;
        gap: 4px;
    }

    .demo-nav-link svg {
        width: 12px;
        height: 12px;
    }

    .demo-nav-link span {
        display: none;
    }

    .demo-theme-toggle {
        width: 28px;
        height: 28px;
    }

    .demo-sun-icon,
    .demo-moon-icon {
        width: 14px;
        height: 14px;
    }

    .demo-content {
        padding: 12px;
        min-height: 250px;
    }

    .demo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .demo-stat-card {
        padding: 12px;
    }

    .demo-stat-header h3 {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .demo-stat-value {
        font-size: 1.2rem;
    }

    .demo-chart-container {
        padding: 12px;
    }

    .demo-chart-container h3 {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .demo-chart {
        height: 40px;
    }

    .demo-page-header h2 {
        font-size: 0.9rem;
    }

    .demo-add-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .demo-account-item {
        padding: 8px;
        gap: 8px;
    }

    .demo-account-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .demo-account-name {
        font-size: 0.7rem;
    }

    .demo-account-status {
        font-size: 0.6rem;
    }

    .demo-groups-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .demo-group-card {
        padding: 12px;
    }

    .demo-group-card h3 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .demo-group-stats {
        font-size: 0.65rem;
    }

    .demo-messages-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        height: auto;
    }

    .demo-messages-sidebar {
        padding: 6px;
        max-height: 120px;
    }

    .demo-message-item {
        padding: 6px;
        gap: 6px;
    }

    .demo-message-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .demo-message-name {
        font-size: 0.65rem;
    }

    .demo-message-preview {
        font-size: 0.6rem;
    }

    .demo-messages-content {
        padding: 12px;
    }

    .demo-message-header h3 {
        font-size: 0.8rem;
    }

    .demo-message-body p {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    /* Features Section Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    /* How It Works Mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step::after {
        display: none;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    /* CTA Section Mobile */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-description {
        text-align: center;
    }

    /* Theme Toggle Mobile */
    .theme-toggle-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .nav-container {
        padding: 0 16px;
    }

    .dashboard-demo {
        border-radius: 12px;
        max-width: 85%;
        font-size: 0.8rem;
    }

    .demo-header {
        padding: 8px 12px;
    }

    .demo-title {
        font-size: 0.75rem;
    }

    .demo-dots span {
        width: 8px;
        height: 8px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 14px 24px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .step {
        padding: 0 16px;
    }

    .footer {
        padding: 40px 0 16px;
    }

    .footer-content {
        gap: 30px;
    }
}
