:root {
    --color-obsidian: #0B0C10;
    --color-cream: #F9F7F2;
    --color-orange-primary: #e17630;
    --color-yellow-primary: #fad019;
    --color-text-muted: #666666;
    
    --radius-large: 40px;
    --radius-medium: 24px;
    --radius-pill: 100px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-obsidian);
    color: #231f20;
    line-height: 1.6;
    overflow-x: hidden;
}

.product-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.chromeflow .product-badge { 
    color: var(--color-orange-primary); 
    background: rgba(225, 118, 48, 0.15); 
    border-color: rgba(225, 118, 48, 0.3);
}

.vouchflow .product-badge { 
    color: var(--color-yellow-primary); 
    background: rgba(250, 208, 25, 0.15); 
    border-color: rgba(250, 208, 25, 0.3);
}

h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* Kyzeno Frame */
.kyzeno-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Logic */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
    height: 100px;
    z-index: 10;
    position: relative;
    background-color: var(--color-obsidian);
}

.header-segment {
    display: flex;
    align-items: center;
}

.logo-segment {
    min-width: 320px;
    padding-left: 40px;
    justify-content: flex-start;
    padding-bottom: 20px;
}

.logo-svg-inlined {
    height: 48px;
    width: auto;
    overflow: visible;
}

.nav-segment {
    flex: 1;
    background-color: var(--color-cream);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 0 50px;
    position: relative;
    height: 60px;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inverted Corners - Layered Box Approach */
.corner {
    position: absolute;
    bottom: -2px; /* Overlap the body island */
    width: 40px;
    height: 40px;
    background-color: var(--color-cream);
    pointer-events: none;
    z-index: -30; /* Ensure corners sit on top of side segments */
}

.corner-left {
    left: -39px; /* Overlap the nav-segment slightly to kill the 1px seam */
}

.corner-right {
    right: -39px;
}


.corner::after {
    content: "";
    position: absolute;
    top: -2px; /* Overlap for safety */
    left: -2px;
    right: -2px;
    bottom: 2px;
    background-color: var(--color-obsidian);
}



.corner-left::after {
    border-bottom-right-radius: 40px;
}

.corner-right::after {
    border-bottom-left-radius: 40px;
}




.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.4;
}

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

.utility-segment {
    min-width: 320px;
    padding-right: 40px;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.utility-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background: white;
    color: var(--color-obsidian);
}

.btn-connect {
    background: white;
    color: var(--color-obsidian);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-connect:hover {
    background: linear-gradient(135deg, var(--color-orange-primary), var(--color-yellow-primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 118, 48, 0.4);
}

/* The Floating Bento Island */
.hero-island {
    position: relative;
    background-color: var(--color-cream);
    border-radius: var(--radius-large);
    margin: 0 20px 40px 20px;
    overflow: hidden;
    z-index: 1;
    height: calc(100vh - 140px); /* Exactly fills remaining viewport space (100px header + 40px margin) */
    min-height: 600px;
    display: flex;
    align-items: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23e17630' stroke-opacity='0.03'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 231 801 406 1101 552 1125 730 1101 896 1192 1037 1101 1122 1037 1101 880 927 880'/%3E%3Cpath d='M520 660L578 842 731 737M309 538L377 734 520 660M40 599L232 562 309 538M231 801L377 734 309 538M406 1101L578 842 520 660M552 1125L578 842 731 737M730 1101L896 1192 927 880M731 737L896 1192'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
}

#products {
    scroll-margin-top: 0;
}



.hero-island::before {
    content: "";
    position: absolute;
    top: -2px; /* Overlap header slightly */
    left: 0;
    right: 0;
    height: 120px; /* Deep enough to cover any curvature */
    background: var(--color-cream);
    z-index: -1;
}


.section-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 24px;
    line-height: 1;
}

.hero-text p {
    font-size: clamp(1.1rem, 1.2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-visual {
    background: white;
    border-radius: var(--radius-medium);
    padding: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-ui {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Dark Content Area Transition */
.dark-content-area {
    background-color: var(--color-obsidian);
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 140px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Dark Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    width: 100%;
}

.bento-item {
    border-radius: var(--radius-medium);
    padding: 64px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.dark-bento {
    background: #16181D;
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: white;
}

.dark-bento h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.dark-bento p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.dark-bento:hover {
    transform: translateY(-10px);
    border-color: rgba(225, 118, 48, 0.3);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.vouchflow { 
    grid-column: span 7; 
    display: flex;
    flex-direction: column;
}

.chromeflow { 
    grid-column: span 5; 
    display: flex;
    flex-direction: column;
}

.bento-cta {
    margin-top: auto;
    padding-top: 32px;
}

.btn-product {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    width: fit-content;
}

.btn-product:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.btn-product::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-product:hover::after {
    transform: translateX(3px);
}

/* Product Specific Hover Glows */
.vouchflow .btn-product:hover {
    box-shadow: 0 0 20px rgba(250, 208, 25, 0.2);
    color: var(--color-yellow-primary);
}

.chromeflow .btn-product:hover {
    box-shadow: 0 0 20px rgba(225, 118, 48, 0.2);
    color: var(--color-orange-primary);
}

.kaizen-section {
    grid-column: span 12;
    background: #111317;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 0;
}

.kaizen-content {
    padding: 80px;
}

.kaizen-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.kaizen-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.philosophy-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.hero-text.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text.centered h1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
}

.hero-text.centered p {
    margin-left: auto;
    margin-right: auto;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    margin-left: 20px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu.open span:first-child { transform: rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.burger-menu.open span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open {
    transform: translateY(0);
}

.mobile-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    z-index: 102;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-links a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.mobile-links hr {
    width: 40px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .nav-segment { display: none; }
    .burger-menu { display: flex; }
    .logo-segment { min-width: auto; padding-left: 20px; }
    .utility-segment { min-width: auto; padding-right: 20px; }
    .utility-segment .btn-connect { display: none; }
    
    .mobile-links a {
        color: white;
    }

    .mobile-links .btn-connect {
        display: inline-block;
        background: linear-gradient(135deg, var(--color-orange-primary), var(--color-yellow-primary));
        color: white !important;
        padding: 16px 40px;
        font-size: 16px;
        box-shadow: 0 10px 30px rgba(225, 118, 48, 0.3);
    }


    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-item {
        padding: 40px 30px;
    }

    .bento-item h3 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .product-badge {
        margin-bottom: 20px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .vouchflow, .chromeflow { grid-column: span 1; }

    .kaizen-section { 
        grid-template-columns: 1fr; 
        grid-column: span 1;
    }
    
    .kaizen-content { padding: 40px; text-align: center; }
    .kaizen-section h2 { font-size: 2.5rem; }
    
    .section-hero { padding: 40px 20px; }
    .hero-island { height: auto; min-height: 70vh; }
}

@media (max-width: 480px) {
    .main-header { height: 80px; }
    .logo-container { height: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
}


/* Steady Logo Animation */
@keyframes steadySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning-o {
    display: inline-block;
    transform-box: fill-box;
    transform-origin: center;
    scale: 1.3;
    animation: steadySpin 15s linear infinite; /* Steady rotation, no speed-up */
}

.spinning-o-large {
    animation: steadySpin 25s linear infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-hero { grid-template-columns: 1fr; text-align: center; }
    .hero-island { min-height: auto; }
    .chromeflow, .vouchflow, .kaizen-section { grid-column: span 12; }
    .kaizen-section { grid-template-columns: 1fr; text-align: center; }
    .kaizen-content { padding: 60px 30px; }
}

footer {
    padding: 80px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
