/* Stok AI Page Styles */

body {
    margin: 0;
    background: #121212;
    color: #FAFAFA;
    font-family: 'Ubuntu Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.page-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #121212;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
h1, h2, h3 {
    margin: 0;
}

.font-ubuntu {
    font-family: 'Ubuntu', sans-serif;
}

.font-ubuntu-sans {
    font-family: 'Ubuntu Sans', sans-serif;
}

/* Buttons */
.hero .btn-prim,
.section-cta .btn-prim {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 274px;
    height: 48px;
    background: #8DFFE0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #050505;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero .btn-prim:hover,
.section-cta .btn-prim:hover {
    background: #8DFFE0;
    box-shadow: 0 0 20px rgba(141, 255, 224, 0.6);
    transform: translateY(-2px);
}

.hero .btn-sec,
.section-cta .btn-sec {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 274px;
    height: 48px;
    background: rgba(45, 45, 45, 0.2);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('/assets/stokai-hero.svg') no-repeat center, linear-gradient(180deg, rgba(81, 64, 247, 0.04) 0%, rgba(0, 0, 0, 0) 25%), linear-gradient(180deg, rgba(141, 255, 224, 0.2) 0%, rgba(153, 153, 153, 0) 19.89%);
    background-size: cover;
    z-index: 1;
    padding: 100px 20px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

.hero-title {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    left: auto;
    transform: none;
    top: auto;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(60px, 10vw, 240px);
    line-height: 1.2;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin-bottom: 40px;
}

.hero-subtitle {
    position: relative;
    width: 100%;
    max-width: 1173px;
    height: auto;
    left: auto;
    transform: none;
    top: auto;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 400;
    font-size: clamp(20px, 4vw, 36px);
    line-height: 1.2;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 60px;
}

.hero-cta {
    position: relative;
    left: auto;
    transform: none;
    top: auto;
}

/* Spine Section */
.section-spine {
    position: relative;
    width: 100%;
    min-height: 1000px; /* Reduced from 1200px */
    left: auto;
    top: auto;
    margin-top: 80px;
    overflow: hidden; /* Prevent overflow from network animation */
}

.spine-title {
    position: relative;
    width: 100%;
    top: auto;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.2;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin-bottom: 20px;
}

.spine-subtitle {
    position: relative;
    width: 100%;
    max-width: 900px;
    left: auto;
    transform: none;
    top: auto;
    margin: 0 auto 100px;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px;
    box-sizing: border-box;
}

/* Cards */
.card-radial {
    background: radial-gradient(100% 100% at 50% 0%, #2A2A2A 2.26%, #151515 69.94%);
    border: 2px solid #393939;
    box-shadow: inset 0px 4px 4px 1px rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.card-title {
    font-family: 'Ubuntu Sans';
    font-weight: 700;
    font-size: 32px;
    color: #FFFFFF;
    text-align: center;
}

.card-desc {
    font-family: 'Ubuntu Sans';
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.card-title-huge {
    font-family: 'Ubuntu Sans';
    font-weight: 700;
    font-size: 72px;
    color: #FFFFFF;
    text-align: center;
}

.card-desc-large {
    font-family: 'Ubuntu Sans';
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Keep absolute positioning for the diagram on desktop, but center it */
.spine-diagram-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 950px; /* Reduced from 1000px */
    margin: 0 auto;
}

.card-reunioes {
    position: absolute;
    width: 320px;
    height: 160px;
    left: 50%;
    transform: translateX(-50%);
    top: 0px;
    gap: 24px;
}

.card-spine {
    position: absolute;
    width: 640px;
    height: 256px;
    left: 50%;
    transform: translateX(-50%);
    top: 338px;
    padding: 32px 16px 16px;
    gap: 48px;
}

.card-pesquisa {
    position: absolute;
    width: 320px;
    height: 160px;
    left: 10%;
    top: 774px;
    gap: 24px;
}

.card-outras {
    position: absolute;
    width: 320px;
    height: 160px;
    right: 10%;
    top: 774px;
    gap: 24px;
}

/* Arrows */
.arrow-down {
    position: absolute;
    width: 150px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    background: url('/assets/arrow.svg') no-repeat center;
    background-size: contain;
}

.arrow-reunioes {
    top: 174px;
    height: 150px;
}

.arrow-stokai {
    top: 720px;
    height: 350px;
}

.arrow-diagonal {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 624px;
    background: url('/assets/arrow.svg') no-repeat center;
    background-size: contain;
}

.arrow-left {
    left: 30%;
    transform: rotate(135deg);
}

.arrow-right {
    right: 30%;
    transform: rotate(45deg);
}

/* Stok AI Section */
.section-stokai {
    position: relative;
    width: 100%;
    top: auto;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Prevent overflow from header effects */
}

.stokai-title {
    position: relative;
    width: 100%;
    top: auto;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(60px, 10vw, 128px);
    line-height: 1.2;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin-bottom: 24px;
}

.stokai-subtitle {
    position: relative;
    width: 100%;
    max-width: 1068px;
    left: auto;
    transform: none;
    top: auto;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

.stokai-cards-row {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1568px;
    left: auto;
    transform: none;
    top: auto;
    flex-wrap: wrap;
    padding: 0 20px;
    box-sizing: border-box;
}

.stokai-card {
    width: 416px;
    height: 296px;
    gap: 32px;
    max-width: 100%;
}

/* FAQ Section */
.section-faq {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    margin-top: 100px;
    padding: 50px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

.faq-title {
    position: relative;
    width: 100%;
    top: auto;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.2;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin-bottom: 60px;
}

.faq-grid {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 40px;
    left: auto;
    top: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.faq-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 441px;
    height: 54px;
    background: #2D2D2D;
    border: 1px solid #424242;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color: #E2E2E2;
    cursor: pointer;
    max-width: 100%;
}

/* CTA Section */
.section-cta {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    margin-top: 100px;
    padding: 50px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

.cta-title {
    position: relative;
    width: 100%;
    top: auto;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.2;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin-bottom: 60px;
}

.cta-cards-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1526px;
    left: auto;
    top: auto;
    flex-wrap: wrap;
}

.plan-card {
    width: 480px;
    height: 560px;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
}

.plan-title {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-size: 96px;
    line-height: 110px;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
}

.cta-link {
    position: relative;
    width: 100%;
    top: auto;
    text-align: center;
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #D6D5D5;
    text-decoration: none;
    margin-top: 40px;
    display: block;
}

.section-footer {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    margin-top: 100px;
}

/* Helper classes for text */
.text-white { color: #FFFFFF; }
.text-white-80 { color: rgba(255, 255, 255, 0.8); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.font-med { font-weight: 500; }

/* Diagrama de Rede Animado */
.spine-network {
    position: relative; width: 100%; max-width: 1600px; height: 1000px; margin: 0 auto 0;
}

@keyframes pulse-core {
    0% { box-shadow: 0 0 50px rgba(141, 255, 224, 0.2); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 80px rgba(141, 255, 224, 0.5); transform: translate(-50%, -50%) scale(1.05); }
    100% { box-shadow: 0 0 50px rgba(141, 255, 224, 0.2); transform: translate(-50%, -50%) scale(1); }
}

.node-center {
    position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%);
    width: 360px; height: 360px; background: radial-gradient(circle, #1a2e25 0%, #000 100%);
    border: 2px solid #8DFFE0; border-radius: 50%; box-shadow: 0 0 50px rgba(141, 255, 224, 0.2);
    display: flex; align-items: center; justify-content: center; z-index: 2;
    animation: pulse-core 3s infinite ease-in-out;
}

.node-center .center-title {
    font-weight: 700; color: #FFF; display: block; font-size: 36px;
}
.node-center .center-subtitle {
    font-size: 24px; color: #8DFFE0;
}

.node-orbit {
    position: absolute; width: 120px; height: 120px; background: #111; border: 1px solid #333;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #888;
    z-index: 1; transition: 0.3s;
}

.node-orbit svg {
    width: 32px; height: 32px;
}

.node-orbit span {
    position: absolute;
    font-size: 18px;
    white-space: nowrap;
}

/* Posicionamento estático para demo */
.n1 { top: 10%; left: 50%; transform: translateX(-50%); }
.n2 { top: 60%; left: 10%; transform: translateY(-50%); }
.n3 { top: 60%; right: 10%; transform: translateY(-50%); }

/* Label Positioning */
.n1 span { top: -40px; }
.n2 span { left: -100px; }
.n3 span { right: -80px; }

/* Hover Effects for Input Nodes */
.n1:hover { transform: translateX(-50%) scale(1.15); border-color: #8DFFE0; color: #8DFFE0; box-shadow: 0 0 20px rgba(141, 255, 224, 0.4); cursor: pointer; z-index: 10; }
.n2:hover { transform: translateY(-50%) scale(1.15); border-color: #8DFFE0; color: #8DFFE0; box-shadow: 0 0 20px rgba(141, 255, 224, 0.4); cursor: pointer; z-index: 10; }
.n3:hover { transform: translateY(-50%) scale(1.15); border-color: #8DFFE0; color: #8DFFE0; box-shadow: 0 0 20px rgba(141, 255, 224, 0.4); cursor: pointer; z-index: 10; }

/* Line Animations */
.spine-lines line {
    transition: stroke 0.3s, stroke-width 0.3s, filter 0.3s;
}

@keyframes dash-flow {
    to { stroke-dashoffset: -20; }
}

/* Feeding Effect (Input -> Spine) */
.spine-network:has(.n1:hover) .line-n1 {
    stroke: #8DFFE0;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px #8DFFE0);
    animation: dash-flow 0.5s linear infinite;
}
.spine-network:has(.n2:hover) .line-n2 {
    stroke: #8DFFE0;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px #8DFFE0);
    animation: dash-flow 0.5s linear infinite;
}
.spine-network:has(.n3:hover) .line-n3 {
    stroke: #8DFFE0;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px #8DFFE0);
    animation: dash-flow 0.5s linear infinite;
}

/* Constant Electric Flow (Spine -> Output) */
.line-n4 {
    stroke: #8DFFE0;
    stroke-opacity: 0.8;
    stroke-width: 2;
    animation: dash-flow 0.5s linear infinite;
    filter: drop-shadow(0 0 5px #8DFFE0);
}

/* Linhas conectando (SVG) */
.spine-lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5; }

.mobile-lines { display: none; }

/* Stok AI Section Header Effect */
.section-stokai {
    margin-top: 0; /* Remove margin to connect with spine */
    padding-top: 0;
}

.stokai-header-effect {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.vertical-beam {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #8DFFE0, rgba(141, 255, 224, 0));
    box-shadow: 0 0 10px #8DFFE0;
    margin-bottom: 0;
}

.horizontal-glow {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: radial-gradient(circle, #8DFFE0 0%, rgba(141, 255, 224, 0) 80%);
    box-shadow: 0 0 15px rgba(141, 255, 224, 0.8);
    margin-top: -1px; /* Align with bottom of beam */
}

.stokai-title {
    position: relative;
    width: 100%;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(60px, 10vw, 128px);
    line-height: 1.2;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin-top: 20px;
    margin-bottom: 24px;
}

/* Feature Grid */
.feature-grid-stok {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
    max-width: 1200px; margin: 80px auto; padding: 0 20px;
}

.stok-card {
    background: #111; border: 1px solid #222; border-radius: 24px; padding: 32px;
    position: relative; overflow: hidden; transition: 0.3s;
}
.stok-card:hover { border-color: #8DFFE0; box-shadow: 0 0 30px rgba(141, 255, 224, 0.1); transform: translateY(-5px); }

.stok-card h3 { font-size: 24px; color: #FFF; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.stok-card p { color: #888; line-height: 1.6; }
.icon-glow { color: #8DFFE0; filter: drop-shadow(0 0 5px rgba(141, 255, 224, 0.5)); }

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .spine-diagram-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .card-reunioes, .card-spine, .card-pesquisa, .card-outras {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        right: auto;
        width: 100%;
        max-width: 320px;
    }

    .card-spine {
        max-width: 600px;
        height: auto;
    }

    .arrow-down, .arrow-diagonal {
        display: none; /* Hide arrows on mobile/tablet for simpler flow */
    }
    
    .stokai-cards-row {
        flex-direction: column;
    }
    
    .faq-grid {
        flex-direction: column;
    }
    
    .cta-cards-container {
        flex-direction: column;
    }

    .hero-title {
        font-size: clamp(40px, 8vw, 120px);
    }

    .hero-subtitle {
        font-size: clamp(18px, 4vw, 24px);
    }

    /* Network adjustments */
    .spine-network {
        height: 600px;
    }
    .node-center {
        width: 240px; height: 240px;
    }
    .node-center .center-title { font-size: 24px; }
    .node-center .center-subtitle { font-size: 16px; }

    .node-orbit {
        width: 120px; height: 120px;
    }
    .node-orbit svg { width: 32px; height: 32px; }
    .node-orbit span { font-size: 16px; }
    
    .n1 span { top: -40px; }
    .n2 span { left: -100px; }
    .n3 span { right: -90px; }
    .n4 span { bottom: -40px; }
}

@media (max-width: 768px) {
    .spine-network { width: 100%; height: 400px; }
    
    /* Show mobile lines, hide desktop lines */
    .desktop-lines { display: none; }
    .mobile-lines { display: block; }

    /* Triangle Layout */
    .n1 { top: 5%; left: 50%; transform: translateX(-50%); } 
    .n2 { top: 25%; left: 15%; transform: none; }
    .n3 { top: 25%; right: 15%; transform: none; }
    
    .node-center { 
        top: 65%; 
        left: 50%; 
        transform: translate(-50%, -50%);
        width: 110px; 
        height: 110px; 
    }
    
    .node-center .center-title { font-size: 16px; }
    .node-center .center-subtitle { font-size: 10px; }

    .node-orbit {
        width: 55px; height: 55px;
    }
    .node-orbit svg { width: 20px; height: 20px; }
    .node-orbit span { font-size: 10px; }
    
    .n1 span { top: -20px; }
    .n2 span { left: -60px; }
    .n3 span { right: -50px; }
    
    /* Bento Grid Mobile Fix */
    .feature-grid-stok {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stok-card {
        grid-column: auto !important;
        width: 100%;
    }

    .section-spine {
        min-height: auto;
        margin-top: 40px;
    }

    .card-spine {
        width: 100%;
        padding: 20px;
    }

    .faq-item {
        width: 100%;
        height: auto;
        padding: 16px;
        text-align: center;
    }

    .plan-card {
        width: 100%;
        height: 400px;
    }
}



