/* Design System Variables */
:root {
    --primary-color: #7e57c2;
    --primary-light: #b39ddb;
    --primary-dark: #5e35b1;
    --accent-gold: #ffd700;
    --accent-gold-dark: #ccac00;
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-dark: #1d1d1f;
    --glow-shadow: 0 0 30px rgba(126, 87, 194, 0.25);
    --gold-glow: 0 0 30px rgba(255, 215, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography & Gradient Text */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #d2d2d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(126, 87, 194, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Header & Glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-glass {
    background-color: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: rgba(126, 87, 194, 0.15);
    border: 1px solid rgba(126, 87, 194, 0.3);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(126, 87, 194, 0.25) 0%, rgba(255, 215, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-mockup-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(126, 87, 194, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: rgba(126, 87, 194, 0.25);
    box-shadow: var(--glow-shadow);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 700;
}

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

/* Features Section (Tabs) */
.features-section {
    padding: 100px 0;
    position: relative;
}

.tabs-container {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--glow-shadow);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

.panel-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.panel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.panel-tag {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.panel-text h3 {
    font-size: 1.85rem;
    margin-bottom: 20px;
}

.panel-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

.panel-visual {
    display: flex;
    justify-content: center;
}

.glass-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Loto Balls Graphic */
.loto-balls-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.loto-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
}

.loto-ball::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 12px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.p-purple { background: radial-gradient(circle at 30% 30%, #ab47bc, #4a148c); }
.p-blue { background: radial-gradient(circle at 30% 30%, #29b6f6, #01579b); }
.p-green { background: radial-gradient(circle at 30% 30%, #66bb6a, #1b5e20); }
.p-yellow { background: radial-gradient(circle at 30% 30%, #ffd54f, #f57f17); }

.p-disabled {
    background: radial-gradient(circle at 30% 30%, #ffcdd2, #c62828);
    opacity: 0.35;
}

.visual-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* BOP Stat Preview */
.bop-stat-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 24px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.25rem;
    padding-top: 8px;
}

.text-gold { color: var(--accent-gold); }
.text-green { color: #66bb6a; }

/* Backup Preview */
.backup-preview {
    margin-bottom: 24px;
}

.backup-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(126, 87, 194, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
    border: 1px solid rgba(126, 87, 194, 0.2);
    animation: rotate 10s linear infinite;
}

.backup-status {
    font-weight: 600;
    color: var(--primary-light);
}

/* How It Works Section */
.steps-section {
    padding: 100px 0;
    background-color: rgba(255,255,255,0.01);
}

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

.step-card {
    position: relative;
    padding-top: 40px;
}

.step-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(126, 87, 194, 0.15);
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(126, 87, 194, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    padding: 24px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Download CTA Section */
.download-cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(126,87,194,0.05) 100%);
}

.cta-glow {
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.download-badges {
    margin-bottom: 30px;
}

.badge-mock-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* App Store & Google Play Mock Badges */
.store-badge-mock {
    display: flex;
    align-items: center;
    background-color: #000000;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 6px 18px;
    width: 170px;
    text-align: left;
    transition: var(--transition);
}

.store-badge-mock:hover {
    background-color: #1a1a1a;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.8rem;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 2px;
}

.badge-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.support-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-disclaimer {
    max-width: 800px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 0 20px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none; /* Mobile menu can be simple for basic page */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding-top: 120px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    
    .grid-3, .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .panel-text {
        align-items: center;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
