:root {
    --primary: #4361EE;
    --primary-light: #4895EF;
    --primary-dark: #3A0CA3;
    --accent: #F72585;
    --accent-light: #FF758F;
    --success: #4CC9F0;
    --dark: #0D1B2A;
    --light: #F8F9FA;
    --gray: #4A5568;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(135deg, #4361EE 0%, #4CC9F0 100%);
    --gradient-accent: linear-gradient(135deg, #F72585 0%, #7209B7 100%);
    --gradient-mesh: radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
    --gradient-dark: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
}

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

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.logo::before {
    content: "{ ";
    color: var(--accent);
    margin-right: 2px;
}

.logo::after {
    content: " }";
    color: var(--accent);
    margin-left: 2px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-cta {
    margin-top: 24px;
}

.button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    text-align: center;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.button:hover::before {
    opacity: 1;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(247, 37, 133, 0.4);
}

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-mesh);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-mesh);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;  /* Changed from 1fr 1fr to give more space to image */
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.email-form {
    position: relative;
    margin-bottom: 32px;
    width: 100%;
}

.email-input-group {
    display: flex;
    background: white;
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

.email-input-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
    z-index: -1;
}

.email-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
    width: 100%;
}

.metrics {
    display: flex;
    gap: 40px;
    justify-content: center; /* Center by default (for mobile) */
}

@media (min-width: 768px) {
    .metrics {
        padding-left: 20px;
        justify-content: flex-start; /* Left align on desktop */
    }
}

.metric {
    display: flex;
    flex-direction: column;
    position: relative;
}

.metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius);
}

.metric-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 16px;
    color: var (--gray);
}

.hero-visual {
    position: relative;
    margin: -40px 0;  /* Added negative margin to make image larger */
}

.hero-image {
    width: 105%;  /* Changed from 100% to slightly overflow container */
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.1));
    border-radius: var(--radius);
    margin-left: 5%;  /* Offset the overflow */
}

.dots-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--primary-light) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    position: relative;
    background: var(--light);
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.8;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: -1;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(67, 97, 238, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    top: 0;
    left: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

.feature h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.feature p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Templates Section */
.templates {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.templates::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--gradient-mesh);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.templates-container {
    position: relative;
    z-index: 1;
}

.templates-header {
    text-align: center;
    margin-bottom: 60px;
}

.templates-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.templates-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.template {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    position: relative;
}

.template-header {
    height: 60%;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.template-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.template-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.template-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.template-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-line {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    width: 100%;
}

.template-line.sm {
    width: 70%;
}

.template-tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.template:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* AI Score Section */
.ai-score {
    padding: 80px 0;
    background: var(--gradient-mesh);
    position: relative;
}

.ai-score-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-score-content {
    position: relative;
    z-index: 1;
}

.ai-score-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.ai-score-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.ai-score-visual {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 20px;
    position: relative;
}

.ai-score-visual::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: var(--gradient-primary);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.2;
}

.score-overall {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.score-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-right: 15px;
    position: relative;
    white-space: nowrap;
}

.score-value::after {
    content: "ATS Score";
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
}

.score-bar {
    flex: 1;
    height: 10px;
    background: #E2E8F0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.score-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 72%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 5px;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.score-item {
    display: flex;
    flex-direction: column;
}

.score-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.score-item-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.score-item-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.score-item-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.score-item-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 3px;
}

.progress-72 {
    width: 72%;
}

.progress-80 {
    width: 80%;
}

.progress-76 {
    width: 76%;
}

.progress-60 {
    width: 60%;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(-45deg, var(--primary), var(--primary-dark), var(--accent));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-form {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.cta-input {
    flex: 1;
    background: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    outline: none;
    width: 100%;
}

.cta-button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    opacity: 0.9;
}

.subscribers-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Responsive media queries for CTA section */
@media (max-width: 768px) {
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-input {
        margin-bottom: 10px;
    }
    
    .cta-button {
        margin-left: 0;
        padding: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 24px;
    }
    
    .cta p {
        font-size: 15px;
    }
}

/* Footer */
footer {
    padding: 60px 0 24px;
    background: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo::before {
    content: "{ ";
    color: var(--accent);
    margin-right: 2px;
}

.footer-logo::after {
    content: " }";
    color: var(--accent);
    margin-left: 2px;
}

.footer-about {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

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

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: "→";
    margin-right: 8px;
    color: var(--primary);
    font-size: 12px;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 5%;
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .ai-score-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .section-title h2,
    .templates-header h2,
    .ai-score-content h2 {
        font-size: 32px;
    }
    
    .cta h2 {
        font-size: 36px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    header .button {
        display: none;
    }
    
    .hero {
        padding: 40px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .metrics {
        flex-direction: column;
        gap: 24px;
    }
    
    .metric-value {
        font-size: 32px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .templates {
        padding: 60px 0;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .ai-score {
        padding: 60px 0;
    }
    
    .ai-score-content p {
        font-size: 16px;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-input {
        margin-bottom: 10px;
    }
    
    .cta-button {
        margin-left: 0;
        padding: 16px;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .section-title,
    .templates-header {
        margin-bottom: 40px;
    }
    
    .section-title h2,
    .templates-header h2,
    .ai-score-content h2 {
        font-size: 28px;
    }
    
    .section-title p,
    .templates-header p {
        font-size: 16px;
    }
    
    .feature {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .feature h3 {
        font-size: 18px;
    }
    
    .feature p {
        font-size: 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;  /* Change to single column */
        gap: 40px;
    }
    
    .hero-visual {
        display: none;  /* Hide hero image */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .email-input-group {
        flex-direction: column;
    }
    
    .email-input {
        margin-bottom: 8px;
    }
    
    .email-form .button {
        width: 100%;
        padding: 12px;
    }
    
    .metric-value {
        font-size: 28px;
    }
    
    .metric-label {
        font-size: 14px;
    }
    
    .section-title h2,
    .templates-header h2,
    .ai-score-content h2 {
        font-size: 24px;
    }
    
    .cta h2 {
        font-size: 24px;
    }
    
    .cta p {
        font-size: 15px;
    }
    
    .ai-score-visual {
        padding: 20px 15px;
    }
    
    .score-value {
        font-size: 30px;
    }
    
    .score-value::after {
        font-size: 10px;
        bottom: -15px;
    }
    
    .footer-social {
        flex-wrap: wrap;
    }
    
    .template-body {
        padding: 15px;
    }
    
    .template-title {
        font-size: 14px;
    }
    
    .template-tag {
        font-size: 10px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo {
        font-size: 20px;
    }
}

@media (min-width: 769px) {
    .template:nth-child(4) {
        display: none;
    }
}

/* Error Popup Styles */
.error-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.error-popup.slide-out {
    animation: slideOut 0.3s ease-in forwards;
}

.error-popup-content {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #F44336;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.error-popup-message {
    color: var(--dark);
    font-weight: 500;
}

.error-popup-close {
    background: #F44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    align-self: flex-end;
    transition: var(--transition);
}

.error-popup-close:hover {
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}