/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --primary-blue: #0139CC;
    --primary-blue-light: #1890FF;
    --bg-light: #F5F5F5;
    --bg-card: #F8F8F8;
    --text-dark: #000000;
    --text-gray: #666666;
    --white: #FFFFFF;
    --border-radius: 25px;
    --border-radius-card: 14px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.tagline {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--primary-blue);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #0028a3;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    height: calc(100vh - 70px);
    max-height: 900px;
    min-height: 600px;
    margin-top: 70px;
    background: var(--bg-light);
    overflow: hidden;
}

/* Video container */
.hero-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Content overlay - top layer */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px;
    padding-bottom: 40px;
    pointer-events: none;
}

.hero-content>* {
    pointer-events: auto;
}

/* Hero Side Info */
.hero-info-left,
.hero-info-right {
    position: absolute;
    bottom: 80px;
    z-index: 3;
}

.hero-info-left {
    left: 60px;
    text-align: left;
}

.hero-info-right {
    right: 60px;
    text-align: right;
}

.info-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.info-text {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

/* Hero Buttons */
.hero-buttons {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 16px;
    z-index: 3;
}

/* ========================================
   Revolution Section
======================================== */
.revolution-section {
    padding: 100px 0 20px 0;
    /* Increased top padding to avoid header cutoff */
    background: #D9D9D9;
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.revolution-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

.revolution-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.revolution-text-left {
    width: 100%;
    max-width: 676px;
    margin: 0 auto;
    text-align: left;
}

.revolution-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1.1;
    letter-spacing: -0.005em;
    color: #0139CC;
    margin: 0;
}

.revolution-center {
    width: 100%;
    max-width: 841px;
    height: 40vh;
    /* Reduced from 50vh to make section more compact */
    margin: 0 auto;
    perspective: 2000px;
}

.device-3d-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.device-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease-out;
    animation: subtleRotate 15s infinite ease-in-out;
}

.device-3d-wrapper:hover .device-3d {
    animation-play-state: paused;
}

@keyframes subtleRotate {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(5deg);
    }

    25% {
        transform: rotateY(-10deg) rotateX(8deg);
    }

    50% {
        transform: rotateY(-15deg) rotateX(5deg);
    }

    75% {
        transform: rotateY(-20deg) rotateX(2deg);
    }
}

.device-screen {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: visible;
}

.device-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.revolution-text-bottom {
    width: 100%;
    max-width: 743px;
    margin: 0 auto;
    text-align: left;
}

.revolution-description {
    font-family: 'Averta', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.42;
    letter-spacing: -0.005em;
    color: #0139CC;
    margin: 0;
}


/* ========================================
   Images Section
======================================== */
.images-section {
    padding: 60px 0;
    background: var(--white);
    position: relative;
}

.images-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.image-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F0F0F0;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.image-item-1 {
    width: 100%;
}

.image-item-2 {
    width: 100%;
}

.image-item-3 {
    width: 100%;
}

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

/* ========================================
   RWA Section
======================================== */
.rwa-section {
    padding: 60px 0;
    /* Reduced padding */
    background: var(--white);
    position: relative;
    height: 100vh;
    /* Make it a full viewport section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.rwa-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.rwa-main-title {
    font-family: 'Averta', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 40px);
    /* Slightly smaller font */
    line-height: 1.2;
    /* Better line height */
    letter-spacing: -0.005em;
    color: rgba(36, 78, 189, 0.83);
    text-align: center;
    margin: 0 0 30px 0;
    /* Reduced margin */
}

.rwa-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Reduced gap */
    max-width: 820px;
    margin: 0 auto;
}

