@charset "UTF-8";

/* ==========================================================================
   Kilona Product Landing Page - High End Redesign v2 (Ethereal Flow)
   Concept: Fluid, Depth, Artistic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Noto+Serif+JP:wght@300;500;700&family=Italianno&display=swap');

:root {
    --k-purple: #4a3b89;
    --k-dark: #1a1a2e;
    --k-silver: #f0f0f5;
    --k-gold: #d4af37;
    --k-text: #333;
    --k-text-light: #777;
    --font-main: "Noto Serif JP", serif;
    --font-eng: "Cormorant Garamond", serif;
    --font-sign: "Italianno", cursive; /* Signature Font */
    --font-sans: "Helvetica Neue", "Arial", sans-serif;
}

/* Base Reset & Typography */
body {
    font-family: var(--font-main);
    color: var(--k-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
    background-color: var(--k-dark);
    overflow-x: hidden;
    padding-top: 0; /* Removed to eliminate gap above hero */
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }


h1, h2, h3, h4 {
    font-family: var(--font-eng);
    font-weight: 400;
    margin: 0;
}

/* Utilities */
.pc-only { display: block; }
.sp-only { display: none; }
.k-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.k-section {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

/* Intro Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-img.visible {
    clip-path: inset(0 0 0 0);
}

/* Background Text Decoration */
.bg-text {
    position: absolute;
    font-family: var(--font-sign);
    font-size: 15rem;
    color: rgba(74, 59, 137, 0.03);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.k-hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 220px;
    background: #fff;
    overflow: hidden;
}

/* Ambient liquid background */
.k-hero::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(200, 190, 230, 0.2) 0%, transparent 60%);
    top: -20%;
    left: 20%;
    filter: blur(80px);
    animation: liquidMove 20s infinite alternate;
}
.k-hero::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    bottom: -10%;
    right: 10%;
    filter: blur(60px);
    animation: liquidMove 25s infinite alternate-reverse;
}

@keyframes liquidMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

.k-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.k-hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.k-hero-prod-img {
    height: 65vh;
    max-height: 700px;
    width: auto;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.2));
    animation: floatingHero 10s ease-in-out infinite;
    transform-origin: center center;
    transform: scaleY(0.9); /* Squash vertically based on user feedback */
}

@keyframes floatingHero {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.k-hero-text {
    flex: 1;
    opacity: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInUp 1.5s ease-out 0.8s forwards;
    z-index: 5;
}

/* Blended background image on the right */
.k-hero-bg-img {
    position: absolute;
    top: 100px;
    right: 0;
    width: 70%; /* Wider width */
    height: 100%;
    z-index: 1;
    overflow: hidden;
    /* Gradient mask for seamless blending */
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.k-hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
}

.k-hero-message {
    position: relative;
    z-index: 10;
    padding: 0; /* Remove padding */
    background: none; /* Remove background */
    backdrop-filter: none;
    box-shadow: none;
    text-align: left;
    max-width: 100%;
    margin-left: 0; /* Reset margin */
    /* Add text shadow for readability if needed, though aiming for white space placement */
    text-shadow: 0 20px 40px rgba(255,255,255,0.8); 
}

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

.k-hero-title {
    font-size: 5.5rem; /* Larger */
    letter-spacing: 0.05em;
    color: var(--k-dark);
    margin-bottom: 10px;
    font-family: var(--font-eng);
    background: linear-gradient(135deg, #1a1a2e 30%, #4a3b89 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    padding-bottom: 0.2em; /* Ensure descenders like 'g' are not clipped */
}

.k-hero-sign {
    font-family: var(--font-sign);
    font-size: 4rem;
    color: var(--k-gold);
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    opacity: 0.8;
    z-index: -1;
}

.k-hero-sub {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--k-text-light);
    letter-spacing: 0.3em;
    margin-top: 20px;
    text-transform: uppercase;
}

.k-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.k-scroll-line {
    width: 1px;
    height: 0;
    background: #aaa;
    margin: 0 auto;
    animation: scrollGrow 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes scrollGrow {
    0% { height: 0; opacity: 0; transform: translateY(0); }
    20% { opacity: 1; }
    80% { height: 80px; opacity: 1; }
    100% { height: 80px; opacity: 0; transform: translateY(80px); }
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */
.k-phi {
    background-color: #fdfdfd;
}

.k-phi-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    position: relative;
}

.k-phi-text-wrap {
    position: relative;
}

.k-phi-text-v {
    writing-mode: vertical-rl;
    font-family: var(--font-main);
    font-size: 1.15rem;
    line-height: 2.5;
    letter-spacing: 0.25em;
    height: 450px;
    text-align: justify;
    color: #444;
}

/* Vertical Text Animation */
.k-v-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.fade-up.visible .k-v-line {
    animation: fadeUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Delay for each line: Starts at 0.2s, then 0.5s interval */
.fade-up.visible .k-v-line:nth-of-type(1) { animation-delay: 0.2s; }
.fade-up.visible .k-v-line:nth-of-type(2) { animation-delay: 0.7s; }
.fade-up.visible .k-v-line:nth-of-type(3) { animation-delay: 1.2s; }
.fade-up.visible .k-v-line:nth-of-type(4) { animation-delay: 1.7s; }
.fade-up.visible .k-v-line:nth-of-type(5) { animation-delay: 2.2s; }
.fade-up.visible .k-v-line:nth-of-type(6) { animation-delay: 2.7s; }
.fade-up.visible .k-v-line:nth-of-type(7) { animation-delay: 3.2s; }

.k-phi-highlight {
    color: var(--k-purple);
    font-weight: 500;
}

.k-phi-visual {
    width: 45%;
    position: relative;
    z-index: 1;
}

.k-phi-visual img {
    width: 100%;
    display: block;
    box-shadow: 20px 20px 0 rgba(74, 59, 137, 0.05);
}

.bg-text.phi-bg {
    top: 50px;
    right: -100px;
}

/* ==========================================================================
   Ingredients
   ========================================================================== */
.k-ing {
    background-color: #fff;
}

.k-sec-header {
    text-align: center;
    margin-bottom: 120px;
    position: relative;
}
.k-sec-title {
    font-size: 3.5rem; /* Larger */
    color: var(--k-dark);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}
.k-sec-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--k-purple);
    transition: width 1s ease;
    transform: translateX(-50%);
}
.k-sec-header.visible .k-sec-title::after { width: 60%; }

.k-sec-sub {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--k-text-light);
    letter-spacing: 0.2em;
}

