/* =========================================
   GENSHI AI - Deep Copy Main CSS
   Based strictly on Syukan Lab
   ========================================= */
:root {
    /* Colors: Medical Navy & Intelligent Blue */
    --color-bg: #030712;
    /* Deep Navy */
    --color-white: #F8FAFC;
    --color-text-main: #E2E8F0;
    --color-text-sub: #94A3B8;
    /* Slate 400 */

    --color-primary: #38BDF8;
    /* Sky Blue */
    --color-accent: #818CF8;
    /* Indigo */
    --color-border: rgba(56, 189, 248, 0.2);
    /* Blueish border */

    /* Gradients */
    --gradient-main: linear-gradient(180deg, #030712 0%, #0F172A 100%);

    /* Fonts */
    --font-en: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-mincho: 'Shippori Mincho', serif;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);

    /* Dimensions */
    --header-height: 80px;
    --container-width: 90%;
    --container-max-width: 1400px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* cursor: none; */
    /* Custom cursor everywhere - disabled per user request */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Utilities (Ultra)
   ========================================= */
.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
}

.text-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.text-accent {
    color: var(--color-accent);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
}

/* =========================================
   Custom Cursor Removed
   ========================================= */
/* .cursor styles deleted */

/* =========================================
   Background Layers (Essential for Texture)
   ========================================= */
.bg-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    /* Subtle grain */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Heavy blur for atmosphere */
    opacity: 0.3;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vh;
    height: 50vh;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vh;
    height: 60vh;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    animation: floatOrb 30s infinite ease-in-out alternate-reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
}

/* =========================================
   Header (Liquid Glass)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* The Magic Stack */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    padding: 1rem 3rem;
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg,
            rgba(3, 7, 18, 0.7) 0%,
            rgba(3, 7, 18, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-white);
}

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

.logo-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.header-menu-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: none;
}

.menu-text {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.menu-bars {
    width: 30px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.menu-bars span {
    display: block;
    height: 1px;
    width: 100%;
    background-color: var(--color-white);
}

/* =========================================
   Fullscreen Menu
   ========================================= */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.nav-menu.active {
    pointer-events: auto;
    opacity: 1;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
}

.nav-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10vw;
}

.nav-link {
    display: block;
    font-family: var(--font-en);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
}

.nav-link span {
    font-size: 1rem;
    margin-right: 2rem;
    display: inline-block;
    vertical-align: middle;
}

.nav-link:hover {
    color: var(--color-primary);
    transform: translateX(20px);
}

/* =========================================
   Hero
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(2px) grayscale(50%);
    transform: scale(1.1);
}

.hero-container {
    z-index: 2;
    text-align: left;
    width: var(--container-width);
    max-width: var(--container-max-width);
}

.hero-title {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.hero-title .indent {
    margin-left: 4rem;
    color: var(--color-primary);
    /* Accent color */
}

.hero-sub {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4rem;
}

.hero-sub-text {
    font-size: 1rem;
    border-left: 2px solid var(--color-primary);
    padding-left: 1.5rem;
    max-width: 400px;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-down span {
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.scroll-bar {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* =========================================
   Philosophy / Problem
   ========================================= */
.section {
    padding: 10rem 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.philo-label {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
}

.philo-title {
    font-family: var(--font-mincho);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.philo-desc {
    color: var(--color-text-sub);
    max-width: 600px;
}

.philo-image-parallax {
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
}

.philo-image-parallax img {
    width: 100%;
    height: 120%;
    /* For parallax */
    object-fit: cover;
}

/* =========================================
   Services List (RAG)
   ========================================= */
.services-list-sec {
    position: relative;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    cursor: none;
    position: relative;
    transition: padding-left 0.3s;
}

.service-row:hover {
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.service-content h3 {
    font-family: var(--font-en);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.service-num {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.service-tag {
    color: var(--color-text-sub);
    font-size: 0.9rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Floating Image */
.service-float-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 200px;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    mix-blend-mode: hard-light;
}

.float-img-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.float-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Works Grid (Tech)
   ========================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    margin-top: 4rem;
}

.work-item.large {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    aspect-ratio: 4/3;
}

.work-item.small.start {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
    aspect-ratio: 16/9;
}

.work-item.small.end {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
    aspect-ratio: 16/9;
}

.work-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.work-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.work-link:hover .work-img img {
    transform: scale(1.05);
}

.work-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
}

.work-title {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 500;
}

.work-cat {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-nav-group ul {
    list-style: none;
}

.footer-nav-group h4 {
    font-family: var(--font-en);
    color: var(--color-primary);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

/* =========================================
   Deployment / FDE Section (Process Timeline)
   ========================================= */
.deployment-sec {
    position: relative;
    border-top: 1px solid var(--color-border);
    padding-top: 8rem;
    overflow: hidden;
}

.fde-intro {
    margin: 4rem 0 6rem;
    max-width: 800px;
}

.fde-mission {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    line-height: 1.6;
    font-family: var(--font-mincho);
    color: var(--color-white);
}

.fde-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 3rem;
}

/* Timeline Line at top */
.fde-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            transparent 100%);
    opacity: 0.3;
}

.process-step {
    position: relative;
    padding-top: 3rem;
}

.step-line {
    position: absolute;
    top: -3rem;
    /* Connect to top line */
    left: 0;
    width: 1px;
    height: 3rem;
    background: var(--color-primary);
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.step-num {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

.process-step:hover .step-num {
    color: var(--color-primary);
    opacity: 0.2;
    -webkit-text-stroke: 0;
    transition: color 0.3s;
}

.step-content h3 {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .fde-process {
        grid-template-columns: 1fr;
        padding-left: 2rem;
        /* Space for vertical line */
    }

    .fde-process::before {
        width: 1px;
        height: 100%;
        left: 0;
        top: 0;
        background: linear-gradient(180deg,
                var(--color-primary) 0%,
                transparent 100%);
    }

    .step-line {
        width: 1rem;
        height: 1px;
        left: -2rem;
        top: 4rem;
        /* Align with number/title */
    }

    .step-line::after {
        left: -2rem;
        top: -2px;
    }
}

/* =========================================
   Leadership Section
   ========================================= */
.leadership-sec {
    background: linear-gradient(180deg, var(--color-bg) 0%, #050A18 100%);
}

.leadership-wrapper {
    padding: 2rem 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.x-mark {
    color: var(--color-primary);
    font-weight: 300;
}

.leadership-message {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-family: var(--font-mincho);
    line-height: 1.8;
    margin-bottom: 4rem;
}

.founder-profile {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.founder-name {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.founder-title {
    font-family: var(--font-en);
    color: var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.founder-bio {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {

    .deploy-grid,
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sec-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   Business Section
   ========================================= */
.business-sec {
    background-color: #02040a;
    /* Slightly darker/different bg */
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.business-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 3rem;
    transition: background 0.3s;
}

.business-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.biz-num {
    font-family: var(--font-en);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.business-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-en);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.business-card p {
    color: var(--color-text-sub);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Solution Grid Section (Refactored)
   ========================================= */
.solution-sec {
    position: relative;
    padding: 8rem 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.solution-card,
.business-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Spotlight Effect */
.solution-card::after,
.business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(56, 189, 248, 0.1),
            transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.solution-card:hover::after,
.business-card:hover::after {
    opacity: 1;
}

.solution-card:hover,
.business-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
}

.solution-card::before {
    /* Existing left border highlight */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--color-primary);
    transition: height 0.4s ease;
    z-index: 2;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.solution-card:hover::before {
    height: 100%;
}

.sol-num {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.solution-card h3 {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.sol-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}