/* 
 * DGWeb SaaS - Elite Landing Page
 * Obsidian & Amber Gold Aesthetic
 */

:root {
    --bg-dark: #050505;
    --surface: #0a0a0b;
    --surface-hover: #121214;
    --primary: #d4af37;
    /* Amber Gold */
    --primary-hover: #f1c40f;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(212, 175, 55, 0.3);
    --border-dim: rgba(255, 255, 255, 0.05);
    --glass: rgba(10, 10, 11, 0.7);
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --glow: 0 0 20px rgba(212, 175, 55, 0.15);

    --container: 1200px;
    --red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #b8860b 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Features Grid */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 30px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.card p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Showcase Section */
.showcase {
    padding: 100px 0;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.showcase-card {
    background: var(--surface);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.showcase-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.showcase-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.1);
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text);
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.showcase-card p {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
    margin-bottom: 5px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-dim);
    padding: 80px 0 40px;
    background: #020202;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--primary);
}

.bottom-bar {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-dim);
    color: var(--text-dim);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .logo img {
        height: 32px;
    }

    .logo span {
        font-size: 18px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }

    .footer-col.footer-logo {
        grid-column: span 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .header-btn {
        width: auto;
        padding: 5px 12px;
        font-size: 10px;
        height: min-content;
        white-space: nowrap;
    }

    .nav-wrapper {
        gap: 10px;
    }

    .nav-links {
        display: none;
    }

    .btn {
        width: 100%;
    }

    .hero .container>div {
        flex-direction: column;
    }
}