/* Modern Design System for Apphive */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Colors - Will be overridden by theme */
    --primary: #f97316;
    /* Orange 500 */
    --primary-dark: #ea580c;
    /* Orange 600 */
    --secondary: #3b82f6;
    /* Blue 500 - Complementary */
    --accent: #8b5cf6;
    /* Violet 500 */

    --bg-body: #ffffff;
    --bg-card: #fff7ed;
    /* Very light orange tint */
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-main: #1c1917;
    /* Stone 900 */
    --text-muted: #57534e;
    /* Stone 500 */

    --border-color: rgba(249, 115, 22, 0.1);
    --shadow-color: rgba(249, 115, 22, 0.1);

    --gradient-main: linear-gradient(135deg, var(--primary) 0%, #fb923c 100%);
    --gradient-text: linear-gradient(to right, #f97316, #ea580c);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #fb923c;
    /* Orange 400 */
    --primary-dark: #f97316;
    /* Orange 500 */
    --secondary: #60a5fa;
    /* Blue 400 */
    --accent: #a78bfa;
    /* Violet 400 */

    --bg-body: #0c0a09;
    /* Stone 950 */
    --bg-card: #1c1917;
    /* Stone 900 */
    --bg-glass: rgba(28, 25, 23, 0.8);

    --text-main: #fafaf9;
    /* Stone 50 */
    --text-muted: #a8a29e;
    /* Stone 400 */

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);

    --gradient-text: linear-gradient(to right, #fb923c, #fdba74);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Trusted By Section */
.trusted-by {
    padding: 40px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.trusted-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.client-logo {
    height: 40px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-fast);
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(45, 212, 191, 0.1);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Features/Services */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
}

/* Stats/Social Proof */
.stats {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h4 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Error Page */
.error-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
}

.error-content {
    max-width: 600px;
    padding: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.error-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.error-description {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    margin-left: 20px;
}

.theme-toggle:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-header p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.modal-actions {
    display: grid;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 24px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    gap: 16px;
    cursor: pointer;
    width: 100%;
}

.action-btn i {
    font-size: 1.4rem;
    color: var(--primary);
    width: 32px;
}

.action-btn:hover {
    border-color: var(--primary);
    background: rgba(45, 212, 191, 0.05);
    transform: translateX(4px);
}

.close-modal {
    margin-top: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.close-modal:hover {
    color: var(--text-main);
}