:root {
    --bg-color: #0F1221;
    --text-color: #F0F2F5;
    --accent-color: #D4AF37;
    /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --secondary-bg: #1A1F35;
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-jp);
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, top 0.1s, left 0.1s;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
}

.jp {
    font-family: var(--font-jp);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-cta {
    font-family: var(--font-en);
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 31, 53, 1) 0%, rgba(15, 18, 33, 1) 70%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.app-icon-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: scaleIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.2s;
}

.app-icon {
    width: 100%;
    height: 100%;
    border-radius: 22%;
    /* Squircle-ish */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--accent-glow);
    filter: blur(40px);
    z-index: 1;
    animation: breathe 4s infinite ease-in-out;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    font-family: var(--font-jp);
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    opacity: 0.6;
}

.line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
}

/* Intro Section */
.intro {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.section-title.visible::after {
    transform: scaleX(1);
}

.explanation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.riddle-structure {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.part {
    text-align: center;
}

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

.part .text {
    font-size: 1.8rem;
    font-weight: 600;
}

.description {
    text-align: center;
    line-height: 2;
    color: #ccc;
}

/* Features Section */
.features {
    padding: 8rem 5%;
    overflow: hidden;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 10rem;
}

.feature-item.left {
    flex-direction: row;
}

.feature-item.right {
    flex-direction: row-reverse;
}

.feature-text {
    max-width: 400px;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.feature-text p {
    line-height: 1.8;
    color: #bbb;
}

.feature-visual {
    width: 300px;
    height: 400px;
    background: var(--secondary-bg);
    border-radius: 20px;
    position: relative;
    /* Placeholder for actual screenshots */
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-visual,
.square-visual {
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0.2;
}

.circle-visual {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.square-visual {
    width: 150px;
    height: 150px;
    transform: rotate(45deg);
    animation: rotate 10s infinite linear;
}

/* Footer */
.footer {
    padding: 4rem 5%;
    background: #000;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .feature-item.left,
    .feature-item.right {
        flex-direction: column;
        text-align: center;
    }

    .riddle-structure {
        flex-direction: column;
    }
}
/* Example Box Styling */
.example-box {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.example-title {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}
.highlight {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.3);
    text-underline-offset: 4px;
}

/* Feature Images */
.feature-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* Visual Container clean up - remove background if needed, keeping dimensions */
.feature-visual {
    background: transparent !important; /* Override previous placeholder bg */
    border: none;
    box-shadow: none;
}
