/* fc2.pro main landing page (modern animated) */

:root {
    --bg: #0a0e1a;
    --bg-elevated: #0f1420;
    --surface: #141a28;
    --surface-2: #1b2235;
    --surface-hover: #232b3f;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #e8ebf2;
    --text-muted: #8b92a8;
    --text-dim: #5c657d;
    --accent: #f471b5;
    --accent-glow: rgba(244, 113, 181, 0.35);
    --accent-soft: rgba(244, 113, 181, 0.12);
    --blue: #60a5fa;
    --blue-soft: rgba(96, 165, 250, 0.12);
    --green: #34d399;
    --amber: #fbbf24;
    --red: #f87171;
    --radius: 16px;
    --radius-sm: 10px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
                 "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI",
                 Meiryo, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
                 Consolas, monospace;
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== Background floating orbs ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}
.bg-orbs .orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(244,113,181,0.55), transparent 70%);
    top: -10%; left: 20%;
    animation: float-1 18s ease-in-out infinite;
}
.bg-orbs .orb-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(96,165,250,0.45), transparent 70%);
    top: 30%; right: -10%;
    animation: float-2 24s ease-in-out infinite;
}
.bg-orbs .orb-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(52,211,153,0.30), transparent 70%);
    bottom: -10%; left: -8%;
    animation: float-3 30s ease-in-out infinite;
}
@keyframes float-1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(40px,60px) scale(1.08); }
}
@keyframes float-2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-50px,40px) scale(1.12); }
}
@keyframes float-3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(60px,-30px) scale(0.95); }
}

/* ===== Site Header (sticky, all pages) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 28px;
    background: rgba(10, 14, 26, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.site-brand { text-decoration: none; }
.site-brand .brand-mark {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.site-brand:hover .brand-mark {
    border-color: var(--accent-soft);
    color: var(--text);
    transform: translateY(-1px);
}
.site-brand .brand-dot {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.site-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.navlink {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    position: relative;
}
.navlink:hover { color: var(--text); background: var(--surface-2); }
.navlink.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ===== Layout ===== */
.page {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 28px 48px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 40px 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

/* gradient title with shimmer */
.gradient-text {
    background: linear-gradient(
        100deg,
        var(--accent) 0%,
        var(--blue) 35%,
        var(--accent) 70%,
        var(--blue) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s linear infinite;
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.hero-status .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.3s;
}
.hero-status.ok .dot {
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 2s infinite;
}
.hero-status.ok .text { color: var(--green); }
.hero-status.warn .dot { background: var(--amber); }
.hero-status.warn .text { color: var(--amber); }

/* ===== Section title ===== */
.section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 20px;
    padding-left: 4px;
}

/* ===== Card grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* stagger animation */
.card {
    animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 80ms + 400ms);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card--active {
    cursor: pointer;
    transform: translate(var(--mx, 0), var(--my, 0));
}
.card--active::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
    opacity: 0.7;
    transition: opacity 0.3s;
}
.card--active:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-strong);
}
.card--active:hover::before { opacity: 1; }
.card--active:hover .card-cta {
    transform: translateX(4px);
}

.card--placeholder {
    opacity: 0.5;
    cursor: default;
}

.card-icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card--active:hover .card-icon {
    transform: scale(1.15) rotate(-3deg);
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.card-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.card-cta {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    transition: transform 0.3s, color 0.3s;
}
.card--active .card-cta {
    color: var(--accent);
}

/* ===== Quick stats ===== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.stat {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: border-color 0.3s;
}
.stat:hover { border-color: var(--border-strong); }

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.stat-value--small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Footer ===== */
.page-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.78rem;
    padding: 20px 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.page-footer .sep { opacity: 0.5; }

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .site-header { padding: 10px 16px; gap: 8px; }
    .site-brand .brand-mark { font-size: 0.95rem; padding: 6px 12px; }
    .navlink { font-size: 0.78rem; padding: 5px 10px; }
    .page { padding: 28px 18px 32px; gap: 44px; }
    .hero { padding: 16px 0 0; }
    .hero-title { font-size: 2rem; }
    .hero-tagline { font-size: 0.95rem; }
    .card { padding: 22px 20px; }
    .stat-value { font-size: 1.5rem; }
    .bg-orbs .orb { opacity: 0.35; }
}

/* ===== Reduced motion respect ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .gradient-text { animation: none; }
    .bg-orbs { display: none; }
}
