/* --- General Styles & Variables --- */
:root {
    --color-dark: #111827;
    --color-dark-secondary: #1f2937;
    --color-light: #f3f4f6;
    --color-accent: #6b7280; /* General accent color */
    --color-text: #9ca3af; /* Secondary text color */
    --color-border: #374151; /* Border color for cards and sections */
    --color-link-hover: #4f9cf9; /* Specific link hover color */

    /* New colors for CTA buttons */
    --color-cta-primary: #8b5cf6; /* A vibrant purple */
    --color-cta-primary-hover: #a78bfa; /* Lighter purple on hover */
    --color-cta-text: #ffffff; /* White text on buttons */
    --color-cta-text-hover: #ffffff; /* White text on button hover */

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-light);
    overflow-x: hidden;
    line-height: 1.7;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Header & Navigation --- */
header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
nav.container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 30px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--color-light); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }
.cta-button-nav {
    background-color: var(--color-cta-primary); /* Use new primary CTA color */
    color: var(--color-cta-text); /* Use new CTA text color */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-button-nav:hover {
    background-color: var(--color-cta-primary-hover); /* Use new CTA hover color */
    color: var(--color-cta-text-hover); /* Use new CTA text hover color */
}
.mobile-menu-button { display: none; background: none; border: none; cursor: pointer; color: var(--color-light); z-index: 1001; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(ellipse at center, rgba(107, 114, 128, 0.07) 0%, transparent 60%);
    position: relative;
}
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 800px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.hero p { font-size: 1.2rem; color: var(--color-text); max-width: 600px; margin: 1.5rem auto 0; }
.scroll-down { position: absolute; bottom: 30px; left: 50%; color: var(--color-text); font-size: 0.8rem; text-decoration: none; text-transform: uppercase; letter-spacing: 2px; animation: bounce 2.5s infinite; }

/* --- Content Sections --- */
.content-section { padding: 100px 0; border-bottom: 1px solid var(--color-border); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--color-light); }
.section-header p { font-size: 1.1rem; line-height: 1.8; color: var(--color-text); max-width: 700px; margin: 0 auto; }

/* --- Grid & Cards --- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.why-card { background: var(--color-dark-secondary); padding: 30px; border-radius: 12px; border: 1px solid var(--color-border); }
.why-card h3 { font-size: 1.2rem; color: var(--color-accent); margin-bottom: 1rem; }
.why-card p { color: var(--color-text); font-size: 1rem; }

/* --- Generator --- */
.generator-box {
    background: var(--color-dark-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.generator-box h2 { font-size: 2.5rem; color: var(--color-light); margin-bottom: 1rem; }
.generator-box p { color: var(--color-text); margin-bottom: 2rem; }
.input-group { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
#businessDescription {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    background: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-main);
}
#businessDescription::placeholder { color: var(--color-accent); }
#businessDescription:focus { outline: none; border-color: var(--color-accent); }

/* --- Offer / CTA Section --- */
.offer-section { background-color: #000000; padding: 100px 0; text-align: center; }
.offer-box { background: var(--color-dark); border: 1px solid var(--color-border); border-radius: 20px; padding: 50px; max-width: 800px; margin: 0 auto; }
.offer-box h2 { font-size: 2.5rem; color: var(--color-light); margin-bottom: 1rem; }
.offer-box p { color: var(--color-text); margin-bottom: 2rem; }
.cta-button {
    display: inline-block;
    background-color: var(--color-cta-primary); /* Use new primary CTA color */
    color: var(--color-cta-text); /* Use new CTA text color */
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3); /* Adjusted shadow to match button color */
    background-color: var(--color-cta-primary-hover); /* Use new CTA hover color */
    color: var(--color-cta-text-hover); /* Use new CTA text hover color */
}
.secure-note { font-size: 0.9rem; color: var(--color-accent); margin-top: 1.5rem; }

/* --- Loading Spinner --- */
.loading { display: none; text-align: center; margin: 2rem 0; }
.loading.show { display: block; }
.spinner { border: 3px solid rgba(255, 255, 255, 0.2); border-top: 3px solid #ffffff; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 0 auto 1rem auto; }

/* --- Catalog & Other Pages Fallback --- */
.catalog-container, .page-header { padding-top: 120px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.name-suggestion { background: var(--color-dark-secondary); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: var(--color-light); transition: all 0.3s ease; text-align: center; }
.name-suggestion:hover { border-color: var(--color-accent); transform: translateY(-5px); }
.name-text { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 0.75rem; }
.name-concept { color: var(--color-text); margin-bottom: 1rem; }
.name-price { font-size: 1.2rem; font-weight: 600; color: var(--color-light); }

/* --- Footer --- */
.footer {
    background-color: var(--color-dark-secondary);
    color: var(--color-light);
    position: relative;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px 30px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand h3 { font-size: 28px; font-weight: 800; margin-bottom: 15px; background: linear-gradient(45deg, #4f9cf9, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: var(--color-text); line-height: 1.6; margin-bottom: 25px; font-size: 16px; }
.green-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); padding: 8px 16px; border-radius: 20px; color: #22c55e; font-size: 14px; font-weight: 600; }
.green-badge svg { width: 16px; height: 16px; }
.footer-section h4 { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: var(--color-light); }
.footer-links { list-style: none; padding-left: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-text); text-decoration: none; font-size: 15px; transition: all 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--color-link-hover); transform: translateX(5px); }
.contact-info { list-style: none; padding-left: 0; }
.contact-info li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--color-text); font-size: 15px; }
.contact-info svg { width: 18px; height: 18px; color: var(--color-link-hover); flex-shrink: 0; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--color-dark); border-radius: 50%; color: var(--color-text); transition: all 0.3s ease; }
.social-links a:hover { background: var(--color-link-hover); color: white; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom p { color: var(--color-accent); font-size: 14px; }
.footer-legal { display: flex; gap: 25px; }
.footer-legal a { color: var(--color-accent); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--color-link-hover); }


/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 75px; left: 0; right: 0; background: var(--color-dark); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--color-border); }
    .nav-links.active { display: flex; }
    .mobile-menu-button { display: block; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}