:root {
    --primary: #6366f1; /* Indigo - More professional/AI feel */
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary: #ec4899; /* Pink accent */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Navigation */
.nav-custom {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bg-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.brand-logo i { color: var(--primary); }

/* Hero Section */
.hero-wrapper {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent);
    padding: 140px 0 80px;
    text-align: center;
}

.hero-tag {
    background: linear-gradient(90deg, var(--primary-light), rgba(236, 72, 153, 0.1));
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}

/* Pulse Animation for Live Status */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 8px;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* Intelligence Section */
.intel-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition);
}
.intel-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* Philosophy Quote */
.quote-section {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-dark);
    line-height: 1.4;
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--primary);
}

/* Terminal & Showcase */
.terminal-card {
    background: #020617;
    border-radius: var(--radius-md);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.feature-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-primary-custom {
    background: var(--bg-dark);
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--primary);
    transform: scale(1.05);
    color: white;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Accessibility */
:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 60%, white);
    outline-offset: 3px;
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utilities */
.fw-black { font-weight: 900; }

/* Feature cards (used on /pages/*) */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
/* /pages/* は .feature-card 単体で使うため padding を付与 */
.feature-card:not(.card) { padding: 2rem; }

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.12);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.18);
}

/* Footer */
.footer-modern {
    background: radial-gradient(1200px 500px at 30% 10%, rgba(99, 102, 241, 0.25), transparent),
                radial-gradient(900px 500px at 80% 60%, rgba(236, 72, 153, 0.18), transparent),
                linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
    color: rgba(255, 255, 255, 0.86);
    padding: 80px 0 50px;
}
.footer-modern a:hover { opacity: 1 !important; }

/* Nav active state */
.nav-custom .nav-link.active {
    font-weight: 700;
    color: var(--bg-dark) !important;
}
