/* Gryfo Website Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Nothing+You+Could+Do&display=swap');

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

:root {
    --primary: #0358ea;
    --primary-dark: #0a3a9a;
    --secondary: #1e7ede;
    --dark: #062055;
    --gray: #64748b;
    --light-gray: #e3e3e3;
    --white: #ffffff;
    
    /* Tipografia Gryfo */
    --font-title: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Nothing You Could Do', cursive;
}

body {
    font-family: var(--font-body);
    font-weight: 300;  /* Inter Clara */
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Títulos - Inter Preto (900) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 900;  /* Inter Preto */
    line-height: 1.2;
}

/* Textos complementares - Inter Clara (300) */
p, li, a {
    font-family: var(--font-body);
    font-weight: 300;  /* Inter Clara */
}

/* Textos com ênfase - Inter Medium/Bold */
strong, b {
    font-weight: 700;
}

/* Detalhes e anotações - Nothing You Could Do */
.annotation,
.handwritten,
.detail-text {
    font-family: var(--font-accent);
    font-weight: 400;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;  /* Inter Preto */
    color: var(--primary);
    display: flex;
    align-items: center;
    height: 50px;
    font-family: var(--font-title);
}

.logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}

.logo img:hover {
    opacity: 0.8;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;  /* Inter Medium */
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    position: relative;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay escuro sobre o vídeo para melhorar legibilidade */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.85) 0%, 
        rgba(14, 165, 233, 0.85) 100%);
    z-index: 1;
}

/* Conteúdo do Hero sobre o vídeo */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
    font-weight: 900;  /* Inter Preto */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s 0.2s both;
    font-weight: 300;  /* Inter Clara */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    animation: fadeInUp 0.8s 0.4s both;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;  /* Inter Preto */
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;  /* Inter Clara */
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 900;  /* Inter Preto */
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 300;  /* Inter Clara */
}

/* Two Column Section */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.column-content h2,
.column-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;  /* Inter Preto */
}

/* Inline icon for titles */
.inline-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.column-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-weight: 300;  /* Inter Clara */
}

.column-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.column-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray);
    font-weight: 300;  /* Inter Clara */
}

.column-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.column-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.column-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Code Integration Section */
.code-section {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0;
}

.code-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.code-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.code-tab:hover {
    background: rgba(255,255,255,0.2);
}

.code-tab.active {
    background: var(--primary);
}

.code-content {
    display: none;
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
}

.code-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.code-content pre {
    margin: 0;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4;
}

/* Syntax Highlighting - VS Code Dark+ Theme */
.code-comment { color: #6a9955; font-style: italic; }
.code-keyword { color: #569cd6; }
.code-function { color: #dcdcaa; }
.code-string { color: #ce9178; }
.code-number { color: #b5cea8; }
.code-property { color: #9cdcfe; }
.code-constant { color: #4fc1ff; }
.code-operator { color: #d4d4d4; }
.code-punctuation { color: #d4d4d4; }
.code-variable { color: #9cdcfe; }
.code-class { color: #4ec9b0; }
.code-method { color: #dcdcaa; }

/* Benefits Section */
.benefits {
    background: var(--light-gray);
    padding: 4rem 0;
}

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

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 900;  /* Inter Preto */
}

.benefit-item p {
    font-weight: 300;  /* Inter Clara */
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 900;  /* Inter Preto */
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-weight: 300;  /* Inter Clara */
}

/* Clients Section */
.clients-section {
    background: var(--light-gray);
    padding: 4rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

.client-logo:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s;
    filter: grayscale(100%);
}

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

.client-placeholder {
    color: var(--primary);
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.5;
    font-weight: 300;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: scale(1.03);
}

.solution-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.solution-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;  /* Inter Preto */
}

.solution-header p {
    font-weight: 300;  /* Inter Clara */
}

.solution-body {
    padding: 2rem;
}

.solution-body p {
    font-weight: 300;  /* Inter Clara */
}

.solution-body ul {
    list-style: none;
    margin-top: 1rem;
}

.solution-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.solution-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 900;  /* Inter Preto */
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;  /* Inter Clara */
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;  /* Inter SemiBold */
    transition: all 0.3s;
    border: 2px solid var(--white);
    font-family: var(--font-title);
}

.btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

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

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

.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 h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 900;  /* Inter Preto */
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 300;  /* Inter Clara */
}

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

/* Footer Partners & Certified */
.footer-partners,
.footer-certified {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Media Section */
.media-section {
    padding: 4rem 2rem;
}

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

.media-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.media-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 0.75rem;
}

.media-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
    transition: all 0.3s;
}

.media-card:hover .media-icon img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.media-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 900;
    font-size: 1.1rem;
}

.media-card p {
    color: var(--gray);
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 300;
}

.media-date {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    opacity: 0.7;
    font-weight: 300;
}

/* Blog Section */
.blog-section {
    background: var(--light-gray);
    padding: 4rem 0;
}

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

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-weight: 300;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.blog-date {
    font-weight: 300;
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-weight: 300;
}

/* Footer Partners & Certified */
.footer-partners,
.footer-certified {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

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

.partner-logo,
.certified-logo {
    width: 100%;
    max-width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.partner-logo:hover,
.certified-logo:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.partner-logo img,
.certified-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s;
}

.partner-logo:hover img,
.certified-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.partner-placeholder,
.certified-placeholder {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 300;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        min-height: 500px;
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .two-column-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-column-section .column-image {
        order: -1;
    }
}