:root {
    --bg-dark: #0B0E14;
    --bg-surface: #151921;
    --primary: #2DD4BF;
    /* Teal */
    --primary-glow: rgba(45, 212, 191, 0.4);
    --secondary: #F59E0B;
    /* Orange */
    --secondary-glow: rgba(245, 158, 11, 0.4);
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --gold: #FFD700;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-teal {
    color: var(--primary);
}

.text-orange {
    color: var(--secondary);
}

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

/* Buttons */
.btn-primary-sm {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary-sm:hover {
    background: var(--primary);
    color: #000;
}

.btn-app-store {
    background: var(--text-main);
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-app-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-app-store.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.btn-app-store .sub {
    font-size: 0.8rem;
    display: block;
    font-weight: 400;
    line-height: 1;
}

.btn-app-store .main {
    font-size: 1.4rem;
    display: block;
    line-height: 1;
}

.btn-premium {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold), #FFA500);
    color: #000;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-premium:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Hero */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    z-index: 0;
}

.grid-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .grid-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 1rem;
    }
}

.badge-new {
    display: inline-block;
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* .phone-mockup styles removed or replaced */

.hero-collage {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
}

.problem-cards {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.p-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 280px;
    text-align: center;
}

.emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.arrow-down {
    font-size: 2rem;
    color: var(--text-muted);
    margin: 2rem 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

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

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 150px;
}

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

@media (max-width: 768px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 100px;
    }
}

.feature-text {
    flex: 1;
}

.feature-img-box {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 24px;
    text-align: center;
}

.f-img {
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: 80%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.stack-images {
    position: relative;
}

.stack-images .f-img.secondary {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Adjusted for center stack in mobile, but overlapping in desktop */
    transform: translate(-30%, 10%);
    z-index: -1;
    opacity: 0.6;
    scale: 0.9;
}

/* Premium */
.premium-section {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
    padding: 100px 0;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.angle-bg {
    margin: 50px 0;
}

/* Pricing Grid */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Align items to center */
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    /* responsive wrap */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.pricing-card.free {
    border-color: #333;
}

.pricing-card.monthly {
    border-color: var(--primary);
}

.pricing-card.yearly {
    border: 2px solid var(--gold);
    transform: scale(1.05);
    z-index: 10;
    background: linear-gradient(145deg, var(--surface), #1a1f2e);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.pricing-card .price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .benefit-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-card .benefit-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-free {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid #555;
    border-radius: 99px;
    color: #888;
    text-decoration: none;
    font-weight: 600;
}

.btn-premium {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), #F59E0B);
    color: black;
    text-decoration: none;
    border-radius: 99px;
    font-weight: 700;
    transition: 0.3s;
    width: 100%;
}

.btn-premium.sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    background: var(--primary);
    color: #000;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: black;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card.yearly {
        transform: scale(1);
        /* Reset scale on mobile */
        order: -1;
        /* Show Best Value first on mobile if desired, or keep logic */
    }
}

.ui-preview-premium img {
    max-width: 300px;
    border-radius: 20px;
    border: 2px solid var(--gold);
}

/* FAQ */
.faq-section {
    padding: 100px 0;
    max-width: 800px;
}

.faq-grid details {
    background: var(--bg-surface);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.faq-grid summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-grid summary::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-grid details[open] summary::after {
    content: '-';
}

.faq-grid p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* CTA Final */
.cta-final {
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
}

.glow-spot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(150px);
    opacity: 0.1;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-links a {
    margin: 0 1rem;
}

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

/* Utils */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Scroll Animation */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-zoom {
    transform: scale(0.9);
}

.active.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.active.reveal-left {
    opacity: 1;
    transform: translateX(0);
}

.active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

/* Menu & Modal */
.menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    margin-right: 1.5rem;
    z-index: 101;
}

.menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lang-selector h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.lang-options {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.lang-option {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 99px;
    cursor: pointer;
    transition: 0.3s;
}

.lang-option:hover,
.lang-option.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}