:root {
    /* Color Palette - HSL for better control */
    --bg-dark: 210, 15%, 4%;
    --bg-card: 210, 15%, 8%;
    --accent-green: 155, 100%, 50%;
    --accent-blue: 195, 100%, 50%;
    --text-primary: 210, 20%, 98%;
    --text-secondary: 210, 10%, 70%;
    --glass-bg: hsla(210, 15%, 12%, 0.4);
    --glass-border: hsla(0, 0%, 100%, 0.1);
    --neon-glow: 0 0 15px hsla(155, 100%, 50%, 0.3);
    
    /* Layout Constants */
    --header-height: 80px;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-primary));
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-3d {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-3d:hover {
    transform: perspective(1000px) rotateX(0) rotateY(0) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--neon-glow);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 5px hsla(155, 100%, 50%, 0.2); }
    50% { box-shadow: 0 0 20px hsla(155, 100%, 50%, 0.5); }
    100% { box-shadow: 0 0 5px hsla(155, 100%, 50%, 0.2); }
}

/* Layout & Base */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: hsla(var(--bg-dark), 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, hsl(var(--accent-green)), hsl(var(--accent-blue)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--accent-green));
    transition: width 0.3s;
}

.nav-links a:hover {
    color: hsl(var(--text-primary));
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, hsl(var(--accent-green)), hsl(var(--accent-blue)));
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(155, 100%, 50%, 0.4);
}

/* Mobile Toggle & Menu Header */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-toggle:hover {
    color: hsl(var(--accent-green));
}

.mobile-menu {
    display: none; /* Controlled via JS and Media Queries */
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: hsla(var(--bg-dark), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 10000;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu .nav-links {
    flex-direction: column;
    width: 100%;
}

.mobile-menu .cta-btn {
    width: 100%;
}

/* AdSense Area Styling */
.ads-container {
    padding: 20px 0;
    margin-bottom: 20px;
    text-align: center;
}

.ads-placeholder {
    height: 90px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1; /* Lower than header */
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(155, 100%, 50%, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, hsl(var(--text-secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: hsl(var(--text-secondary));
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Email Box */
.email-generator {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.email-display {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid hsla(var(--accent-green), 0.2);
    align-items: center;
    margin-bottom: 20px;
}

.email-address {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    color: hsl(var(--accent-green));
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tool-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn:hover {
    background: hsla(0, 0%, 100%, 0.1);
    border-color: hsl(var(--accent-blue));
}

/* Features */
.features {
    padding: 80px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: hsl(var(--accent-green));
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
}

/* Inbox Simulation */
.inbox-container {
    margin-top: 60px;
    padding: 30px;
    text-align: left;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.inbox-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

/* Responsive Navigation Breakpoints */
@media (max-width: 1024px) {
    .nav-menu { display: none !important; }
    .desktop-cta { display: none !important; }
    .mobile-toggle { display: block !important; }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }

    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    
    .header-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .logo { font-size: 1.2rem; }
    .email-generator { padding: 20px; }
    .email-display { flex-direction: column; }
    .tool-btn { width: 100%; justify-content: center; }
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--bg-dark));
}

::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(var(--accent-green), 0.5);
}
