/* ============================================
   GRAPHLINQ LANDING PAGE - MODERN REDESIGN
   Brand: Gilroy font, Dark/White palette, Purple accent
   ============================================ */

:root {
    --primary-dark: #080810;
    --primary-accent: #a068f8;
    --secondary-accent: #8878a8;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #303030;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: capitalize;
}

.btn-primary {
    background: var(--primary-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(160, 104, 248, 0.3);
}

.btn-primary:hover {
    background: #9d5cff;
    box-shadow: 0 8px 20px rgba(160, 104, 248, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-accent);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo {
    width: 36px;
    height: 36px;
}

.brand-name {
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-accent);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-title {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-ctas .btn {
    min-width: 160px;
}

/* Sections */
.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

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

.section-subtitle {
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

/* Design Adoption Section */
.design-adoption {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    text-align: center;
    padding: 80px 0;
}

.design-adoption h2 {
    max-width: 600px;
    margin: 0 auto;
}

/* Automation Section */
.automation {
    background: var(--bg-white);
}

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

.feature-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.feature-card h3 {
    padding: 1.5rem 1.5rem 0;
}

.feature-card p {
    padding: 0.75rem 1.5rem 1.5rem;
    font-size: 0.95rem;
}

/* Tutorials Section */
.tutorials {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

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

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-icon {
    opacity: 1;
}

/* No-Code Section */
.nocode {
    padding: 80px 0;
    background: var(--bg-white);
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.content-row.reverse {
    direction: rtl;
}

.content-row.reverse > * {
    direction: ltr;
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text p {
    margin-bottom: 2rem;
    max-width: 500px;
}

.content-image {
    width: 100%;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Blocks Section */
.blocks {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

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

.block-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.block-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 0 20px rgba(160, 104, 248, 0.15);
    transform: translateY(-4px);
}

.block-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    opacity: 0.9;
}

.block-card h3 {
    font-size: 0.95rem;
    margin: 0;
}

/* GLQ Liquidity Section */
.glq-liquidity {
    padding: 80px 0;
    background: white;
}

/* Chain Transactions Section */
.chain-txns {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-buttons .btn {
    min-width: 150px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-radius: 16px;
    overflow: hidden;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.testimonial-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.testimonial-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 3rem;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.testimonial-company {
    font-weight: 600;
    color: var(--primary-accent);
}

.partner-logos {
    margin-top: 4rem;
    text-align: center;
}

.partner-logos h3 {
    margin-bottom: 2rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Community Section */
.community {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    text-align: center;
}

.community-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.community-link {
    padding: 12px 24px;
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.community-link:hover {
    background: var(--primary-accent);
    color: white;
    border-color: var(--primary-accent);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .nav-actions .btn {
        width: 100%;
    }

    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

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

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

    .content-row,
    .content-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .content-row.reverse > * {
        direction: ltr;
    }

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

    .testimonial-card.featured {
        grid-template-columns: 1fr;
    }

    .testimonial-image {
        height: 200px;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section {
        padding: 40px 0;
    }

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

    .action-buttons .btn {
        width: 100%;
    }

    .community-links {
        flex-direction: column;
    }

    .community-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 8px;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

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

    .feature-image {
        height: 200px;
    }

    .video-card {
        aspect-ratio: auto;
        min-height: 200px;
    }

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

    .section {
        padding: 30px 0;
    }

    .feature-grid {
        gap: 1.5rem;
    }

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

/* Smooth Transitions & Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Animations (via intersection observer) */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
