/* ==========================================================================
   かみのおっず - Sister App Theme (Matching kaminoyosou Design)
   ========================================================================== */

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    
    --border-light: #e2e8f0;
    --border-gold: rgba(217, 119, 6, 0.3);
    
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    
    --gold: #d97706;
    --gold-light: #fef3c7;
    --gold-hover: #b45309;
    --emerald: #059669;
    --emerald-light: #d1fae5;
    --blue: #2563eb;
    --blue-light: #dbeafe;
    
    --primary-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --bg-hero-glow: radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.6) 0%, rgba(255, 255, 255, 0) 70%);

    --font-primary: 'Noto Sans JP', 'Inter', sans-serif;
    --font-accent: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-icon {
    color: var(--gold);
    font-size: 1.5rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-btn {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 90px;
    background: var(--bg-hero-glow);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-light);
    border: 1px solid var(--border-gold);
    color: var(--gold-hover);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 540px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

.btn-gold {
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.15rem;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4);
}

/* Demo Card Preview */
.hero-card-wrapper {
    position: relative;
}

.demo-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.race-tag {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--emerald);
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--emerald-light);
    padding: 4px 10px;
    border-radius: 50px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Demo Table */
.demo-table-wrapper {
    overflow-x: auto;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.demo-table th {
    text-align: left;
    padding: 8px 10px;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg-light);
}

.demo-table td {
    padding: 10px;
    border-top: 1px solid var(--border-light);
}

.rank-highlight {
    background: var(--gold-light);
}

.horse-name {
    font-weight: 700;
}

.odds-val {
    font-family: var(--font-accent);
    font-weight: 800;
}

.exp-val {
    font-family: var(--font-accent);
    font-weight: 800;
}

.exp-high {
    color: var(--emerald);
}

.waku {
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 4px;
}

.waku-1 { background: #fff; color: #000; border: 1px solid #ccc; }
.waku-2 { background: #000; color: #fff; }
.waku-3 { background: #e74c3c; color: #fff; }
.waku-4 { background: #3498db; color: #fff; }
.waku-5 { background: #f1c40f; color: #000; }

.exp-low {
    color: #ef4444;
}

.tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tag-high {
    background: var(--emerald-light);
    color: var(--emerald);
}

.tag-mid {
    background: var(--blue-light);
    color: var(--blue);
}

.tag-over {
    background: #fee2e2;
    color: #ef4444;
}

/* Sections Base */
.section {
    padding: 80px 0;
    text-align: left;
}

.alt-bg {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    text-align: left;
    margin-bottom: 36px;
    border-bottom: 2px solid rgba(217, 119, 6, 0.2);
    padding-bottom: 16px;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--gold);
    text-align: left;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: left;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(217, 119, 6, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.icon-gold { background: var(--gold-light); color: var(--gold-hover); }
.icon-emerald { background: var(--emerald-light); color: var(--emerald); }
.icon-blue { background: var(--blue-light); color: var(--blue); }

.feature-box h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Steps Grid */
.steps-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
}

.step-num {
    font-family: var(--font-accent);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.step-link {
    color: var(--gold-hover);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.step-link:hover {
    text-decoration: underline;
}

/* Usage Flow */
.usage-flow {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flow-item {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-card);
}

.flow-badge {
    background: var(--gold-light);
    color: var(--gold-hover);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.88rem;
}

.flow-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.flow-text p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.flow-arrow {
    color: var(--gold);
    font-size: 1.4rem;
}

/* CTA Section */
.cta-section {
    padding: 90px 0;
    background: var(--bg-hero-glow);
    border-top: 1px solid var(--border-light);
}

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

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 36px 0;
    background: var(--bg-light);
}

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

.footer-brand {
    font-weight: 800;
    color: var(--gold-hover);
    font-size: 1.1rem;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid, .steps-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .flow-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
