/*

RESET RULES

- removes margins on headings
- removes padding on body
- removes default font inconsistencies

*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Page variables */
:root {
    --bg: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;

    --card-bg: #ffffff;
    --card-border: #e5e7eb;

    --button-bg: #111827;
    --button-text: #ffffff;

    --popup-bg: #ffffff;
    --popup-text: #4b5563;

    --button-primary: #3b82f6;
    --button-primary-hover: #2563eb;

    --button-bg-hover: #1f2937;


} 

/* Body */
body {
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
}


/* Dark mode overrides */
.dark {
    --bg: #1a1c23;          /* dark but not black */
    --text: #f3f4f6;        /* readable light gray */
    --text-muted: #cbd5e1;

    --card-bg: #242731;
    --card-border: #3b3f4a;

    --button-bg: #2d3340;
    --button-text: #f3f4f6;

    --popup-bg: #242731;
    --popup-text: #e5e7eb;

    --button-bg-hover: #3a4150;
}





/* Hero section */
#hero {
    display: flex;
    /* "flex" turns
    - horizontal layout by default 
    - left/right in columns
    - children align in a row */
    gap: 40px;
    /* creates "breathing" space between
    - marketing side
    - tool side */
    align-items: flex-start;
    /* ensures both sides are vertically
    aligned in the middle */
    min-height: 70vh;
    /* makes hero feel like 
    a real landing page section 
    and gives "app landing" presence
    (space from the top) */
    padding: 60px 0;
    /* gives breathing space top/bottom 
    and makes it feel like a real landing section */
    justify-content: space-between;
    /* pushes left and right aparrt
    - creates split layout 
    - avoids clumped center */
    margin-top: 40px;
}
/* container setting up (from the sides) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
/* left-side global */
.left-side {
    max-width: 520px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* h1 styling */
.left-side h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}
/* paragraph styling */
.left-side p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* right side CARD UI*/
.right-side {
    background: var(--card-bg);
    /* gives the "app window" feeling */
    padding: 24px;
    /* creating internal breathing space*/
    border-radius: 16px;
    /* makes it feel like 
    dashboard style */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* gives shadow and separates 
    SaaS product UI
    creating a tool and not just a page */
    width: 100%;
    max-width: 420px;
}

.right-side h2 {
    margin-bottom: 12px;
}
/* adding the trial section to lock my creation */
#trial-counter {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.right-side textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
}

.right-side button {
    margin-bottom: 16px;
}

/* input */
#product-gen {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text);
    resize: none;
    outline: none;
    font-size: 14px;
}
/* shows active tool input
and improves usability */
#product-gen:focus {
    border: 1px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* generate button */
#generate {
    width: 100%;
    margin-top: 10px;
    background: var(--button-primary);
    color: var(--button-text);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
/* adding the hover effect on the generate button */ 
#generate:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}

/* output box */
#output {
    margin-top: 16px;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}

/* output title */
#output-title {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}

/* output text */
#output-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* creating strong contrast
rounded edges 
clear click */
#begin {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

#begin:hover {
    background: var(--button-bg-hover);
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.result-card h4 {
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
}

.result-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* adding the "copy" button on each result */
.copy-btn {
    margin-top: 8px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 12px;
}
/* implementing the hover effect on the copy button */
.copy-btn:hover {
    background: var(--button-bg-hover);
}

/* 
PREMIUM POPUP OVERLAY
*/

#premium-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999;
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Popup card */
.popup-card {
    background: var(--popup-bg);
    padding: 32px;
    border-radius: 18px;
    max-width: 420px;
    width: 90%;

    text-align: center;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Popup title */
.popup-card h2 {
    margin-bottom: 14px;
    color: var(--text);
}

/* Popup text */
.popup-card p {
    color: var(--popup-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-btn {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.popup-btn:hover {
    background: var(--button-bg-hover);
}

/* Popup button */
#close-popup {
    background: var(--button-bg);
    color: var(--button-text);

    border: none;
    padding: 10px 18px;

    border-radius: 10px;
    cursor: pointer;
}

#close-popup:hover {
    background: var(--button-bg-hover);
}

/* Upgrade button */
#upgrade-demo {
    background: var(--button-bg);
    color: var(--button-text);

    border: none;
    padding: 10px 18px;

    border-radius: 10px;
    cursor: pointer;

    margin-left: 10px; /* spacing from the close button */
}

#upgrade-demo:hover {
    background: var(--button-bg-hover);
}


/* Dark Mode Toggle Button */
#theme-toggle {
    background: var(--card-bg);
    color: var(--text);

    padding: 10px 18px;
    border: 1px solid var(--card-border);
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* FEATURES SECTION */
#features {
    margin-top: 80px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Hover effect */
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* DEMOS SECTION */
#demos {
    margin-top: 80px;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.demo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.demo-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.demo-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    white-space: pre-line; /* keeps line breaks */
}

/* Hover effect */
.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* TESTIMONIALS SECTION */
#testimonials {
    margin-top: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    white-space: pre-line;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info strong {
    color: var(--text);
    font-size: 15px;
}

.author-info span {
    color: var(--text-muted);
    font-size: 13px;
}

/* Hover effect */
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* PRICING SECTION */
#pricing {
    margin-top: 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid #3b82f6;
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #3b82f6;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
}

.price-sub {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

/* Buttons */
.pricing-btn {
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: var(--button-bg);
    color: var(--button-text);
    transition: all 0.25s ease;
}

.pricing-btn.primary {
    background: #3b82f6;
    color: white;
}

.pricing-btn:hover {
    transform: translateY(-2px);
    background: var(--button-bg-hover);
}

.pricing-btn.primary:hover {
    background: #2563eb;
}

/* FOOTER */
#footer {
    margin-top: 100px;
    padding: 50px 0 30px;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand h3 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 6px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-social a {
    font-size: 20px;
    margin-right: 12px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* hide about and contact section by default */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}



/* Hover */
#theme-toggle:hover {
    background: var(--card-border);
    border-color: var(--card-border);
    transform: translateY(-1px);
}

/* Active */
#theme-toggle:active {
    transform: translateY(0px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}