/* ============================================
   CSS RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e74c3c;
    --primary-red-dark: #c0392b;
    --primary-red-light: #ff6b6b;
    --primary-blue: #3498db;
    --primary-blue-dark: #2980b9;
    --primary-green: #27ae60;
    --primary-green-dark: #1e8449;
    --primary-orange: #e67e22;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-bg-solid: rgba(30, 40, 70, 0.95);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(231, 76, 60, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --gradient-dark: linear-gradient(135deg, #0f1629 0%, #1a2744 50%, #0d1321 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--gradient-dark);
}

/* ============================================
   PAGE WRAPPER & BACKGROUND
   ============================================ */
.page-wrapper {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
}

/* Particle/Star Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(15, 22, 41, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-logo em {
    color: var(--primary-red);
    font-style: normal;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

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

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

.nav-link:hover {
    color: var(--text-white);
}

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

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

.nav-cta {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.nav-cta:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 140px 48px 80px;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-white);
}

.hero-content h1 .highlight {
    color: var(--primary-red);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-blue {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.btn-blue:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.5);
}

.btn-green {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

.btn-green:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ============================================
   HERO VISUAL / CARD
   ============================================ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.hero-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile Overlay Card */
.profile-overlay {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--card-bg-solid);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 280px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.profile-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-badge {
    margin-left: auto;
    background: rgba(39, 174, 96, 0.2);
    color: var(--primary-green);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.match-badge small {
    font-size: 0.65rem;
    font-weight: 600;
}

.profile-traits {
    margin-bottom: 16px;
}

.trait-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.trait-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-light);
}

.trait-budget {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.trait-check {
    color: var(--primary-green);
    font-size: 0.85rem;
}

.trait-checks {
    display: flex;
    gap: 4px;
    color: var(--primary-green);
    font-size: 0.75rem;
}

.profile-buttons {
    display: flex;
    gap: 10px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    padding: 80px 48px;
    position: relative;
    z-index: 1;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

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

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.1);
}

.step-circle.orange {
    background: linear-gradient(135deg, var(--primary-orange), #f39c12);
}

.step-circle.blue {
    background: linear-gradient(135deg, var(--primary-blue), #5dade2);
}

.step-circle.green {
    background: linear-gradient(135deg, var(--primary-green), #58d68d);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    max-width: 140px;
}

.step-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--glass-border), rgba(255,255,255,0.3), var(--glass-border));
    border-radius: 2px;
    margin-bottom: 28px;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-card);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.card-number.orange {
    background: linear-gradient(135deg, var(--primary-orange), #f39c12);
}

.card-number.blue {
    background: linear-gradient(135deg, var(--primary-blue), #5dade2);
}

.card-number.green {
    background: linear-gradient(135deg, var(--primary-green), #58d68d);
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.card-header h3 span {
    color: var(--text-muted);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-list {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-list li i {
    color: var(--primary-green);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Card Preview Areas */
.card-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-preview-1 i {
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.8;
}

/* Mini Profile Preview */
.mini-profile {
    width: 100%;
    background: var(--card-bg-solid);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--glass-border);
}

.mini-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mini-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.mini-info {
    flex: 1;
}

.mini-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-white);
}

.mini-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-badge {
    background: rgba(39, 174, 96, 0.2);
    color: var(--primary-green);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.mini-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mini-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-tags span i {
    color: var(--primary-green);
    font-size: 0.65rem;
}

.mini-budget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
}

.mini-budget i.fa-heart {
    color: var(--primary-red);
}

.mini-budget i.fa-check {
    color: var(--primary-green);
    margin-left: auto;
}

/* Chat Preview */
.chat-preview {
    width: 100%;
    background: var(--card-bg-solid);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--glass-border);
}

.chat-header-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.chat-header-mini strong {
    font-size: 0.9rem;
    color: var(--text-white);
}

.chat-header-mini small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chat-badge {
    margin-left: auto;
    background: rgba(39, 174, 96, 0.2);
    color: var(--primary-green);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
}

.bubble.received {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble.sent {
    background: var(--primary-red);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer-section {
    padding: 80px 48px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

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

.safety-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.safety-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.safety-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.safety-item span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .navbar {
        padding: 16px 32px;
    }

    .hero {
        padding: 120px 32px 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 360px;
    }

    .profile-overlay {
        right: 50%;
        transform: translateX(50%);
        bottom: -40px;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-indicator {
        gap: 16px;
    }

    .step-line {
        width: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 22, 41, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-card {
        max-width: 300px;
    }

    .profile-overlay {
        width: 240px;
        padding: 16px;
        bottom: -30px;
    }

    .how-it-works {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .step-indicator {
        flex-direction: column;
        gap: 24px;
    }

    .step-line {
        width: 3px;
        height: 30px;
        margin-bottom: 0;
    }

    .step-item {
        flex-direction: row;
        gap: 16px;
    }

    .step-label {
        text-align: left;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .footer-section {
        padding: 60px 20px;
    }

    .safety-features {
        gap: 32px;
    }

    .safety-item i {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .profile-overlay {
        width: 220px;
        font-size: 0.9em;
    }

    .match-badge {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .card-header h3 {
        font-size: 1.15rem;
    }
}