.k-ing-row {
    display: flex;
    align-items: center;
    margin-bottom: 180px; /* More space */
    position: relative;
}

.k-ing-row:last-child { margin-bottom: 0; }
.k-ing-row.reverse { flex-direction: row-reverse; }

.k-ing-visual {
    flex: 1.2; /* Larger image */
    position: relative;
    z-index: 1;
}

.k-ing-visual img {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: grayscale(20%);
    transition: filter 0.5s;
}
.k-ing-visual:hover img { filter: grayscale(0%); }

.k-ing-desc {
    flex: 0.8;
    padding: 0 40px;
    z-index: 2;
    position: relative;
}
/* Overlapping Layout */
.k-ing-desc { margin-left: -50px; margin-top: 50px; }
.k-ing-row.reverse .k-ing-desc { margin-left: 0; margin-right: -50px; }

.k-ing-tag {
    font-family: var(--font-eng);
    color: var(--k-gold);
    font-size: 1rem;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.k-ing-name {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.3;
}
.k-ing-name-en {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-sign);
    color: #ccc;
    margin-top: 5px;
}

/* Essence Section - Extra Spacing */
.k-essence {
    padding-bottom: 260px;
}

/* ==========================================================================
   Abstract Visuals (CSS Generated Images)
   ========================================================================== */
.k-abstract-visual {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Square Aspect Ratio */
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.k-abstract-visual::before,
.k-abstract-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

/* Niacinamide: White, Gold, Transparency, Light */
.k-visual-niacinamide {
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 40%, #f0f0f5 100%);
}
.k-visual-niacinamide::before {
    top: -20%; left: -20%;
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%); /* Gold Glow */
    filter: blur(30px);
    animation: floatingGlow 10s infinite alternate;
}
.k-visual-niacinamide::after {
    bottom: -10%; right: -10%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 80%);
    filter: blur(10px);
    mix-blend-mode: overlay;
}

/* Dipotassium Glycyrrhizate: Purple, Water, Soothing */
.k-visual-dipotassium {
    background: linear-gradient(120deg, #fdfbfd 0%, #f4f0ff 50%, #e6e6fa 100%);
}
.k-visual-dipotassium::before {
    top: 30%; left: 20%;
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(160, 190, 255, 0.2) 0%, transparent 60%); /* Watery Blue */
    filter: blur(40px);
    animation: floatingGlow 12s infinite alternate-reverse;
}
.k-visual-dipotassium::after {
    bottom: -20%; right: -20%;
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(74, 59, 137, 0.08) 0%, transparent 70%); /* Purple Depth */
    filter: blur(20px);
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 20px) scale(1.1); }
}

/* Feature Grid Adjustments */
.k-feat {
    background: #111;
    color: #fff;
    padding: 160px 0;
}

.k-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.k-feat-item {
    background: transparent;
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.k-feat-item:last-child { border-right: none; }

.k-feat-icon {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--k-gold);
    opacity: 0.8;
}

.k-feat-title {
    font-size: 1.8rem;
    font-family: var(--font-eng);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.k-feat-text {
    font-size: 0.9rem;
    color: #999;
    line-height: 2;
}

/* ==========================================================================
   Safety & Usage
   ========================================================================== */
.k-how {
    background: #f8f8f8;
}

/* Safety List - Minimal */
.k-safe-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    max-width: 900px;
    margin: 0 auto 160px;
}

