@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

:root {
    /* Solid, sophisticated color palette - No gradients */
    --bg-body: #f1f5f9;      /* Slate 100 */
    --bg-card: #ffffff;      /* Pure white */
    
    --text-main: #0f172a;    /* Slate 900 */
    --text-muted: #64748b;   /* Slate 500 */
    
    --primary: #3b82f6;      /* Blue 500 */
    --primary-hover: #2563eb;/* Blue 600 */
    --accent: #f59e0b;       /* Amber 500 */
    --accent-hover: #d97706; /* Amber 600 */
    
    --success: #10b981;      /* Emerald 500 */
    --danger: #ef4444;       /* Red 500 */
    
    --border: #e2e8f0;       /* Slate 200 */
    
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-fab: 0 10px 25px rgba(59, 130, 246, 0.4);
    
    --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-ios-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 100px; /* Space for FAB on mobile */
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.text-center { text-align: center; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.w-auto { width: auto !important; }

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Righteous', cursive;
    color: var(--primary);
    letter-spacing: 1px;
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
}

/* Hamburger Button */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 60;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* iOS Style Floating Side Menu */
.side-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 155;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-ios);
}
.side-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 20px;
    right: -250px; /* Hidden offscreen */
    width: 200px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 160;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    transition: right 0.4s var(--ease-ios-bounce);
    border: 1px solid rgba(226, 232, 240, 0.6);
}
.side-menu.active {
    right: 20px;
}

.side-menu a {
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.2s;
}
.side-menu a:hover {
    background-color: var(--bg-body);
}
.side-menu .nav-link-danger {
    color: var(--danger);
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Typography */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

@media (min-width: 600px) {
    .btn { width: auto; }
}

.btn:active { transform: scale(0.98); }

.btn-primary { background-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: var(--shadow-md); }

.btn-gold { background-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background-color: var(--accent-hover); box-shadow: var(--shadow-md); }

.btn-outline { background-color: transparent; border: 2px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background-color: var(--bg-body); border-color: var(--text-muted); }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}
.badge-success { background-color: #dcfce7; color: #166534; }

/* Cards & Grids */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .card { padding: 2rem; }
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.5rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-main); }
input[type="text"], input[type="password"], input[type="number"], input[type="url"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--bg-body);
    transition: all 0.2s;
}
input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-danger { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Download Item */
.download-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-body);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

@media (min-width: 600px) {
    .download-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-ios);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s var(--ease-ios-bounce);
    opacity: 0;
}
.modal-overlay.active .modal-content { 
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover { color: var(--text-main); }

.guide-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.guide-step-num {
    background-color: var(--bg-body);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.guide-step-text { margin-top: 0.25rem; }

/* Circular FAB Menu */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
}

.fab-main {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-fab);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-ios-bounce);
    font-size: 1.5rem;
}
.fab-main:hover { transform: scale(1.05); background-color: var(--primary-hover); }
.fab-main:active { transform: scale(0.95); }

/* The icon inside main FAB */
.fab-main svg {
    transition: transform 0.3s var(--ease-ios);
    width: 28px;
    height: 28px;
    fill: currentColor;
}
.fab-container.active .fab-main svg { transform: rotate(45deg); }

/* Child FABs */
.fab-menu {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    position: absolute;
    bottom: 80px;
    right: 8px; /* center align with main fab */
    pointer-events: none;
}

.fab-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s var(--ease-ios-bounce);
}

.fab-container.active .fab-menu { pointer-events: auto; }
.fab-container.active .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation */
.fab-container.active .fab-item:nth-child(1) { transition-delay: 0.05s; }
.fab-container.active .fab-item:nth-child(2) { transition-delay: 0.1s; }
.fab-container.active .fab-item:nth-child(3) { transition-delay: 0.15s; }

.fab-label {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.fab-btn:hover { background-color: var(--bg-body); transform: scale(1.1); }
.fab-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Animated Wavy Networking Background */
.animated-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.animated-bg::before, .animated-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    background-size: 100% 100%;
    animation: waveRotate 20s linear infinite;
}

.animated-bg::after {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: waveRotate 30s linear infinite reverse;
}

@keyframes waveRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.landing-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* iOS Style Toast Alerts */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    animation: toastIn 0.45s var(--ease-ios-bounce) forwards,
               toastOut 0.4s var(--ease-ios) 3.5s forwards;
}

@keyframes toastIn {
    0% { transform: translateX(-50%) translateY(-120px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes toastOut {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-120px); opacity: 0; pointer-events: none; }
}

.alert-danger {
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-success {
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Dashboard iOS UI */
.dash-greeting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.dash-greeting-label {
    font-size: 0.9rem;
    color: #8e8e93;
    margin-bottom: 2px;
}

.dash-greeting-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.dash-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dash-badge-premium {
    background: #fef3c7;
    color: #92400e;
}

.dash-badge-free {
    background: #f1f5f9;
    color: #64748b;
}

.dash-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Countdown Card */
.dash-countdown-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e5e5ea;
    margin-bottom: 1.25rem;
}

.dash-countdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    font-size: 1rem;
}

.dash-countdown-header svg {
    color: #3b82f6;
}

.countdown-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f2f2f7;
    padding: 12px 14px;
    border-radius: 14px;
    min-width: 60px;
}

.countdown-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c1c1e;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #8e8e93;
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.countdown-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c7c7cc;
    padding-bottom: 14px;
}

/* Stat Cards */
.dash-stat {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-label {
    font-size: 0.8rem;
    color: #8e8e93;
    margin-bottom: 2px;
}

.dash-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Download Section */
.dash-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e5e5ea;
    margin-bottom: 1.25rem;
}

.dash-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.dash-section-title svg {
    color: #3b82f6;
}

