﻿/* =========================================
   Base & Variables
   ========================================= */
:root {
    /* Color Palette */
    --bg-main: #0a0e17;
    --bg-secondary: #131a2a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Branding Colors */
    --sbi-blue: #0056b3;
    --sbi-light: #3b82f6;
    --xdc-blue: #004b87;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;

    /* Glassmorphism */
    --glass-bg: rgba(19, 26, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

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

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

a {
    color: var(--sbi-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #60a5fa;
}

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

/* =========================================
   Layout
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Components
   ========================================= */
/* Glassmorphism Classes */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn-sm, .btn-lg, .btn-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    width: 100%;
    flex-direction: column;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sbi-blue), var(--sbi-light));
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 118, 255, 0.39);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--sbi-light), var(--sbi-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 118, 255, 0.4);
    color: white;
}

.btn-accent {
    background: var(--accent-orange);
    color: #111;
}

.btn-accent:hover {
    background: #fbbf24;
    color: #000;
}

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

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--sbi-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav a:hover {
    color: var(--sbi-light);
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header-cta { display: none; }
}

/* =========================================
   Hero
   ========================================= */
.hero {
    margin-top: 80px;
    padding: var(--space-xl) var(--space-md);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--sbi-light);
    color: var(--sbi-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--sbi-light);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

/* Background Visuals */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--sbi-blue);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--xdc-blue);
    opacity: 0.3;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* =========================================
   Main Content
   ========================================= */
.main-article {
    padding: var(--space-xl) 0;
}

.content-section {
    margin-bottom: var(--space-xl);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--sbi-light);
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: #d1d5db;
}

/* Highlight Box */
.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-lg);
    margin: var(--space-md) 0;
}

.highlight-box ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #d1d5db;
}

.highlight-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.highlight-box li strong {
    color: var(--text-main);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--sbi-light);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* Steps */
.step-section {
    background: linear-gradient(180deg, transparent, rgba(19, 26, 42, 0.5), transparent);
    padding: var(--space-lg) 0;
    margin: var(--space-xl) calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.step-section h2, .step-section > p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps-container {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid #334155;
    transition: all 0.3s ease;
}

.step-card.highlight-step {
    border-left-color: var(--sbi-light);
    background: rgba(59, 130, 246, 0.05);
}

.step-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sbi-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.step-connector {
    height: 20px;
    width: 2px;
    background: #334155;
    margin-left: 2rem;
}

/* Alert Box */
.alert-box {
    border-left: 4px solid var(--accent-orange);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.alert-header h2 {
    margin: 0;
    border: none;
    font-size: 1.5rem;
}

.alert-header h2::after {
    display: none;
}

/* Summary */
.summary-section {
    padding: var(--space-xl);
    border-radius: 24px;
    text-align: center;
}

.summary-section h2 {
    border: none;
}

.summary-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.final-cta {
    margin-top: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cta-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* =========================================
   Sidebar
   ========================================= */
.sidebar {
    padding: var(--space-xl) 0;
}

.widget {
    margin-bottom: var(--space-lg);
}

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

.placeholder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #334155);
    margin: 0 auto 1rem;
    border: 2px solid var(--sbi-light);
}

.author-profile h3 {
    margin-bottom: 0.5rem;
}

.author-profile p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
}

.related-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.related-posts ul {
    list-style: none;
}

.related-posts li {
    margin-bottom: 1rem;
}

.related-posts a {
    display: block;
    color: var(--text-main);
}

.related-posts a:hover h4 {
    color: var(--sbi-light);
}

.tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.xrp-tag { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.xdc-tag { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.edu-tag { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.related-posts h4 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #05080e;
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

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

.disclaimer {
    font-size: 0.75rem !important;
    margin-top: 0.5rem;
    opacity: 0.7;
}


/* Breadcrumb Layout Updated */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px var(--space-md) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--sbi-light);
    font-weight: 500;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.hero {
    margin-top: 0 !important;
}


/* Hero Readability Overrides */
.hero-content { text-shadow: 0 4px 15px rgba(0,0,0,0.8); background: rgba(10,14,23,0.4); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(5px); display: inline-block; }
.hero-visual::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); z-index: 10; pointer-events: none; }
.hero-title, .hero-description { position: relative; z-index: 11; }


/* =========================================
   Mobile Navigation (Hamburger Menu)
   ========================================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-cta {
        display: none; /* Hide top CTA on mobile to save space, rely on menu */
    }
}
