:root {
    --primary: #FFAB91; /* Peach */
    --secondary: #B39DDB; /* Lavender */
    --primary-gradient: linear-gradient(135deg, #FFAB91 0%, #B39DDB 100%);
    --bg-light: #FDFCFB; /* Creamy White */
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #2D2B28;
    --text-secondary: #6B6861;
    --accent: #FFAB91;
    --container-width: 1100px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    
    /* Emotion Colors */
    --color-joy: #FBC02D;
    --color-trust: #8BC34A;
    --color-fear: #1B5E20;
    --color-surprise: #03A9F4;
    --color-sadness: #2196F3;
    --color-disgust: #9C27B0;
    --color-anger: #F44336;
    --color-anticipation: #FF9800;

    /* Carousel Config */
    --carousel-speed: 60s;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 171, 145, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(179, 157, 219, 0.15) 0%, transparent 40%);
    z-index: -1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.header {
    padding: 24px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.app-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 171, 145, 0.1);
    border: 1px solid rgba(255, 171, 145, 0.2);
    border-radius: 100px;
    color: #E67E5D;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 520px;
    line-height: 1.8;
}

/* Character Visual */
.hero-visual {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -40px;
}

/* Plutchik Flower */
.flower-interactive-view {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    z-index: 2;
    pointer-events: auto;
}

.flower-segment {
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flower-segment:hover {
    fill-opacity: 0.8 !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.char-image-preview {
    width: 100%;
    max-width: 450px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: floatingChar 6s infinite ease-in-out;
    pointer-events: none; /* Flower を触れるように */
}

.qualia-backdrop {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    z-index: 1;
}

@keyframes floatingChar {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 48px;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-image-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-char-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.feature-card-title {
    font-size: 24px;
    margin-bottom: 18px;
}

.feature-card-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.qualium-support-form-card {
    max-width: 600px !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 40px !important;
    padding: 60px 80px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05) !important;
    text-align: left !important; /* Ensure content is left-aligned */
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.form-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 2px;
    text-align: left !important;
}

.form-input,
.form-textarea,
.form-select {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 10, 0.05);
    border-radius: 20px;
    padding: 16px 24px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(45, 43, 40, 0.3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 30px rgba(255, 171, 145, 0.15);
    transform: translateY(-2px);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232D2B28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 18px;
    cursor: pointer;
}

.form-submit {
    margin-top: 40px;
}

.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    padding: 22px;
    border: none;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(255, 171, 145, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.1em;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 171, 145, 0.45);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.99);
}

@media (max-width: 768px) {
    .qualium-support-form-card {
        padding: 40px 24px !important;
        margin: 0 16px !important;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 40px 24px;
        margin: 0 16px;
    }
}

/* Emotion Garden Carousel */
.emotion-garden {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fff 0%, #fdfcfb 100%);
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.carousel-viewport {
    width: 100%;
    position: relative;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    white-space: nowrap;
    animation: scrollLoop var(--carousel-speed) linear infinite;
    gap: 32px;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 16px)); } /* Adjust for gap */
}

.emotion-card {
    background: #FFFFFF;
    width: 340px;
    min-width: 340px;
    border-radius: 40px; /* As per reference image */
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
    white-space: normal; /* Ensure text wraps within the flex item */
}

.emotion-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    border-color: var(--card-accent-color);
}

.card-img-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, transparent 70%);
    bottom: -10px;
    z-index: 0;
}

.card-char-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
    transition: transform 0.4s ease;
}

.emotion-card:hover .card-char-img {
    transform: translateY(-10px) rotate(3deg);
}

.card-title-group {
    margin-bottom: 16px;
}

.card-title-jp {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.card-title-en {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--card-accent-color);
    font-family: var(--font-heading);
}

.card-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
}

/* Security Section Adjustment */
.security-section {
    padding: 100px 0;
}

.blur-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
    margin-top: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 171, 145, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 171, 145, 0.4);
}

.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* App Store Badge - Shared with Today */
.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px 8px 16px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 48px;
    width: auto;
    box-sizing: border-box;
}

.app-store-badge img {
    height: 32px;
    width: auto;
    filter: invert(1);
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.badge-sub {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.9;
}

.badge-main {
    font-size: 1.35rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.5px;
}

.app-store-badge:hover {
    transform: translateY(-4px);
    background: #1a1a1a;
    border-color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Updates Section (Timeline) */
.updates {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 171, 145, 0.1) 10%,
            var(--primary) 50%,
            rgba(255, 171, 145, 0.1) 90%,
            transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 171, 145, 0.3);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 20px var(--primary);
}

.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 171, 145, 0.2);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.timeline-content:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 171, 145, 0.15);
}

.timeline-item:nth-child(odd) { justify-content: flex-start; }
.timeline-item:nth-child(even) { justify-content: flex-end; }

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.version-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.version-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.version-details {
    list-style: none;
    padding: 0;
}

.version-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.version-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* Roadmap Section */
.roadmap {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
}

.orbit-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 171, 145, 0.1);
}

.ring-1 {
    width: 600px; height: 600px;
    animation: rotateOrbit 120s linear infinite;
}

.ring-2 {
    width: 900px; height: 900px;
    border-style: dashed;
    animation: rotateOrbit 180s linear infinite reverse;
}

.roadmap-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.roadmap-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 171, 145, 0.1);
    border-radius: 32px;
    padding: 40px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.roadmap-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(255, 171, 145, 0.15);
}

.roadmap-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.roadmap-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.roadmap-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* CTA */
.cta-title {
    font-size: 48px;
    margin-bottom: 48px;
    line-height: 1.2;
}

.notices {
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer - Common with Today (Customized for Qualium branding) */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to top, #1a1512, #2c1e1a); /* Warm dark theme */
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary); /* Hover with Qualium primary color */
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 900px) {
    .header { padding: 20px 0; }
    .hero-section { padding: 140px 0 60px; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-description { margin: 0 auto 40px; }
    .hero-visual { order: -1; }
    .char-image-preview { max-width: 320px; }
    
    .feature-card { padding: 32px; }
    .security-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 36px; }
    .flex-row-between { flex-direction: column; gap: 24px; }
}
