:root {
    /* Dark theme colors by default */
    --primary: #818CF8;
    --secondary: #FCD34D;
    --accent: #34D399;
    --background: #0F172A;
    --text: #F9FAFB;
    --card-bg: #1E293B;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-start: #1E293B;
    --gradient-end: #0F172A;
}

[data-theme="light"] {
    --primary: #6366F1;
    --secondary: #F59E0B;
    --accent: #10B981;
    --background: #F9FAFB;
    --text: #111827;
    --card-bg: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-start: #EEF2FF;
    --gradient-end: #F5F3FF;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
}

/* Split Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
}

/* Features Section */
.features-section {
    flex: 1;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--background);
}

.features-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.main-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    opacity: 1;
    transform: none;
}

.feature-item {
    max-width: 600px;
    text-align: left;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(129, 140, 248, 0.2);
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.feature-text p {
    color: var(--text);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float {
    position: absolute;
    font-size: 2.5rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.15;
    filter: blur(1px);
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    50% { 
        transform: translate(20px, -20px) rotate(10deg); 
    }
}

.float-1 { top: 15%; left: 10%; animation-delay: 0s; }
.float-2 { top: 60%; right: 15%; animation-delay: -1s; }
.float-3 { top: 75%; left: 15%; animation-delay: -2s; }
.float-4 { top: 25%; right: 10%; animation-delay: -3s; }
.float-5 { top: 45%; left: 50%; animation-delay: -4s; }

/* Waitlist Section */
.waitlist-section {
    flex: 1;
    padding: 3rem;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -20px 0 40px var(--shadow);
    opacity: 1;
    transform: none;
}

.waitlist-content {
    max-width: 480px;
    width: 100%;
    text-align: center;
    opacity: 1;
    transform: none;
}

.waitlist-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.3;
}

.subtitle {
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Avatars Group */
.avatars-group {
    display: flex;
    margin-bottom: 2rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: -10px;
    border: 2px solid var(--card-bg);
}

/* Form Styling */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 1;
    transform: none;
}

.form-group {
    position: relative;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--background);
    color: var(--text);
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.terms {
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.8;
    text-align: center;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Logo */
.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

/* Theme Toggle */
#theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
    color: var(--text);
    z-index: 1000;
    transition: transform 0.3s;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-section,
    .waitlist-section {
        padding: 2rem;
    }

    .features-content {
        padding-top: 3rem;
    }

    .main-heading {
        font-size: 2rem;
    }

    .feature-item {
        padding: 0.75rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .waitlist-content h2 {
        font-size: 1.75rem;
    }
}

/* Keep existing modal styles */

/* Preview Section */
.preview-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
}

.preview-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.preview-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
    overflow: hidden;
}

.preview-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
}

.preview-content {
    padding: 1.5rem;
}

.study-preview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-line {
    height: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    width: 100%;
}

.text-line.short {
    width: 60%;
}

.cards-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.preview-card-item {
    height: 100px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    transition: transform 0.3s;
}

.preview-card-item:hover {
    transform: translateY(-2px);
}

/* Theme Toggle */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
    color: var(--text);
    z-index: 1000;
    transition: transform 0.3s;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Navigation */
nav {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.tagline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
}

.description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Waitlist Form */
.waitlist-form {
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
}

input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.3s;
}

input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary);
}

button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.float-1 { top: 20%; left: 10%; animation-delay: 0s; }
.float-2 { top: 60%; left: 80%; animation-delay: -1s; }
.float-3 { top: 80%; left: 20%; animation-delay: -2s; }
.float-4 { top: 30%; left: 70%; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--card-bg);
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: var(--background);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 2rem;
}

.testimonials h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    opacity: 0;
    transform: translateY(20px);
}

.quote {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.author {
    color: var(--primary);
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    max-width: 90%;
    width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-btn {
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: fit-content;
}

.close-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Share Link Container */
.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.share-link-container input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--background);
    color: var(--text);
    cursor: text;
}

.copy-btn {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 42px;
}

.copy-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    color: white;
}

.share-btn i {
    font-size: 1.2rem;
}

.share-btn.twitter {
    background: #000000; /* X's new brand color */
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Success Animation */
.success-animation {
    margin-bottom: 1.5rem;
}

.success-animation i {
    font-size: 4rem;
    color: var(--accent);
    animation: scaleIn 0.5s ease-out;
}

/* Waitlist Number */
.waitlist-number {
    margin: 2rem 0;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    animation: numberPop 0.5s ease-out;
}

.joke-text {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes numberPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.logo-icon {
    font-size: 1.25rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: color 0.3s;
}

#theme-toggle:hover {
    color: var(--primary);
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#settings-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: color 0.3s;
    opacity: 0.8;
}

#settings-btn:hover {
    color: var(--primary);
    opacity: 1;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-content {
        gap: 1rem;
    }

    .search-container {
        margin: 0 0.5rem;
    }

    .logo h1 {
        display: none;
    }
} 