.k-safe-item {
    font-size: 0.95rem;
    color: var(--k-text-light);
    letter-spacing: 0.15em;
    position: relative;
    padding-left: 15px;
    transition: all 0.3s ease; /* For smooth highlight */
}
.k-safe-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.3s;
}
.k-safe-item.active {
    color: #000;
    font-size: 1.15rem; /* Approx +2 size */
    font-weight: bold;
}
.k-safe-item.pulse {
    animation: k-safe-pulse 1.0s ease-in-out 3;
}
@keyframes k-safe-pulse {
    0%, 100% { color: #000; font-size: 1.15rem; transform: scale(1); }
    50% { color: #999; font-size: 0.95rem; transform: scale(0.95); }
}

.k-safe-item:hover { color: var(--k-purple); }
.k-safe-item:hover::before { background: var(--k-purple); }

/* Steps - Horizontal Flow */
.k-step-container {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    counter-reset: step;
}

.k-step {
    flex: 1;
    padding: 40px;
    border-top: 1px solid #ddd;
    position: relative;
    transition: border-color 0.5s;
}
.k-step:hover { border-color: var(--k-purple); }

.k-step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--font-eng);
    font-size: 3rem;
    color: #eee;
    position: absolute;
    top: -25px;
    left: 20px;
    background: #f8f8f8;
    padding: 0 10px;
    transition: color 0.5s;
}
.k-step:hover::before { color: var(--k-purple); }

.k-step-desc {
    margin-top: 40px;
    font-size: 1rem;
    color: #555;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.k-cta {
    background: #fff;
    text-align: center;
    padding: 200px 0 0 0;
    position: relative;
}

.bg-text.cta-bg {
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20rem;
    opacity: 0.02;
    z-index: 1;
}

.k-cta-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.k-btn {
    display: inline-block;
    padding: 25px 80px;
    background: transparent;
    color: var(--k-dark);
    font-size: 1rem;
    letter-spacing: 0.3em;
    font-family: var(--font-eng);
    border: 1px solid var(--k-dark);
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
}

.k-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--k-dark);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.k-btn:hover { color: #fff; }
.k-btn:hover::before { width: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .sp-only { display: block; }
    .pc-only { display: none; }
    .k-container { padding: 0 20px; }
    #k-cursor { display: none; } /* Disable custom cursor on touch */
    body, a, button { cursor: auto; }

    .k-hero-title { font-size: 3.5rem; }
    .k-hero-sign { font-size: 3rem; top: -40px; }
    .k-hero-sub { font-size: 0.9rem; letter-spacing: 0.05em; }
    .k-hero-scroll { display: none; }
    
    .k-safe-list { flex-direction: column; gap: 20px; align-items: center; margin-bottom: 100px; }
    
    .k-phi-content { flex-direction: column-reverse; gap: 40px; }
    .k-phi-text-v { writing-mode: horizontal-tb; height: auto; text-align: left; width: 100%; font-size: 0.95rem; }
    .k-v-line:last-child { white-space: nowrap; }
    .k-phi-visual { width: 100%; }

    .k-ing-row, .k-ing-row.reverse { flex-direction: column; margin-bottom: 100px; }
    .k-ing-desc, .k-ing-row.reverse .k-ing-desc { margin: 0; padding: 40px 0; width: 100%; }
    .k-ing-desc p { font-size: 0.85rem; letter-spacing: 0.02em; }
    
    .k-feat-grid { grid-template-columns: 1fr; border: none; gap: 0; }
    .k-feat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

    .k-hero-content { flex-direction: column-reverse; text-align: center; padding-top: 0; }
    
    /* On mobile, bring image to top (or keeping structure, content is visual + text) */
    /* On mobile, hidden as per user request */
    .k-hero-bg-img {
        display: none !important;
    }

    .k-hero-visual { 
        justify-content: center; 
        margin-bottom: 20px; 
        width: 100%; 
        margin-top: 20px; /* Adjusted to prevent overlap */
        z-index: 10;
    }
    
    .k-hero-text { 
        text-align: center; 
        padding-left: 0; 
        width: 100%; 
        display: block;
        margin-left: 0; /* Reset negative margin */
    }

    .k-hero-message { 
        position: relative; 
        max-width: 100%; 
        background: none; 
        backdrop-filter: none; 
        box-shadow: none;
        padding: 0 20px;
        margin-left: 0;
        text-align: center;
    }

    .k-step-container { flex-direction: column; }
    .k-step { padding: 40px 0; border-top: 1px solid #ddd; }

    .k-hero-prod-img {
        height: auto;
        max-width: 80%;
        margin-top: 20px;
    }

    .k-phi-visual { display: none; }
}

/* Fix footer at bottom */
.k-cta {
    padding-bottom: 160px !important; /* Visual space above footer */
}
footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    margin: 0 !important;
}