.dash-download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f2f2f7;
    padding: 1rem;
    border-radius: 14px;
    flex-wrap: wrap;
}

.dash-download-icon {
    width: 44px;
    height: 44px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.dash-download-info {
    flex: 1;
    min-width: 120px;
}

.dash-download-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.dash-download-info p {
    font-size: 0.8rem;
    color: #8e8e93;
}

.dash-download-btn {
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    width: auto !important;
    gap: 6px;
}

.dash-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #8e8e93;
}

.dash-upgrade {
    text-align: center;
    padding: 1.5rem 1rem;
}

.dash-upgrade-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.dash-upgrade h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.dash-upgrade p {
    font-size: 0.9rem;
    color: #8e8e93;
    margin-bottom: 1.5rem;
}

.dash-pay-btn {
    border-radius: 14px !important;
    padding: 14px 2rem !important;
    display: inline-flex !important;
    width: auto !important;
    gap: 6px;
}

@media (max-width: 480px) {
    .dash-download-btn {
        width: 100% !important;
    }
    .dash-pay-btn {
        width: 100% !important;
    }
}

/* --- NEW LANDING PAGE STYLES --- */
.landing-body {
    background: #fdfdfd;
    overflow-x: hidden;
}

.home-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: transparent;
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
}

.home-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 400;
    font-family: 'Righteous', cursive;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.home-nav-brand-icon {
    width: 35px; height: 35px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}

.home-nav-right {
    display: flex; align-items: center; gap: 15px;
}

.login-pill {
    background: #eef2ff;
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.login-pill:hover { background: #e0e7ff; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 5% 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #eef5ff 0%, #ffffff 50%, #e0edff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
}

.hero-content { max-width: 550px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.hero-title span { color: var(--primary); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}
.trust-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.trust-icon {
    width: 24px; height: 24px;
    background: #eef2ff; color: var(--primary);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
}

/* CSS Phone Mockup */
.phone-container {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.css-phone {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    border: 12px solid #222;
    box-shadow: inset 0 0 0 2px #555, 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transform: rotateX(10deg) rotateY(-15deg) rotateZ(5deg);
    transition: transform 0.5s ease;
}
.css-phone:hover {
    transform: rotateX(5deg) rotateY(-5deg) rotateZ(2deg);
}

.phone-notch {
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 25px;
    background: #222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 20;
}

.phone-screen {
    width: 100%; height: 100%;
    background: #0f172a;
    padding: 40px 20px 20px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.phone-header {
    display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; margin-bottom: 20px; color: #cbd5e1;
}
.phone-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }
.phone-search {
    background: #1e293b; border-radius: 10px; padding: 8px 15px; color: #94a3b8; font-size: 0.9rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.phone-contact {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
}
.contact-avatar {
    width: 45px; height: 45px; border-radius: 50%; background: #3b82f6; display: flex; align-items: center; justify-content: center;
}
.contact-avatar.av-1 { background: #60a5fa; }
.contact-avatar.av-2 { background: #818cf8; }
.contact-avatar.av-3 { background: #a78bfa; }
.contact-avatar.av-4 { background: #f472b6; }
.contact-info { flex: 1; }
.contact-name { font-weight: 600; font-size: 0.95rem; }
.contact-num { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.contact-icon {
    width: 25px; height: 25px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.floating-3d-icon {
    position: absolute;
    bottom: 15%; right: -20px;
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border-radius: 20px;
    box-shadow: -10px 20px 30px rgba(37, 99, 235, 0.4), inset 2px 2px 5px rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    color: white;
    transform: rotateX(20deg) rotateY(-20deg) translateZ(50px);
    z-index: 30;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px) rotateX(20deg) rotateY(-20deg) translateZ(50px); }
    50% { transform: translateY(-15px) rotateX(20deg) rotateY(-20deg) translateZ(50px); }
    100% { transform: translateY(0px) rotateX(20deg) rotateY(-20deg) translateZ(50px); }
}

/* Features Section */
.features-section {
    background: #0b1120;
    color: white;
    padding: 0 5% 6rem;
    position: relative;
    margin-top: -5px; /* prevent gap with svg */
}

.wave-divider {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(145deg, #eef5ff 0%, #ffffff 50%, #e0edff 100%);
    margin: 0; padding: 0; line-height: 0;
}

.features-container {
    max-width: 1200px; margin: 0 auto;
}

.features-header-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}

.features-header .feat-badge {
    display: inline-block; background: rgba(255,255,255,0.1); color: #94a3b8; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 1rem;
}
.features-header h2 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.features-header h2 span { color: var(--primary); display: block; }
.features-header p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; max-width: 400px; margin: 0; }

.decorative-cursive {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    color: var(--primary);
    transform: rotate(-5deg);
    text-shadow: 0 4px 10px rgba(37,99,235,0.2);
    margin-top: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.features-grid-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}

.feat-card-dark {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
}
.feat-card-dark:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}
.feat-icon-box {
    width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: white;
}
.bg-green { background: #10b981; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }
.bg-blue { background: #3b82f6; box-shadow: 0 4px 15px rgba(59,130,246,0.3); }
.bg-purple { background: #8b5cf6; box-shadow: 0 4px 15px rgba(139,92,246,0.3); }

.feat-card-dark h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #f8fafc; }
.feat-card-dark p { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; margin: 0; }

/* Responsive Updates */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .trust-badges { justify-content: center; flex-wrap: wrap; display: none; }
    .features-grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .features-header-container { gap: 1rem; align-items: center; }
    .features-header h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
    .features-header p { font-size: 0.85rem; line-height: 1.4; }
    .decorative-cursive { font-size: 2rem; margin-top: 0; transform: rotate(-10deg); text-align: right; }
}

