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

:root {
    --primary-blue: #1877F2;
    --dark-blue: #166FE5;
    --light-blue: #E7F3FF;
    --white: #FFFFFF;
    --text-dark: #1C1E21;
    --text-gray: #65676B;
    --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    --shadow: 0 10px 40px rgba(24, 119, 242, 0.15);
    --shadow-hover: 0 20px 60px rgba(24, 119, 242, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 50%, #f0f7ff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 400;
}

h6 {
    font-size: 1rem;
    font-weight: 400;
}

.subtitle {
    color: #1C1E21;
    margin-bottom: 20px;
    font-size: 2.5rem;
    line-height: 1.2;
}

.description {
    color: #65676B;
    margin: 20px auto 40px;
    max-width: 600px;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.email-input {
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.notify-btn {
    background: linear-gradient(135deg, #1877F2, #166FE5);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Add / restore visual layout for countdown, features and modal (append near end of file) */

/* Logo/header */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    margin-bottom: -5px;
}
.logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* Main content wrapper */
.main-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}
.content-wrapper {
    padding: 0 16px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}
.time-unit {
    background: var(--white);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    min-width: 88px;
    display: inline-block;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.time-unit:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}
.label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Signup */
.email-signup {
    margin-bottom: 34px;
}
.signup-container {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 12px;
    background: var(--white);
    padding: 6px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    align-items: center;
}
.email-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 1rem;
    background: transparent;
}
.signup-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
}

/* Features grid & cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    width: 100%;
}
.feature-item {
    background: var(--white);
    padding: 30px 20px; /* Increased padding */
    border-radius: 20px; /* More rounded corners */
    box-shadow: var(--shadow);
    text-align: center; /* Center align content */
    transition: all 0.3s ease,box-shadow 0.3s ease; /* Smooth transition */
    position: relative; /* For absolute positioning of icons */
    overflow: hidden; /* Clip overflow */
}
.feature-item:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: var(--shadow-hover);
}
.feature-item:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(1);
    transition: filter 0.3s ease; /* Transition for fade and flip */
}
.feature-item:hover .feature-icon {
    filter: grayscale(0);
    }
.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}   
.feature-item p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Hover Effects */
.feature-item:hover .feature-icon {
    opacity: 10; /* Fade out icon */
}
/* Footer and social links */
.footer {
    position: relative;
    padding: 24px 0 40px;
    text-align: center;
    width: 100%;
}
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
    color: var(--primary-blue);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, background 0.18s ease;
}
.social-link:hover {
    transform: translateY(-4px);
}

/* Modal (success) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.45);
}
.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 28px;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.18);
}
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close:hover {
        color: var(--primary-blue);
    }

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    animation: bounce 0.6s ease;
}

.modal-body h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-body p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Accessibility / small screens */
@media (max-width: 768px) {
    .subtitle { font-size: 1.8rem; }
    .number { font-size: 1.8rem; }
    .feature-item { flex-direction: row; }
}

@media (max-width: 480px) {
    .subtitle { font-size: 1.5rem; }
    .features { gap: 18px; }
    .logo { max-width: 260px; }
}