:root {
    --bg-dark: #0f1115;
    --bg-dark-2: #161b22;
    --bg-card: #1c2128;
    --primary: #D4AF37;
    /* Gold */
    --primary-hover: #b5952f;
    --accent-neon: #00FF88;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gold {
    color: var(--primary);
}

.text-neon {
    color: var(--accent-neon);
}

.text-center {
    text-align: center;
}

.bg-dark-2 {
    background-color: var(--bg-dark-2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #F2D06B 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-highlight {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-highlight:hover {
    background: var(--primary);
    color: #000;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(15, 17, 21, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav a:hover,
.nav a.active {
    color: var(--text-main);
}

.nav .btn {
    margin-left: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a202c 0%, #0f1115 100%);
    overflow: hidden;
    padding-top: 80px;
    /* Prevent header overlap */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1551846931-487b4747db8c?q=80&w=2072&auto=format&fit=crop');
    /* Placeholder Horse Racing Image */
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
    display: block;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 250px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.stat-value .unit {
    font-size: 1.5rem;
    font-weight: 500;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.cta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.section-subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.perf-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.perf-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.perf-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.perf-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.perf-period {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.perf-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-neon);
    margin-bottom: 15px;
}

.perf-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Logic Section */
.logic-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.logic-text h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.logic-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.logic-visual {
    background: var(--bg-card);
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.graph-placeholder {
    width: 200px;
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.bar {
    width: 40px;
    background-color: var(--primary);
    opacity: 0.5;
}

.bar-1 {
    height: 40%;
}

.bar-2 {
    height: 70%;
}

.bar-3 {
    height: 100%;
    background-color: var(--accent-neon);
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}


/* Recent Hits */
.recent-hits-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

/* Results Table */
.results-table-container {
    max-width: 800px;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.results-table th {
    background: var(--bg-card);
    position: sticky;
    top: 0;
    padding: 15px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.results-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Styles */
.row-win .result-cell {
    color: var(--accent-neon);
    font-weight: 700;
}

.row-lose {
    color: var(--text-muted);
}

.row-lose td {
    color: var(--text-muted);
}

.type-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Custom Scrollbar */
.results-table-container::-webkit-scrollbar {
    width: 8px;
}

.results-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.results-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}


/* Philosophy Section */
.philosophy-box {
    background: linear-gradient(180deg, rgba(28, 33, 40, 0.5) 0%, rgba(15, 17, 21, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 16px;
    margin-top: 50px;
}

.lead-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    line-height: 1.8;
}

.reason-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.reason-item h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reason-item h3 i {
    color: var(--primary);
}

.reason-item p {
    color: var(--text-muted);
}

/* Pricing Grid & Toggle */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
    gap: 15px;
}

.toggle-label {
    font-weight: 700;
    color: var(--text-muted);
    transition: 0.3s;
}

.toggle-label.active {
    color: var(--text-main);
}

.badge-discount {
    background: var(--accent-neon);
    color: #000;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-color: #000;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.premium-card {
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
    transform: scale(1.02);
    z-index: 10;
}

.card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 5px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes footer down */
}

.pricing-features .disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.pricing-features .disabled i {
    color: var(--text-muted);
}


/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* Sub-Pages & Forms */
.page-body {
    background-color: var(--bg-dark);
    padding-top: 80px;
    /* Space for fixed header */
}

.logo-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 30px;
}

.mt-4 {
    margin-top: 30px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.signup-form .form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.required {
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Plan Options - Premium Design */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.plan-option:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Selected State */
.plan-option.selected {
    border-color: var(--primary);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(21, 25, 30, 0) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Specific Style for Strategic Plan */
.plan-option:has(input[value^="strategic"]) {
    border-color: rgba(212, 175, 55, 0.3);
}

.plan-option.selected:has(input[value^="strategic"]) {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Radio Button Customization */
.plan-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    transition: 0.3s;
    flex-shrink: 0;
}

.plan-option input[type="radio"]:checked {
    border-color: var(--primary);
    background-color: transparent;
}

.plan-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Text Details */
.plan-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.plan-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.text-gold {
    color: var(--primary) !important;
}

.badge-discount {
    background: var(--accent-neon);
    color: #000;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* User Info Inputs */
.form-input {
    width: 100%;
    padding: 15px 20px;
    background: #111418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    background: #161b22;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    outline: none;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}


/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 12px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    color: var(--text-main);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.legal-table th,
.legal-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: left;
}

.legal-table th {
    background: rgba(0, 0, 0, 0.2);
    width: 30%;
    color: var(--text-main);
}

.legal-table td {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .plan-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-container {
        padding: 30px;
    }
}

/* Mobile Responsive Global Overrides */
@media (max-width: 768px) {

    /* Fonts & Headings */
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Layout */
    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    .hero-stats {
        flex-direction: column;
        align-items: center;
        /* Center card itself */
        gap: 15px;
    }

    .stat-item {
        width: 100%;
        text-align: center;
        /* Center text inside card */
    }

    /* Logic Section */
    .logic-content {
        grid-template-columns: 1fr;
    }

    .logic-image {
        margin-top: 30px;
    }

    /* Philosophy / Logic adjustment */
    .philosophy-box {
        padding: 30px 20px;
        /* Reduce padding to give more text space */
    }

    .reason-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing Section */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-toggle-container {
        margin-top: 20px;
        flex-direction: row;
        /* Keep horizontal */
        flex-wrap: wrap;
        /* Allow wrapping if absolutely necessary, but try to keep row */
        justify-content: center;
        gap: 10px;
        align-items: center;
    }

    /* Results Table */
    .results-table-container {
        overflow-x: auto;
        /* Enable horizontal scroll */
    }

    .results-table {
        min-width: 500px;
        /* Force minimum width to prevent crushing */
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* === Sub-Pages Optimization === */

    /* Signup Form */
    .form-container {
        padding: 25px 20px;
    }

    .plan-option {
        padding: 15px;
    }

    .plan-details {
        flex-direction: column;
        /* Stack Name and Price */
        align-items: flex-start;
        gap: 5px;
    }

    .plan-price {
        font-size: 1rem;
    }

    .badge-discount {
        display: inline-block;
        margin-left: 0;
        margin-top: 5px;
    }

    /* Legal Pages */
    .legal-container {
        padding: 30px 20px;
    }

    /* Stack Table for Legal Pages */
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table tr {
        margin-bottom: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    .legal-table th {
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.05);
    }

    .legal-table td {
        border: none;
        padding-top: 10px;
    }
}