
/* =========================================
   AI PROMPT LAB — DESIGN SYSTEM
   ========================================= */

:root {
    --bg-primary: #090b18;
    --bg-secondary: #101329;
    --bg-card: #151a33;
    --text-primary: #f7f8ff;
    --text-secondary: #a7aecb;
    --accent-purple: #8b5cf6;
    --accent-blue: #4f8cff;
    --border-color: rgba(255, 255, 255, 0.10);
    --gradient-main: linear-gradient(120deg, #8b5cf6, #4f8cff);
    --container-width: 1200px;
    --radius-card: 18px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Announcement Bar */

.announcement-bar {
    position: relative;
    padding: 10px 40px;
    text-align: center;
    color: white;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(90deg, #673de6, #3478e5);
}

/* Header */

.main-header {
    min-height: 76px;
    padding: 14px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(9, 11, 24, 0.94);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-symbol {
    color: #a78bfa;
    font-size: 28px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation a,
.login-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition);
}

.main-navigation a:hover,
.login-link:hover {
    color: white;
}

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

.login-link {
    padding: 10px 17px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

/* Mobile Menu */

.mobile-menu-toggle {
    display: none;
    padding: 8px 12px;
    color: white;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9px;
}

/* Hero Section */

.hero-section {
    min-height: 590px;
    padding: 110px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 450px;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse,
        rgba(112, 74, 245, 0.28),
        rgba(55, 103, 232, 0.12),
        transparent 70%
    );
    filter: blur(35px);
    z-index: -1;
}

.hero-label {
    padding: 8px 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.10);
    color: #c4b5fd;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.hero-section h1 {
    max-width: 850px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.12;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero-section h1 span {
    display: block;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-section > p {
    max-width: 650px;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 35px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 23px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition);
}

.primary-button {
    color: white;
    background: var(--gradient-main);
    box-shadow: 0 8px 30px rgba(107, 85, 237, 0.25);
}

.secondary-button {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
}

/* Shared Sections */

.categories-section,
.prompts-section,
.about-section {
    width: min(100% - 40px, var(--container-width));
    margin: 0 auto;
    padding: 85px 0;
}

.categories-section h2,
.prompts-section h2,
.about-section h2 {
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.categories-section > p,
.prompts-section > p,
.about-section > p {
    color: var(--text-secondary);
    max-width: 650px;
}

/* Category Cards */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.category-card {
    min-height: 175px;
    padding: 26px;
    background: linear-gradient(
        145deg,
        rgba(30, 37, 72, 0.95),
        rgba(17, 21, 43, 0.95)
    );
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    transition: transform var(--transition), border-color var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.65);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Prompt Section */

.prompts-section {
    border-top: 1px solid var(--border-color);
}

#prompt-container {
    margin-top: 25px;
    padding: 35px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    color: var(--text-secondary);
}

/* About Section */

.about-section {
    border-top: 1px solid var(--border-color);
}

/* Footer */

.main-footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

/* Mobile Responsive Design */

@media (max-width: 850px) {
    .main-header {
        flex-wrap: wrap;
        padding: 14px 5%;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 18px 0;
    }

    .main-header.menu-open .main-navigation {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        min-height: 520px;
    }
}

@media (max-width: 560px) {
    .announcement-bar {
        font-size: 11px;
        padding: 10px 12px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-section {
        min-height: 500px;
        padding: 85px 20px;
    }

    .hero-section h1 {
        letter-spacing: -1.3px;
    }

    .hero-section > p {
        font-size: 15px;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .categories-section,
    .prompts-section,
    .about-section {
        padding: 60px 0;
    }

    .category-card {
        min-height: 145px;
    }
  }
