/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #22c55e;
    --dark-green: #16a34a;
    --light-green: #dcfce7;
    --lightest-green: #f0fdf4;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --red: #ef4444;
    --orange: #f97316;
    --blue: #3b82f6;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}

.code-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-input {
    width: 60px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    text-align: center;
}

.join-btn {
    background-color: var(--white);
    color: var(--black);
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover {
    background-color: var(--light-gray);
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.signup-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 20px;
}

.mobile-nav-links li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
}

.mobile-nav-buttons {
    display: flex;
    gap: 10px;
}

/* Hero Section */
.hero {
    padding: 60px 20px 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--lightest-green) 100%);
    width: 100%;
    box-sizing: border-box;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 30px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-green);
}

.conversion-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.conv-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conv-btn img {
    width: 20px;
    height: 20px;
}

.pdf-btn {
    background-color: #1e3a5f;
    color: var(--white);
}

.pdf-btn:hover {
    background-color: #152a45;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
}

.image-btn {
    background-color: var(--red);
    color: var(--white);
}

.image-btn:hover {
    background-color: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.docs-btn {
    background-color: var(--orange);
    color: var(--white);
}

.docs-btn:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* Prompt Box */
.prompt-box {
    background-color: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.1);
}

.prompt-input {
    width: 100%;
    height: 120px;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--gray);
    padding: 10px;
}

.prompt-input::placeholder {
    color: var(--gray);
}

.prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.powered-label {
    font-size: 12px;
    color: var(--gray);
}

.ai-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--black);
}

.attachment-icon {
    width: 24px;
    height: 24px;
    padding: 5px;
    background-color: var(--light-green);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.attachment-icon:hover {
    transform: scale(1.1);
}

.generate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn img {
    width: 18px;
    height: 18px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background-color: var(--white);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    background-color: var(--lightest-green);
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 500px;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spark-icon {
    width: 24px;
    height: 24px;
}

.feature-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

/* Feature Cards */
.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 350px;
    width: 100%;
    box-sizing: border-box;
}

.card-text {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.card-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
}

.card-btn:hover {
    background-color: var(--dark-green);
}

/* Conversion Cards */
.conversion-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    min-width: 80px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mini-card:hover {
    transform: translateY(-5px);
}

.mini-card img {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
}

.mini-card.pdf {
    background-color: var(--red);
}

.mini-card.create {
    background-color: var(--blue);
}

.mini-card.doc {
    background-color: var(--orange);
}

.plus-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Leaderboard */
.leaderboard {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 50px 1fr 50px 50px;
    gap: 8px;
    padding: 10px 0;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-gray);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px 50px;
    gap: 8px;
    padding: 12px 0;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.rank-badge {
    font-size: 24px;
}

.name {
    font-weight: 600;
    color: var(--black);
}

.time, .points {
    color: var(--gray);
    font-size: 14px;
}

.points {
    color: var(--primary-green);
    font-weight: 700;
}

/* Audience Section */
.audience {
    padding: 60px 20px;
    background-color: var(--lightest-green);
    width: 100%;
    box-sizing: border-box;
}

.audience-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background-color: var(--white);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 25px;
    margin-top: 50px;
    align-items: start;
    width: 100%;
}

.testimonial-card {
    background-color: var(--lightest-green);
    padding: 25px;
    border-radius: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.quote-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-green);
    padding: 5px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 3px;
}

.author-info p {
    font-size: 12px;
    color: var(--gray);
}

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-img {
    width: 200px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--light-green) 0%, var(--lightest-green) 100%);
    padding: 60px 20px 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 400px;
}

.footer-cta {
    font-size: 14px;
    color: var(--gray);
}

.footer-cta strong {
    color: var(--black);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-decoration: underline;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray);
}

.footer-bottom strong {
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .feature-item {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
        padding: 25px;
    }

    .feature-content {
        max-width: 100%;
    }

    .feature-title {
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-image {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .mascot-container {
        order: -1;
    }

    .mascot-img {
        width: 150px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .leaderboard {
        min-width: unset;
        width: 100%;
        max-width: 350px;
    }

    .feature-card {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 15px 60px;
    }

    .hero-title {
        font-size: 28px;
        word-wrap: break-word;
    }

    .hero-title br {
        display: none;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-title {
        font-size: 22px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .leaderboard {
        min-width: unset;
        width: 100%;
        padding: 15px;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 45px 45px;
        gap: 5px;
        font-size: 12px;
    }

    .conversion-cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .mini-card {
        min-width: 70px;
        padding: 15px 10px;
        font-size: 11px;
    }

    .mini-card img {
        width: 24px;
        height: 24px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 13px;
    }

    .features {
        padding: 50px 15px;
    }

    .testimonials {
        padding: 50px 15px;
    }

    .audience {
        padding: 40px 15px;
    }

    .prompt-box {
        padding: 15px;
    }

    .prompt-input {
        height: 100px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .top-banner {
        flex-direction: column;
        gap: 10px;
        padding: 12px 10px;
        font-size: 12px;
    }

    .top-banner span {
        text-align: center;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .conversion-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .conv-btn {
        width: 100%;
        max-width: 180px;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .prompt-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .powered-by {
        justify-content: center;
    }

    .generate-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .feature-item {
        padding: 20px 15px;
        margin-bottom: 40px;
    }

    .feature-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .feature-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 35px 1fr 40px 40px;
        gap: 4px;
    }

    .rank-badge {
        font-size: 18px;
    }

    .name {
        font-size: 13px;
    }

    .time, .points {
        font-size: 12px;
    }

    .footer {
        padding: 40px 15px 15px;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-container {
        gap: 30px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .mobile-menu {
        top: 100px;
        padding: 15px;
    }

    .author-img {
        width: 40px;
        height: 40px;
    }

    .author-info h4 {
        font-size: 14px;
    }

    .author-info p {
        font-size: 11px;
    }

    .mascot-img {
        width: 120px;
    }

    .card-text {
        font-size: 13px;
        padding: 12px;
    }

    .card-btn {
        padding: 10px 18px;
        font-size: 13px;
        float: none;
        width: 100%;
        margin-top: 10px;
    }

    .feature-card {
        padding: 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Prevent any element from causing horizontal overflow */
*, *::before, *::after {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}