.rwa-logo {
    width: 100%;
    max-width: 820px;
    height: 30vh;
    /* Use vh to scale with viewport */
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kinc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rwa-belief-text {
    width: 100%;
    max-width: 800px;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.29;
    text-align: center;
    color: #0139CC;
    margin: 0;
}

.rwa-goals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.rwa-goals-title {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 36px;
    text-align: center;
    color: #000000;
    margin: 0;
}

.rwa-goals-cards {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.rwa-goal-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    gap: 10px;
    flex: 1;
    min-height: 100px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 10px;
}

.rwa-goal-card p {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.1px;
    color: #0139CC;
    margin: 0;
    flex: 1;
}

/* ========================================
   Partners Section
======================================== */
.partners {
    padding: 80px 0;
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.partner-logo {
    height: 80px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Roadmap Section
======================================== */
.roadmap {
    padding: 100px 0;
    background: var(--bg-light);
}

.roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.roadmap-marker {
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

.roadmap-item:not(:last-child) .roadmap-marker::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: var(--primary-blue);
    opacity: 0.3;
}

.roadmap-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.roadmap-content p {
    color: var(--text-gray);
    font-size: 16px;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    padding: 100px 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0028a3 100%);
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: #0139CC;
    color: var(--white);
    padding: 0;
    width: 100%;
}

.footer .container {
    max-width: 1920px;
    margin: 0;
    padding: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 30px 100px;
    gap: 60px;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 196px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-img {
    height: auto;
    width: auto;
    max-height: 50px;
}

.footer-brand p {
    margin: 0;
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.footer-main-text {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: var(--white);
    margin: 0;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.footer-company-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    color: var(--white);
    margin: 0;
}

.footer-company-address {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--white);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 80px;
    justify-content: flex-end;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    display: none;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .revolution-section {
        padding: 60px 0;
    }

    .revolution-container {
        padding: 0 30px;
    }

    .revolution-content {
        gap: 60px;
    }

    .revolution-center {
        max-width: 600px;
        height: 500px;
    }

    .images-container {
        padding: 0 30px;
        gap: 30px;
    }

    .image-item-1 {
        max-width: 100%;
        min-height: auto;
    }

    .image-item-2 {
        max-width: 100%;
        min-height: auto;
    }

    .image-item-3 {
        max-width: 100%;
        min-height: auto;
    }

    .rwa-goals-cards {
        flex-direction: column;
    }

    .rwa-goal-card {
        width: 100%;
    }

    .rwa-logo {
        height: 280px;
    }

    .hero-video-container {
        width: 70%;
    }

    .hero-info-left {
        left: 30px;
    }

    .hero-info-right {
        right: 30px;
    }

    .info-title {
        font-size: 24px;
    }

    .info-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .tagline {
        display: none;
    }

    .nav-buttons {
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-info-left,
    .hero-info-right {
        display: none;
    }

    .hero-buttons {
        bottom: 30px;
        flex-direction: column;
        width: calc(100% - 40px);
        gap: 10px;
    }

    .revolution-container {
        padding: 0 20px;
    }

    .revolution-content {
        gap: 40px;
    }

    .revolution-center {
        max-width: 100%;
        height: 400px;
    }


    .images-section {
        padding: 40px 0;
    }

    .images-container {
        padding: 0 20px;
        gap: 20px;
    }

    .image-item {
        padding: 15px;
    }

    .rwa-container {
        padding: 0 20px;
    }

    .rwa-content {
        gap: 30px;
    }

    .rwa-logo {
        height: 240px;
    }

    .rwa-goals-cards {
        flex-direction: column;
        gap: 15px;
    }

    .rwa-goal-card {
        width: 100%;
        min-height: auto;
    }

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

    .section-title {
        font-size: 32px;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 28px;
    }

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

    .footer-content {
        flex-direction: column;
        padding: 30px 40px;
        gap: 40px;
        height: auto;
        align-items: flex-start;
    }

    .footer-center {
        align-items: flex-start;
        text-align: left;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 28px;
    }

    .nav-buttons .btn:not(.btn-primary) {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .revolution-center {
        height: 300px;
    }

    .images-container {
        padding: 0 15px;
        gap: 15px;
    }

    .image-item {
        padding: 10px;
    }

    .rwa-logo {
        height: 200px;
    }

    .rwa-goal-card p {
        font-size: 12px;
        line-height: 18px;
    }


    .footer-content {
        padding: 30px 20px;
        gap: 30px;
    }

    .footer-main-text {
        font-size: 14px;
    }

    .footer-company-name,
    .footer-company-address {
        font-size: 12px;
    }
}