:root {
    --bg-color: #060A13;
    --surface-color: rgba(17, 24, 39, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --secondary: #06B6D4;
    --accent: #22D3EE;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #22D3EE 60%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Effects */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.18;
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    top: -200px;
    left: -200px;
    background: var(--secondary);
}

.blob-2 {
    top: 200px;
    right: -200px;
    background: var(--primary);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 800px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, 30px); }
    50% { transform: translate(-20px, 15px); }
    75% { transform: translate(10px, -30px); }
}

/* Glassmorphism */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--surface-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 4px;
}

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

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: badge-pulse 6s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 60%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
        border-color: var(--surface-border);
    }
    80% {
        box-shadow: 0 0 25px 5px rgba(34, 211, 238, 0.35);
        border-color: rgba(34, 211, 238, 0.7);
    }
}

.badge-logo {
    height: 20px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    background: var(--surface-color);
    margin-left: -10px;
}
.avatar:first-child { margin-left: 0; background: #FF5722; }
.avatar:nth-child(2) { background: #4CAF50; }
.avatar:nth-child(3) { background: #2196F3; }
.avatar:nth-child(4) { background: #9C27B0; }

/* Mockup Visual */
.hero-visual {
    position: relative;
}

.mockup-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--surface-border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-body {
    padding: 32px 24px;
}

.mockup-notification {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.icon-circle.success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.mockup-notification h4 { font-size: 1rem; margin-bottom: 4px; }
.mockup-notification p { color: var(--text-muted); font-size: 0.9rem; }

.mockup-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.step {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface-border);
    position: relative;
    z-index: 2;
}
.step.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}
.step-line {
    flex-grow: 1;
    height: 2px;
    background: var(--surface-border);
    margin: 0 -5px;
    z-index: 1;
}
.step-line.active { background: var(--primary); }

.mockup-btn {
    background: var(--text-main);
    color: var(--bg-color);
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.floating-card {
    position: absolute;
    padding: 16px 20px;
    border-radius: 16px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 40px;
    right: -20px;
    border-left: 4px solid var(--primary);
}

.card-2 {
    bottom: 60px;
    left: -40px;
    border-left: 4px solid var(--secondary);
    animation-delay: -3s;
}

.floating-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.floating-card p { font-size: 0.8rem; color: var(--text-muted); }

/* Features */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 40px 32px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* State Machine / Steps */
.state-machine {
    padding: 100px 0;
    position: relative;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.step-content h3 { margin-bottom: 8px; }
.step-content p { color: var(--text-muted); margin-bottom: 0; }

.step-connector {
    height: 40px;
    width: 2px;
    background: var(--surface-border);
    margin: 10px 0 10px 23px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 80px 0 40px;
    background: rgba(0,0,0,0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 40px;
    border-top: 1px solid var(--surface-border);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-cta { justify-content: center; }
    .trust-indicators { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .floating-card { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: 0.3s ease;
        border-bottom: 1px solid var(--surface-border);
    }
    .nav-links.active { transform: translateY(0); }
    .mobile-menu-btn { display: flex; }
    
    .hero-title { font-size: 2.5rem; }
    .cta-box h2 { font-size: 2rem; }
    .cta-box { padding: 40px 20px; }
    
    .footer-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .btn-large { width: 100%; }
    .footer-links { grid-template-columns: 1fr; }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    border: 1px solid var(--success);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
}
.toast.show {
    transform: translateX(0);
}
.toast-error {
    border-color: var(--danger);
}

/* Profile Dropdown */
.profile-menu {
    position: relative;
    display: inline-block;
}
.profile-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
}
.profile-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.profile-menu:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}
.dropdown-item.danger {
    color: var(--danger);
}

/* Modern Toast UI */
#modern-toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
}

.modern-toast {
    width: 400px;
    max-width: 90vw;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.modern-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.modern-toast.modern-toast-success::before {
    background: linear-gradient(to bottom, #10B981, #059669);
}

.modern-toast.modern-toast-warning::before {
    background: linear-gradient(to bottom, #F59E0B, #D97706);
}

.modern-toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.modern-toast.hide {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
}

.modern-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.modern-toast-success .modern-toast-icon {
    background: rgba(16, 185, 129, 0.1);
}

.modern-toast-warning .modern-toast-icon {
    background: rgba(245, 158, 11, 0.1);
}

.modern-toast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-toast-content h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
}

.modern-toast-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.modern-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    align-self: flex-start;
}

.modern-toast-close:hover {
    color: #fff;
}

.modern-toast-progress {
    position: absolute;
    bottom: 0;
    left: 4px;
    height: 3px;
    width: calc(100% - 4px);
    background: rgba(255, 255, 255, 0.1);
    transform-origin: left;
    animation: toast-progress 6s linear forwards;
}

.modern-toast-success .modern-toast-progress {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
}

.modern-toast-warning .modern-toast-progress {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.8));
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
