:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --text-color: #333333;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --secondary-bg: #E9ECEF;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white);
    /* border-bottom: 1px solid #eee; Remove if you want pure clean look */
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2C3E50;
    text-decoration: none;
}

.logo-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 2rem;
    /* Make the plus bigger */
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropdown-toggle:hover {
    background-color: #f1f3f5;
}

.profile-icon {
    width: 32px;
    height: 32px;
    color: #95a5a6;
}

.user-email {
    display: none;
    /* Hide on small screens */
}

@media (min-width: 768px) {
    .user-email {
        display: inline;
    }
}

.dropdown-menu {
    display: block; /* changed from none to allow transition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    transition-delay: 0.3s; /* Keep open for a bit after mouse leaves */
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #eee;
    z-index: 1000;
    /* Ensure high z-index */
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Show immediately */
}

/* Bridge the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 0.5rem;
}

.dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.1s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

.text-danger {
    color: #e74c3c;
}

.nav-toggle {
    display: none;
    /* Hidden on desktop if we had a menu, but image shows hamburger */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #7F8C8D;
}

/* In the image, there is a hamburger menu on desktop too, possibly? 
   Or it's mobile view in a frame. 
   I'll implement a simple one. */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #7F8C8D;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* How it works Section */
.how-it-works {
    background-color: #F8FBFE;
    /* Very light blueish gray from image */
    padding: 4rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2C3E50;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: transparent;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 1rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #EBF5FF;
    /* Light blue circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.icon-circle svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2C3E50;
}

.step-card p {
    color: #7F8C8D;
    font-size: 1rem;
    line-height: 1.5;
}

/* Accessibility Focus */
.btn:focus,
a:focus,
button:focus {
    outline: 3px solid #F39C12;
    /* High contrast focus */
    outline-offset: 2px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Auth Forms */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.auth-container h2 {
    text-align: center;
    color: #2C3E50;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    text-align: center;
}