/* Cipher Page Specific Styles */

.cipher-page {
    background-color: var(--section-dark);
}

/* Main Content */
.main-content {
    position: relative;
    min-height: 100vh;
}

/* Network Pattern Backgrounds */
.network-pattern {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.network-pattern-1 {
    left: 0;
    top: 300px;
    width: 532px;
    height: 746px;
}

.network-pattern-2 {
    right: 0;
    bottom: 800px;
    width: 480px;
    height: 746px;
}

.network-pattern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Network Graphics */
.network-graphic {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.network-left {
    left: 0;
    top: 10%;
    width: 532px;
    height: auto;
}

.network-right {
    right: 0;
    bottom: 10%;
    width: 483px;
    height: auto;
}

/* Hero Section */
.cipher-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 0 100px;
    background-color: var(--section-dark);
    overflow: visible;
    margin-top: 80px;
    padding-top: 40px;
    min-height: 600px;
}

.cipher-hero .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.cipher-hero .page-title {
    font-family: var(--font-inter);
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-teal);
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    letter-spacing: 2px;
}

.hero-card {
    display: grid;
    grid-template-columns: 45% 55%;
    background-color: var(--light-beige);
    border-radius: 50px;
    border: 1px solid var(--text-gray);
    border-right: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 350px;
    max-height: 400px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    padding: 0;
    justify-self: center;
}

.hero-card-content {
    padding: 36px 40px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 36px;
}

.hero-card-content h1 {
    font-family: var(--font-inter);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.hero-card-content p {
    font-family: var(--font-inter);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 27px;
    margin: 0;
}

.hero-card-content .btn-primary {
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 400;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 100px;
    margin-bottom: 28px;
    display: inline-block;
    text-decoration: none;
}

.hero-card-content .btn-primary:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-card-visual {
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: brightness(1.1) contrast(1.1);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.1);
}

/* Cipher Description */
.cipher-description {
    padding: 30px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: var(--section-dark);
}

.section-heading {
    font-family: var(--font-inter);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 34px;
}

.description-text {
    font-family: var(--font-inter);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
    letter-spacing: -0.48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 0 0 80px;
    position: relative;
    z-index: 1;
    background-color: var(--section-dark);
}

.features-section .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--light-beige);
    border-radius: 50px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
}

.feature-content h3 {
    font-family: var(--font-inter);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.24px;
}

.feature-content p {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Deployment and Integrated Solutions Wrapper */
.deployment-integrations-wrapper {
    background-color: var(--light-beige);
    margin: 0 40px;
}

/* Deployment Section */
.deployment-section {
    padding: 78px 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-inter);
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.96px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-family: var(--font-inter);
    font-size: 32px;
    font-weight: 400;
    color: #333;
    line-height: 1.2;
    max-width: 1088px;
    margin: 0 auto;
}

.deployment-cards {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.deployment-card {
    background-color: var(--light-beige);
    display: flex;
    flex-direction: column;
}

.deployment-image {
    width: 100%;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deployment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deployment-content {
    padding: 24px 32px;
}

.deployment-content h3 {
    font-family: var(--font-inter);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.deployment-content p {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.feature-list li:before {
    content: "-";
    position: absolute;
    left: 0;
}

/* Integrations Section */
.integrations-section {
    padding: 20px 0 80px;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.integrations-section .section-heading {
    text-align: center;
    margin-bottom: 80px;
    color: #000000;
}

.integration-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    grid-template-areas: 
        "card1 card2"
        "card3 card3";
}

.integration-card:nth-child(1) {
    grid-area: card1;
}

.integration-card:nth-child(2) {
    grid-area: card2;
}

.integration-card:nth-child(3) {
    grid-area: card3;
    width: 100%;
    max-width: 100%;
}

.integration-card {
    background-color: var(--light-beige);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.integration-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.integration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    transform: translateZ(0);
    will-change: transform;
    filter: contrast(1.05) brightness(1.02);
}

.integration-info {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.integration-number {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 600;
    color: var(--light-beige);
    background-color: var(--text-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-info h3 {
    font-family: var(--font-inter);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* API and Metadata Section */
.api-metadata-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background-color: var(--section-dark);
    overflow: visible;
}

.api-metadata-section .network-right {
    right: -200px;
    top: 250px;
    z-index: -1;
}

.api-metadata-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.api-column .section-heading {
    text-align: left;
    margin-bottom: 45px;
    color: var(--primary-teal);
}

.metadata-column .section-heading {
    text-align: center;
    margin-bottom: 45px;
    color: var(--primary-teal);
}

.api-description {
    font-family: var(--font-inter);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
    letter-spacing: -0.48px;
    margin-bottom: 24px;
}

.api-features {
    font-family: var(--font-inter);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
    letter-spacing: -0.48px;
}

.api-features strong {
    font-weight: 600;
}

.api-cloud-button {
    margin-top: 32px;
    display: inline-block;
}

.api-cloud-button a {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.api-cloud-button a:hover {
    transform: scale(1.05);
}

.api-cloud-button img {
    height: 65px;
    width: auto;
    display: block;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 40px;
}

.flow-step {
    background-color: var(--light-beige);
    border-radius: 50px;
    padding: 16px 32px;
    min-width: 274px;
    text-align: center;
    margin: 0 auto;
}

.flow-label {
    font-family: var(--font-inter);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.24px;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    padding: 10px 0;
}

.flow-arrow svg {
    display: block;
    margin: 0 auto;
}

/* Demo Section */
.demo-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 115px 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.demo-heading {
    font-family: var(--font-inter);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 24px;
}

.demo-arrow {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-arrow svg {
    display: block;
}

.demo-button {
    display: inline-block;
    margin-top: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.demo-button:hover {
    transform: scale(1.05);
}

.demo-button img {
    height: 65px;
    width: auto;
}

/* Responsive Design */
@media (min-width: 1600px) {
    .hero-card {
        max-width: 1400px;
        min-height: 400px;
        max-height: 450px;
    }
    
    .hero-card-content h1 {
        font-size: 52px;
    }
    
    .hero-card-content p {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .deployment-cards {
        grid-template-columns: 1fr;
    }

    .integration-cards {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "card1"
            "card2"
            "card3";
    }
    
    .integration-card:nth-child(3) {
        max-width: 100%;
    }

    .api-metadata-section .container {
        grid-template-columns: 1fr;
    }

    .network-pattern-1,
    .network-pattern-2 {
        opacity: 0.3;
    }
    
    .network-left,
    .network-right {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-card-content {
        padding: 40px 30px;
    }
    
    .hero-card-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-card-content p {
        font-size: 16px;
    }
    
    .hero-card-visual {
        min-height: 300px;
    }

    .cipher-description {
        padding: 60px 20px;
    }

    .section-heading {
        font-size: 36px;
    }

    .description-text {
        font-size: 18px;
    }

    .features-section {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }

    .deployment-section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .integrations-section {
        padding: 60px 20px;
    }

    .api-metadata-section {
        padding: 60px 20px;
    }

    .api-description,
    .api-features {
        font-size: 18px;
    }

    .demo-section {
        padding: 60px 20px;
    }

    .network-pattern-1,
    .network-pattern-2 {
        display: none;
    }
    
    .network-left,
    .network-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-card-content h1 {
        font-size: 28px;
    }

    .section-heading {
        font-size: 28px;
    }
}