/* ============================================================================
   GLOBAL VARIABLES & RESET
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */
body {
    font-family: 'Sora', sans-serif;
    background: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

p {
    color: var(--text-secondary);
}

a {
    transition: color 0.3s;
}

/* ============================================================================
   NAVIGATION BAR
   ============================================================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none;
}

/* ============================================================================
   LAYOUT & CONTAINERS
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* ============================================================================
   CARDS & SECTIONS
   ============================================================================ */
.card,
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card h2,
.form-section h2 {
    margin-bottom: 1.5rem;
    font-size: 18px;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 14px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 1rem;
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
}

.char-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ============================================================================
   SLIDERS
   ============================================================================ */
.slider-group {
    margin-bottom: 1.5rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.slider-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    font-family: 'Space Mono', monospace;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    flex: 1;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 80px;
}

.btn-link {
    background: none;
    color: var(--primary);
    padding: 0;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ============================================================================
   ALERTS & MESSAGES
   ============================================================================ */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #7f1d1d;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* ============================================================================
   OUTPUT & RESULTS
   ============================================================================ */
.output-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: none;
}

.output-section.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.output-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

audio {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* ============================================================================
   LOADING & SPINNER
   ============================================================================ */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ============================================================================
   FEATURES BOX
   ============================================================================ */
.features-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.features-box h3 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 14px;
}

.features-box ul {
    list-style: none;
    padding-left: 0;
}

.features-box li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================================
   HIGHLIGHT BOX
   ============================================================================ */
.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.highlight ul {
    margin-left: 1.5rem;
    list-style: none;
}

.highlight li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.highlight li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================================
   AD SPACES
   ============================================================================ */
.ad-space {
    background: var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin: 2rem 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   UPLOAD AREA
   ============================================================================ */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.upload-icon {
    font-size: 48px;
}

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

/* ============================================================================
   SECTIONS & BACKGROUNDS
   ============================================================================ */
.use-cases {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%);
    color: white;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.use-cases .section-title {
    color: white;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: white;
    font-size: 18px;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-info {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.contact-info-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info-item h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.contact-info-item p {
    opacity: 0.8;
    font-size: 14px;
}

/* ============================================================================
   GRIDS
   ============================================================================ */
.features-grid,
.use-case-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.margin-top {
    margin-top: 2rem;
}

.margin-bottom {
    margin-bottom: 2rem;
}

.padding {
    padding: 2rem;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none;
}

.use-case-card {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        transition: all 0.3s;
    }

    .use-case-card:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-5px);
    }

    .use-case-card h3 {
        font-size: 18px;
        margin-bottom: 0.5rem;
        color: white;
    }

    .use-case-card p {
        font-size: 14px;
        opacity: 0.9;
        color: rgba(255, 255, 255, 0.85);
    }

    .use-case-icon {
        font-size: 32px;
        margin-bottom: 1rem;
    }
    

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid,
    .use-case-grid,
    .grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 28px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .container {
        padding: 2rem 1rem;
    }

    .form-section,
    .card {
        padding: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        min-width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .contact-info {
        padding: 2rem 1rem;
    }
    
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .form-section,
    .card {
        padding: 1rem;
    }
    .button-group {
        gap: 0.5rem;
    }
    .ad-space {
        min-height: 150px;
    }