/* --- User Provided Variables --- */
:root {
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    --color-brand-50: #f3f0ff; 
    --color-brand-100: #e9e2ff;
    --color-brand-200: #d4c7ff;
    --color-brand-300: #b49fff;
    --color-brand-400: #9171ff;
    --color-brand-500: #6c47ff;
    --color-brand-600: #5a2ef5;
    
    --text-main: #111827;
    --text-muted: #4b5563;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--default-font-family);
    background-color: #ffffff;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; 
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header / Navigation --- */
header {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--color-brand-100);
    position: relative;
    z-index: 10;
}

nav {
    width: 100%;
    max-width: 1200px;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.nav-logo img {
    width: 75px; /* Change this number to make it as big as you want */
    height: auto !important;
    margin-right: 12px;
    mix-blend-mode: multiply;
    /* This forces the off-white to pure white so it disappears completely */
    filter: brightness(1.1) contrast(1.5); 
}

.hero-logo {
    width: 350px; /* Change this number to make it as big as you want */
    height: auto !important; /* The !important forces it to listen */
    max-height: none !important; /* Removes any hidden flexbox limits */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--color-brand-600);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color var(--default-transition-duration) var(--default-transition-timing-function), transform var(--default-transition-duration);
}

.btn:hover {
    background-color: var(--color-brand-500);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px 0 rgba(90, 46, 245, 0.39);
}

/* --- Top Colored Container (Hero) with Bubble Effect --- */
.top-container {
    width: 100%;
    background-color: #6343F0; /* Base purple from image */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden; /* Keeps the bubbles contained within this section */
}

/* Bubble 1: Bottom center-left */
.top-container::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 25%;
    width: 700px;
    height: 700px;
    background-color: rgba(126, 95, 255, 0.45); /* Lighter purple bubble */
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Bubble 2: Top right edge */
.top-container::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background-color: rgba(148, 117, 255, 0.35); /* Lighter purple bubble */
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero {
    text-align: center;
    padding: 4rem 1rem 5rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2; /* Ensures text stays above the bubbles */
}


h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.launch-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-brand-600);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Update primary hero button for contrast */
.hero .btn-large {
    background-color: white;
    color: var(--color-brand-600);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
}

.hero .btn-large:hover {
    background-color: var(--color-brand-50);
}

/* --- App Preview Section --- */
.preview-section {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; 
}

.preview-text {
    text-align: center;
    max-width: 600px;
}

.preview-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.preview-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.dashboard-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-brand-100);
    transition: transform var(--default-transition-duration) var(--default-transition-timing-function);
}

.dashboard-img:hover {
    transform: translateY(-5px);
}

/* --- Footer --- */
footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    width: 100%;
}

/* --- Modal Styles --- */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6); 
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--default-transition-duration);
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* --- Form Styles --- */
.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-brand-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--default-transition-duration), box-shadow var(--default-transition-duration);
}

.input-group input:focus {
    border-color: var(--color-brand-500);
    box-shadow: 0 0 0 3px var(--color-brand-100);
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    .hero-logo {
        height: 160px;
    }
}