/* ====================================
   GRAPHLINQ MODERN LANDING PAGE
   Dark Theme with Purple & Cyan Accents
   ==================================== */

:root {
    --primary: #a068f8;
    --primary-dark: #6a4c93;
    --accent: #00d9ff;
    --accent-dark: #00b8cc;
    --dark-bg: #0a0e27;
    --dark-surface: #12162f;
    --dark-border: #1f2847;
    --dark-text: #ffffff;
    --text-secondary: #a0aec0;
    --glass-bg: rgba(18, 22, 47, 0.7);
    --glass-border: rgba(160, 174, 192, 0.1);

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-text) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

h3 {
    font-size: 1.25rem;
    color: var(--dark-text);
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ====================================
   LAYOUT & CONTAINER
   ==================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ====================================
   NAVIGATION BAR
   ==================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
    font-family: var(--font-display);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--accent);
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--dark-text);
    box-shadow: 0 8px 24px rgba(160, 104, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(160, 104, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 14, 39, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ====================================
   FEATURES GRID
   ==================================== */

.features-grid {
    background: linear-gradient(180deg, rgba(18, 22, 47, 0.5) 0%, transparent 100%);
}

.features-grid h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 217, 255, 0.15);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====================================
   PRODUCTS SECTION
   ==================================== */

.products {
    background: linear-gradient(180deg, transparent 0%, rgba(18, 22, 47, 0.5) 100%);
}

.products h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    animation: fadeInUp 0.8s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.card-gradient-border {
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1.25rem;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover .card-gradient-border {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover .card-content {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ====================================
   DAPP SHOWCASE
   ==================================== */

.dapp-showcase {
    background: linear-gradient(180deg, rgba(18, 22, 47, 0.5) 0%, transparent 100%);
}

.dapp-showcase h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.showcase-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    transition: var(--transition);
    overflow: hidden;
}

.showcase-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 217, 255, 0.15);
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

/* ====================================
   TUTORIALS SECTION
   ==================================== */

.tutorials {
    background: linear-gradient(180deg, transparent 0%, rgba(18, 22, 47, 0.5) 100%);
}

.tutorials h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out backwards;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1.5rem 1rem 1rem;
    font-size: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.video-card:hover h3 {
    transform: translateY(0);
}

/* ====================================
   USE CASES SECTION
   ==================================== */

.use-cases {
    background: linear-gradient(180deg, rgba(18, 22, 47, 0.5) 0%, transparent 100%);
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 1;
    animation: fadeInUp 0.8s ease-out backwards;
}

.use-case-item:nth-child(1) { animation-delay: 0.1s; }
.use-case-item:nth-child(2) { animation-delay: 0.2s; }
.use-case-item:nth-child(3) { animation-delay: 0.3s; }

.use-case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.use-case-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.use-case-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 2rem 1.5rem;
    font-size: 1.15rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.use-case-item:hover h3 {
    transform: translateY(0);
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta-section {
    background: linear-gradient(135deg, rgba(160, 104, 248, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

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

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: linear-gradient(180deg, rgba(18, 22, 47, 0.5) 0%, rgba(10, 14, 39, 0.9) 100%);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ====================================
   ANIMATIONS
   ==================================== */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        width: 100%;
        order: 3;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        margin-top: 80px;
        height: auto;
        padding: 4rem 2rem;
    }

    .hero-content {
        padding: 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .video-card h3 {
        font-size: 0.85rem;
        padding: 1rem 0.75rem 0.75rem;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        margin-top: 70px;
        padding: 2rem 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-image {
        height: 120px;
    }

    .video-card {
        aspect-ratio: 4 / 3;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth scroll behavior for anchor links */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}
